mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
perf evsel: display dmesg command of showing a hardcoded path
In non-FHS compliant distros like NixOS, nothing resides in `/bin` and `/usr/bin`. Instead dynamically symlinked into `/run/current-system/sw/bin/`, the executable resides in `/nix/store`. With this patch,`/bin` prefix from the dmesg command in the error message is stripped. Link: https://github.com/NixOS/nixpkgs/pull/258027 Signed-off-by: Masum Reza <masumrezarock100@gmail.com>
This commit is contained in:
parent
1de5b5dcb8
commit
1630695f2c
@ -3415,7 +3415,7 @@ int evsel__open_strerror(struct evsel *evsel, struct target *target,
|
||||
|
||||
return scnprintf(msg, size,
|
||||
"The sys_perf_event_open() syscall returned with %d (%s) for event (%s).\n"
|
||||
"/bin/dmesg | grep -i perf may provide additional information.\n",
|
||||
"\"dmesg | grep -i perf\" may provide additional information.\n",
|
||||
err, str_error_r(err, sbuf, sizeof(sbuf)), evsel__name(evsel));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user