aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2013-05-13 22:09:06 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-05-28 09:24:02 -0400
commiteec574e6bc3ee4558d4a282e0e3e1bd6dd0ad67b (patch)
treeea431a21fb4bb3c23f43360033cc06cd16f05003 /tools/perf
parentfa5df94350510571cbe825f333996f57223b3cd2 (diff)
perf report: Add report.percent-limit config variable
Now an user can set a default value of --percent-limit option into the perfconfig file. $ cat ~/.perfconfig [report] percent-limit = 0.1 Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Pekka Enberg <penberg@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Pekka Enberg <penberg@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1368497347-9628-9-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-report.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 0a4979bdd4c4..ca98d34cd58b 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -62,6 +62,11 @@ static int perf_report_config(const char *var, const char *value, void *cb)
62 symbol_conf.event_group = perf_config_bool(var, value); 62 symbol_conf.event_group = perf_config_bool(var, value);
63 return 0; 63 return 0;
64 } 64 }
65 if (!strcmp(var, "report.percent-limit")) {
66 struct perf_report *rep = cb;
67 rep->min_percent = strtof(value, NULL);
68 return 0;
69 }
65 70
66 return perf_default_config(var, value, cb); 71 return perf_default_config(var, value, cb);
67} 72}
@@ -823,7 +828,7 @@ int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused)
823 OPT_END() 828 OPT_END()
824 }; 829 };
825 830
826 perf_config(perf_report_config, NULL); 831 perf_config(perf_report_config, &report);
827 832
828 argc = parse_options(argc, argv, options, report_usage, 0); 833 argc = parse_options(argc, argv, options, report_usage, 0);
829 834