projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc1b39d
)
perf symbols: Fix dso__fprintf() print statement
author
Stephane Eranian
<eranian@google.com>
Tue, 20 Nov 2012 09:51:02 +0000
(10:51 +0100)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Sun, 9 Dec 2012 11:46:04 +0000
(08:46 -0300)
Was ignoring the dso type (function vs. variable) and was therefore
printing bogus information.
Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link:
http://lkml.kernel.org/r/20121120095101.GA5939@quad
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/dso.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/util/dso.c
b/tools/perf/util/dso.c
index d6d9a465acdbe09437571ca737e7d28cb5fdf770..be437850edc88445fe77f2ea2b40ff154c64c104 100644
(file)
--- a/
tools/perf/util/dso.c
+++ b/
tools/perf/util/dso.c
@@
-583,7
+583,7
@@
size_t dso__fprintf(struct dso *dso, enum map_type type, FILE *fp)
if (dso->short_name != dso->long_name)
ret += fprintf(fp, "%s, ", dso->long_name);
ret += fprintf(fp, "%s, %sloaded, ", map_type__name[type],
- dso
->loaded
? "" : "NOT ");
+ dso
__loaded(dso, type)
? "" : "NOT ");
ret += dso__fprintf_buildid(dso, fp);
ret += fprintf(fp, ")\n");
for (nd = rb_first(&dso->symbols[type]); nd; nd = rb_next(nd)) {