diff options
| author | Shang XiaoJing <[email protected]> | 2022-09-22 14:14:37 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-10-04 11:55:22 +0000 |
| commit | dc64641c8f917f20ad5cf678de3b77ebc8fb3a9a (patch) | |
| tree | e55eca79f3c16b4a5d4d3a751010593be0de6b12 /tools/perf/ui/browsers/annotate.c | |
| parent | perf stat: Merge cases in process_evlist (diff) | |
| download | kernel-dc64641c8f917f20ad5cf678de3b77ebc8fb3a9a.tar.gz kernel-dc64641c8f917f20ad5cf678de3b77ebc8fb3a9a.zip | |
perf top: Fix error code in cmd_top()
There are three error paths which return success:
1. Propagate the errno from evlist__create_maps() if it failed.
2. Return -EINVAL if top.sb_evlist is NULL.
3. Return -EINVAL if evlist__add_bpf_sb_event() failed.
Signed-off-by: Shang XiaoJing <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[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/ui/browsers/annotate.c')
0 files changed, 0 insertions, 0 deletions
