aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-sched.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-15 17:04:39 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-16 02:53:48 -0500
commit75be6cf48738aec68aac49b428423569492cfba3 (patch)
treed7f5ceb028361e8b725ba6f3b8219e66c7b89790 /tools/perf/builtin-sched.c
parent7ef17aafc98406d01ebbf7fe98ef1332b70d20bb (diff)
perf symbols: Make symbol_conf global
This simplifies a lot of functions, less stuff to be done by tool writers. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1260914682-29652-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-sched.c')
-rw-r--r--tools/perf/builtin-sched.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index d67f274adba0..80209df6cfe8 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -1675,8 +1675,7 @@ static struct perf_event_ops event_ops = {
1675static int read_events(void) 1675static int read_events(void)
1676{ 1676{
1677 int err; 1677 int err;
1678 struct perf_session *session = perf_session__new(input_name, O_RDONLY, 1678 struct perf_session *session = perf_session__new(input_name, O_RDONLY, 0);
1679 0, NULL);
1680 if (session == NULL) 1679 if (session == NULL)
1681 return -ENOMEM; 1680 return -ENOMEM;
1682 1681
@@ -1912,7 +1911,7 @@ int cmd_sched(int argc, const char **argv, const char *prefix __used)
1912 if (!strcmp(argv[0], "trace")) 1911 if (!strcmp(argv[0], "trace"))
1913 return cmd_trace(argc, argv, prefix); 1912 return cmd_trace(argc, argv, prefix);
1914 1913
1915 symbol__init(0); 1914 symbol__init();
1916 if (!strncmp(argv[0], "rec", 3)) { 1915 if (!strncmp(argv[0], "rec", 3)) {
1917 return __cmd_record(argc, argv); 1916 return __cmd_record(argc, argv);
1918 } else if (!strncmp(argv[0], "lat", 3)) { 1917 } else if (!strncmp(argv[0], "lat", 3)) {