mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
During the processing of /proc during event synthesis new processes may start. Add a dummy event if /proc is to be processed, to capture mmaps for starting processes. This reuses the existing logic for initial-delay. v3 fixes the attr test of test-record-C0 v2 fixes the dummy event configuration and a branch stack issue. Suggested-by: Stephane Eranian <[email protected]> Signed-off-by: Ian Rogers <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] [ split from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
23 lines
409 B
Plaintext
23 lines
409 B
Plaintext
[config]
|
|
command = record
|
|
args = --no-bpf-event -C 0 kill >/dev/null 2>&1
|
|
ret = 1
|
|
|
|
[event:base-record]
|
|
cpu=0
|
|
|
|
# no enable on exec for CPU attached
|
|
enable_on_exec=0
|
|
|
|
# PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |
|
|
# PERF_SAMPLE_ID | PERF_SAMPLE_PERIOD
|
|
# + PERF_SAMPLE_CPU added by -C 0
|
|
sample_type=455
|
|
|
|
# Dummy event handles mmaps, comm and task.
|
|
mmap=0
|
|
comm=0
|
|
task=0
|
|
|
|
[event:system-wide-dummy]
|