projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28e2a10
)
perf symbols: Consider unresolved DSOs in the dso__col_widt calculation
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Sun, 9 May 2010 19:07:01 +0000
(16:07 -0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Sun, 9 May 2010 21:32:32 +0000
(18:32 -0300)
By using BITS_PER_LONG / 4, that is the number of chars that will be
used in such cases as the DSO "name".
Cc: Frédéric Weisbecker <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Tom Zanussi <
[email protected]
>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/event.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/event.c
b/tools/perf/util/event.c
index 23d5dfd4ed7398d11cf08396bd46a499699b7b11..46563e16c3f50f5f3e39509abc471a522d4cfd55 100644
(file)
--- a/
tools/perf/util/event.c
+++ b/
tools/perf/util/event.c
@@
-676,6
+676,13
@@
int event__preprocess_sample(const event_t *self, struct perf_session *session,
dso__calc_col_width(al->map->dso);
al->sym = map__find_symbol(al->map, al->addr, filter);
+ } else {
+ const unsigned int unresolved_col_width = BITS_PER_LONG / 4;
+
+ if (dsos__col_width < unresolved_col_width &&
+ !symbol_conf.col_width_list_str && !symbol_conf.field_sep &&
+ !symbol_conf.dso_list)
+ dsos__col_width = unresolved_col_width;
}
if (symbol_conf.sym_list && al->sym &&