diff options
| -rw-r--r-- | tools/perf/util/probe-event.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 0030f9b9bf7e..a1b8d9649ca7 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
| @@ -472,9 +472,12 @@ static struct debuginfo *open_debuginfo(const char *module, struct nsinfo *nsi, | |||
| 472 | strcpy(reason, "(unknown)"); | 472 | strcpy(reason, "(unknown)"); |
| 473 | } else | 473 | } else |
| 474 | dso__strerror_load(dso, reason, STRERR_BUFSIZE); | 474 | dso__strerror_load(dso, reason, STRERR_BUFSIZE); |
| 475 | if (!silent) | 475 | if (!silent) { |
| 476 | pr_err("Failed to find the path for %s: %s\n", | 476 | if (module) |
| 477 | module ?: "kernel", reason); | 477 | pr_err("Module %s is not loaded, please specify its full path name.\n", module); |
| 478 | else | ||
| 479 | pr_err("Failed to find the path for the kernel: %s\n", reason); | ||
| 480 | } | ||
| 478 | return NULL; | 481 | return NULL; |
| 479 | } | 482 | } |
| 480 | path = dso->long_name; | 483 | path = dso->long_name; |
