From: Arnaldo Carvalho de Melo Date: Wed, 24 Mar 2010 19:40:16 +0000 (-0300) Subject: perf annotate: Allow specifying DSOs where to look for symbol X-Git-Tag: v2.6.35-rc1~522^2~150 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ac73c5a9c1767b2771e6d2b5accafdef89db04c2;p=karo-tx-linux.git perf annotate: Allow specifying DSOs where to look for symbol Using the same parameter as in 'perf report', allowing to specify just one and disambiguate between DSOs that have the symbol of interest. Signed-off-by: Arnaldo Carvalho de Melo Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <1269459619-982-3-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 45d14660d53d..ce9b1ef784b0 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c @@ -591,6 +591,8 @@ static const char * const annotate_usage[] = { static const struct option options[] = { OPT_STRING('i', "input", &input_name, "file", "input file name"), + OPT_STRING('d', "dsos", &symbol_conf.dso_list_str, "dso[,dso...]", + "only consider symbols in these dsos"), OPT_STRING('s', "symbol", &sym_hist_filter, "symbol", "symbol to annotate"), OPT_BOOLEAN('f', "force", &force, "don't complain, do it"),