![]() + strerror_r(-uerr, sbuf, sizeof(sbuf))) + pr_warning("Failed to open uprobe events: %s.\n", + strerror_r(-kerr, sbuf, sizeof(sbuf))) + pr_warning("Failed to open kprobe events: %s.\n", + pr_warning("Please rebuild kernel with CONFIG_KPROBE_EVENTS " + else if (kerr = -ENOENT & uerr = -ENOENT) + /* Both kprobes and uprobes are disabled, warn it. +static void print_both_open_warning(int kerr, int uerr) If (!namelist) -2449,13 +2474,17 int del_perf_probe_events(struct strlist *dellist) Namelist = get_probe_trace_event_names(fd, false) Return -2075,8 +2097,11 static int _add_probe_trace_events(struct perf_probe_event *pev, + ret = _show_perf_probe_events(up_fd, false) ret = _show_perf_probe_events(fd, false) + ret = _show_perf_probe_events(kp_fd, true) If (ret >= 0) -1820,19 +1822,19 static int open_probe_events(const char *trace_file, bool readwrite, Ret = e_snprintf(buf, PATH_MAX, "%s/%s", _debugfs, trace_file) pr_warning("Debugfs is not mounted.\n") +static int open_probe_events(const char *trace_file, bool readwrite) static int open_probe_events(const char *trace_file, bool readwrite, + pr_warning("Failed to open %cprobe_events: %s\n", + pr_warning("Debugfs is not mounted.\n") + pr_warning("%cprobe_events file does not exist" pr_warning("Failed to open %s file: %s\n", file, pr_warning("%s file does not exist - please rebuild kernel" If -1791,25 +1792,26 static void print_warn_msg(const char *file, bool is_kprobe) +static void print_open_warning(int err, bool is_kprobe) static void print_warn_msg(const char *file, bool is_kprobe) +++ -1780,10 +1780,11 static void clear_probe_trace_event(struct probe_trace_event *tev) Probe_perf:alloc_event (on in /home/fedora/ksrc/linux-3/tools/perf/perf) sys/kernel/debug/tracing/kprobe_events file does not exist - please rebuild ker With CONFIG_KPROBE_EVENTS=n and CONFIG_UPROBE_EVENTS=y, Without this patch, if we run perf probe -l on the kernel configured Only if it failed to openīoth of them, it shows an error message and aborts. This fixes -list option to show dynamic events if it can openĮither kprobe_events or uprobe_events. ![]() ` (2 more replies) 0 siblings, 3 replies 5+ messages in threadįrom: Masami Hiramatsu 16:12 UTC ( / raw)Ĭc: Naohiro Aota, Ingo Molnar, Paul Mackerras, Peter Zijlstra, LKMLĬurrent perf probe -list doesn't work if only CONFIG_UPROBE_EVENTS=yīecause it aborts when it fails to open kprobe_events file before 16:12 ` perf probe: Fix -del option to delete " Masami Hiramatsu Perf probe: Fix -list option to show events only with uprobe events LKML Archive on help / color / mirror / Atom feed * perf probe: Fix -list option to show events only with uprobe events 16:12 Masami Hiramatsu
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |