Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199148
b: refs/heads/master
c: 6e78c9f
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed May 22, 2010
1 parent 384db87 commit 05b7526
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 0e8dc2597487848bb076d6b3d8440c85dde521e7
refs/heads/master: 6e78c9fd1bc2c7e04b3d7052e9eb27aa536e4e2c
5 changes: 5 additions & 0 deletions trunk/tools/perf/util/newt.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,9 @@ int hists__browse(struct hists *self, const char *helpline, const char *input_na

switch (toupper(es.u.key)) {
case 'A':
if (browser->selection->map == NULL &&
browser->selection->map->dso->annotate_warned)
continue;
goto do_annotate;
case 'D':
goto zoom_dso;
Expand Down Expand Up @@ -957,6 +960,7 @@ int hists__browse(struct hists *self, const char *helpline, const char *input_na
}

if (browser->selection->sym != NULL &&
!browser->selection->map->dso->annotate_warned &&
asprintf(&options[nr_options], "Annotate %s",
browser->selection->sym->name) > 0)
annotate = nr_options++;
Expand Down Expand Up @@ -991,6 +995,7 @@ int hists__browse(struct hists *self, const char *helpline, const char *input_na
struct hist_entry *he;
do_annotate:
if (browser->selection->map->dso->origin == DSO__ORIG_KERNEL) {
browser->selection->map->dso->annotate_warned = 1;
ui_helpline__puts("No vmlinux file found, can't "
"annotate with just a "
"kallsyms file");
Expand Down

0 comments on commit 05b7526

Please sign in to comment.