Compiling PAPI without perf
Dear members,
Due to the security vulnerability CVE-2013-2094 the perf_event_paranoid should be set to 2 but, according to the perf documentation,
we are not going to be able to take any measurements.
If I configure like:
After compiling and installing, if I try to run the papi_avail, I get:
and with strace:
It means, PAPI still tries to open /proc/sys/kernel/perf_event_paranoid.
My question here is, how can be have a PAPI compilation which does not use perf?
Thanks a lot in advance!!
Due to the security vulnerability CVE-2013-2094 the perf_event_paranoid should be set to 2 but, according to the perf documentation,
- Code: Select all
kernel.perf_event_paranoid = 2: you can't take any measurements. The perf utility might still be useful to analyse existing records with perf ls, perf report, perf timechart or perf trace.
kernel.perf_event_paranoid = 1: you can trace a command with perf stat or perf record, and get kernel profiling data.
kernel.perf_event_paranoid = 0: you can trace a command with perf stat or perf record, and get CPU event data.
kernel.perf_event_paranoid = -1: you get raw access to kernel tracepoints (specifically, you can mmap the file created by perf_event_open, I don't know what the implications are).
we are not going to be able to take any measurements.
If I configure like:
- Code: Select all
./configure --with-pfm-incdir=libpfm4/include
After compiling and installing, if I try to run the papi_avail, I get:
- Code: Select all
Of 108 possible events, 0 are available, of which 0 are derived.
and with strace:
- Code: Select all
open("/proc/sys/kernel/perf_event_paranoid", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aba81940000
read(3, "2\n", 1024) = 2
close(3) = 0
It means, PAPI still tries to open /proc/sys/kernel/perf_event_paranoid.
My question here is, how can be have a PAPI compilation which does not use perf?
Thanks a lot in advance!!