diff options
| author | Namhyung Kim <[email protected]> | 2023-01-26 13:36:10 -0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-02-02 16:32:19 -0300 |
| commit | 3fd7a168bf51497909dbfb7347af28b5c57e74a6 (patch) | |
| tree | 676c78cf6730e8429026cddc3042915a3a37636b /tools/perf/scripts/python | |
| parent | 1df49ef9ee3179a213754a26cc64065e8aa24c0c (diff) | |
perf script: Add 'cgroup' field for output
There's no field for the cgroup, let's add one. To do that, users need to
specify --all-cgroup option for perf record to capture the cgroup info.
$ perf record --all-cgroups -- true
$ perf script -F comm,pid,cgroup
true 337112 /user.slice/user-657345.slice/[email protected]/...
true 337112 /user.slice/user-657345.slice/[email protected]/...
true 337112 /user.slice/user-657345.slice/[email protected]/...
true 337112 /user.slice/user-657345.slice/[email protected]/...
If it's recorded without the --all-cgroups, it'd complain.
$ perf script -F comm,pid,cgroup
Samples for 'cycles:u' event do not have CGROUP attribute set. Cannot print 'cgroup' field.
Hint: run 'perf record --all-cgroups ...'
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions