diff options
| author | Martin Liška <[email protected]> | 2022-08-12 11:40:49 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-08-12 13:27:21 +0000 |
| commit | 1bf7d836e57ba4943e33e163e730cd77ab837572 (patch) | |
| tree | 2534928a646d7cdc91302f4f8d24b5fbd51ca1f0 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | perf build-id: Print debuginfod queries if -v option is used (diff) | |
| download | kernel-1bf7d836e57ba4943e33e163e730cd77ab837572.tar.gz kernel-1bf7d836e57ba4943e33e163e730cd77ab837572.zip | |
perf record: Improve error message of -p not_existing_pid
When one uses -p $not_existing_pid, the output of --help is printed:
$ perf record -p 123456789 2>&1 | head -n3
Usage: perf record [<options>] [<command>]
or: perf record [<options>] -- <command> [<options>]
Let's change it something similar what perf top -p $not_existing_pid
prints:
$ ./perf top -p 123456789 --stdio
Error:
Couldn't create thread/CPU maps: No such process
Newly suggested error message:
$ ./perf record -p 123456789
Couldn't create thread/CPU maps: No such process
Signed-off-by: Martin Liška <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
