Questions tagged [intel-pmu]

Questions related to the use of the Intel Performance Management Unit, which provides performance counters related to the performance of currently executing code.

The Intel performance management unit provides performance counters which track performance related metrics for the currently executing code.

They are useful while profiling code, and are supported by Intel's VTune, Linux's perf command and the Windows Performance Toolkit.

The counters and the details of how to program them vary by CPU architecture and the details are available in Chapter 18 and 19 of the Intel-64 and IA-32 Architectures Software Developer Manual, Volume 3.

65 questions
0
votes
0 answers

How does perf collect kernel space performance events?

What HW feature does perf use to collect performance monitoring event for ring 0 on Intel CPUs? My picture of the world is this: Looking for a free IA32_PERFEVTSELn MSR by asking IA32_PERF_GLOBAL_INUSE When taking a free IA32_PERFEVTSELn it sets…
Some Name
  • 6,872
  • 4
  • 9
  • 32
0
votes
1 answer

How to measure the dtlb hits and dtlb misses with perf_event_open()?

I want to measure the cache miss rate and dtlb miss rate. I have done the first part. But I can't find how to set the config to get dtlb miss and dtlb hits. When I measured the cache miss, I do like this: pe.type = PERF_TYPE_HARDWARE; …
zhujiaxin
  • 1
  • 2
0
votes
2 answers

Usage of PERF_EVENT_IOC_PERIOD to change sampling period during runtime

I am using raspbian Linux 4.9.78-v7+ on a pi 3b. I am using perf to do some performance experiments. I am trying to use PERF_EVENT_IOC_PERIOD of perf to change the period during runtime of the process. I set the initial sampling period in the…
0
votes
0 answers

Reading from mmap shared memory when using perf in sampling mode

I have a parent process that forks a child which is profiled using perf in sampling mode (sample every N events). Approximately 10000 samples are being generated. I know by using mmap() we can access the shared memory where samples are stored. But…
0
votes
0 answers

spdecode in simple-pt responds with 'error trace stream does not match query' Intel Processor Trace

I am a newbie using Intel PT for the trace. I have read Intel PT manual and started to use it with simple-pt to understand how Intel PT works. sptcmd command in simple-pt works and generates ptout.N with following command. sudo ./sptcmd -c ls…
Yogita
  • 1
  • 2
1 2 3 4
5