diff options
| author | Namhyung Kim <[email protected]> | 2022-10-03 20:46:46 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-10-06 11:03:53 +0000 |
| commit | 182bb594e0678b3ceac99f4ec3daa5d22ea3d0ce (patch) | |
| tree | 4ae7c492eaae49cb79ce36696357f1027d3e4dc6 /tools/perf/builtin-script.c | |
| parent | perf tools: Get rid of evlist__add_on_all_cpus() (diff) | |
| download | kernel-182bb594e0678b3ceac99f4ec3daa5d22ea3d0ce.tar.gz kernel-182bb594e0678b3ceac99f4ec3daa5d22ea3d0ce.zip | |
perf tools: Add evlist__add_sched_switch()
Add a help to create a system-wide sched_switch event. One merit is
that it sets the system-wide bit before adding it to evlist so that
the libperf can handle the cpu and thread maps correctly.
Reviewed-by: Adrian Hunter <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Leo Yan <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
