[perf]$ sudo ./perf record -e instructions:pp --pid 14560 Reading
/proc/14560/maps cost 13.12690599 s ^C[ perf record: Woken up 1 times
to write data ] [ perf record: Captured and wrote 0.108 MB perf.data
(2783 samples) ]
so perf was able to read the proc file?
Yes, perf always can read proc file. The problem is that the proc file is
huge and keep growing faster than proc reader.
So perf top do loop in perf_event__synthesize_mmap_events until the
test case exit.
Are you sure task_diag is enabled? There is an option under General IIt works now.
believe:
config TASK_DIAG
bool "Export task/process properties through netlink"
depends on NET && TASKSTATS
default n
help
Export selected properties for tasks/processes through the
generic netlink interface. Unlike the proc file system, task_diag
returns information in a binary format, allows to specify which
information are required.
Say N if unsure.