Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175421
b: refs/heads/master
c: f984f03
h: refs/heads/master
i:
  175419: 143d707
v: v3
  • Loading branch information
Masami Hiramatsu authored and Ingo Molnar committed Dec 9, 2009
1 parent e155f52 commit e3d1e7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17f88fcd667a914b6f4dca146c9a09492fcd57b8
refs/heads/master: f984f03da35357b23d53e9cad29e909810857451
10 changes: 6 additions & 4 deletions trunk/tools/perf/builtin-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@
#include "util/probe-event.h"

/* Default vmlinux search paths */
#define NR_SEARCH_PATH 3
#define NR_SEARCH_PATH 4
const char *default_search_path[NR_SEARCH_PATH] = {
"/lib/modules/%s/build/vmlinux", /* Custom build kernel */
"/usr/lib/debug/lib/modules/%s/vmlinux", /* Red Hat debuginfo */
"/boot/vmlinux-debug-%s", /* Ubuntu */
"./vmlinux", /* CWD */
};

#define MAX_PATH_LEN 256
Expand Down Expand Up @@ -205,13 +206,14 @@ int cmd_probe(int argc, const char **argv, const char *prefix __used)
#else /* !NO_LIBDWARF */
pr_debug("Some probes require debuginfo.\n");

if (session.vmlinux)
if (session.vmlinux) {
pr_debug("Try to open %s.", session.vmlinux);
fd = open(session.vmlinux, O_RDONLY);
else
} else
fd = open_default_vmlinux();
if (fd < 0) {
if (session.need_dwarf)
die("Could not open vmlinux/module file.");
die("Could not open debuginfo file.");

pr_debug("Could not open vmlinux/module file."
" Try to use symbols.\n");
Expand Down

0 comments on commit e3d1e7b

Please sign in to comment.