Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191109
b: refs/heads/master
c: 3b0d516
h: refs/heads/master
i:
  191107: abff0ba
v: v3
  • Loading branch information
Ingo Molnar committed Mar 17, 2010
1 parent b92fbd6 commit 439baef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7df2f32956cf0f1a45df38cd0e0fe0c3467580e8
refs/heads/master: 3b0d516463f8deb897a55cb81e9dbbe58a2490ed
6 changes: 6 additions & 0 deletions trunk/tools/perf/util/probe-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,8 +1012,10 @@ static int convert_to_kprobe_trace_events(struct perf_probe_event *pev,
if (!sym)
die("Kernel symbol \'%s\' not found - probe not added.",
tev->point.symbol);
#ifndef NO_DWARF_SUPPORT
found:
close(fd);
#endif
return ntevs;
}

Expand Down Expand Up @@ -1172,17 +1174,21 @@ void show_line_range(struct line_range *lr)
unsigned int l = 1;
struct line_node *ln;
FILE *fp;
#ifndef NO_DWARF_SUPPORT
int fd, ret;
#endif

/* Search a line range */
init_vmlinux();
#ifndef NO_DWARF_SUPPORT
fd = open_vmlinux();
if (fd < 0)
die("Could not open debuginfo file.");
ret = find_line_range(fd, lr);
if (ret <= 0)
die("Source line is not found.\n");
close(fd);
#endif

setup_pager();

Expand Down

0 comments on commit 439baef

Please sign in to comment.