aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-02-18 02:25:05 -0500
committerIngo Molnar <mingo@elte.hu>2011-02-18 02:25:05 -0500
commite4cc9f4a207aeb819f358114eb23a04547d4807c (patch)
tree4c8f7f56427948ca9c2f30659ee18c6dcfdb4d08 /tools/perf/builtin-report.c
parente9345aab675382176740bc8a2c6d3caf1510e46d (diff)
parent668b8788f497b2386402daeca583d6300240d41d (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-report.c')
-rw-r--r--tools/perf/builtin-report.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index f9a99a1ce60..dddcc7ea2be 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -350,6 +350,12 @@ static int __cmd_report(void)
350 perf_session__fprintf_dsos(session, stdout); 350 perf_session__fprintf_dsos(session, stdout);
351 351
352 next = rb_first(&session->hists_tree); 352 next = rb_first(&session->hists_tree);
353
354 if (next == NULL) {
355 ui__warning("The %s file has no samples!\n", input_name);
356 goto out_delete;
357 }
358
353 while (next) { 359 while (next) {
354 struct hists *hists; 360 struct hists *hists;
355 361