aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-diff.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-12-22 05:54:50 -0500
committerIngo Molnar <mingo@elte.hu>2010-12-22 05:54:50 -0500
commit8c1df4002aa425973d7d25ffa56c042acd953bed (patch)
tree441e39bf3a43bb3e4c4965ed2081b9bb90edd1ea /tools/perf/builtin-diff.c
parent6c529a266bdc590a870ee2d2092ff6527eff427b (diff)
parent21dd9ae5a4e9f717f3957ec934dd3158129436b8 (diff)
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/core
Diffstat (limited to 'tools/perf/builtin-diff.c')
-rw-r--r--tools/perf/builtin-diff.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c
index 5e1a043aae03..3153e492dbcc 100644
--- a/tools/perf/builtin-diff.c
+++ b/tools/perf/builtin-diff.c
@@ -61,6 +61,8 @@ static struct perf_event_ops event_ops = {
61 .exit = event__process_task, 61 .exit = event__process_task,
62 .fork = event__process_task, 62 .fork = event__process_task,
63 .lost = event__process_lost, 63 .lost = event__process_lost,
64 .ordered_samples = true,
65 .ordering_requires_timestamps = true,
64}; 66};
65 67
66static void perf_session__insert_hist_entry_by_name(struct rb_root *root, 68static void perf_session__insert_hist_entry_by_name(struct rb_root *root,
@@ -142,8 +144,8 @@ static int __cmd_diff(void)
142 int ret, i; 144 int ret, i;
143 struct perf_session *session[2]; 145 struct perf_session *session[2];
144 146
145 session[0] = perf_session__new(input_old, O_RDONLY, force, false); 147 session[0] = perf_session__new(input_old, O_RDONLY, force, false, &event_ops);
146 session[1] = perf_session__new(input_new, O_RDONLY, force, false); 148 session[1] = perf_session__new(input_new, O_RDONLY, force, false, &event_ops);
147 if (session[0] == NULL || session[1] == NULL) 149 if (session[0] == NULL || session[1] == NULL)
148 return -ENOMEM; 150 return -ENOMEM;
149 151
@@ -192,6 +194,8 @@ static const struct option options[] = {
192 OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator", 194 OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator",
193 "separator for columns, no spaces will be added between " 195 "separator for columns, no spaces will be added between "
194 "columns '.' is reserved."), 196 "columns '.' is reserved."),
197 OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory",
198 "Look for files with symbols relative to this directory"),
195 OPT_END() 199 OPT_END()
196}; 200};
197 201