diff options
Diffstat (limited to 'tools/perf/tests/hists_link.c')
-rw-r--r-- | tools/perf/tests/hists_link.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/perf/tests/hists_link.c b/tools/perf/tests/hists_link.c index 4228ffc0d968..173bf42cc03e 100644 --- a/tools/perf/tests/hists_link.c +++ b/tools/perf/tests/hists_link.c | |||
@@ -93,7 +93,7 @@ static struct machine *setup_fake_machine(struct machines *machines) | |||
93 | if (thread == NULL) | 93 | if (thread == NULL) |
94 | goto out; | 94 | goto out; |
95 | 95 | ||
96 | thread__set_comm(thread, fake_threads[i].comm); | 96 | thread__set_comm(thread, fake_threads[i].comm, 0); |
97 | } | 97 | } |
98 | 98 | ||
99 | for (i = 0; i < ARRAY_SIZE(fake_mmap_info); i++) { | 99 | for (i = 0; i < ARRAY_SIZE(fake_mmap_info); i++) { |
@@ -110,7 +110,7 @@ static struct machine *setup_fake_machine(struct machines *machines) | |||
110 | strcpy(fake_mmap_event.mmap.filename, | 110 | strcpy(fake_mmap_event.mmap.filename, |
111 | fake_mmap_info[i].filename); | 111 | fake_mmap_info[i].filename); |
112 | 112 | ||
113 | machine__process_mmap_event(machine, &fake_mmap_event); | 113 | machine__process_mmap_event(machine, &fake_mmap_event, NULL); |
114 | } | 114 | } |
115 | 115 | ||
116 | for (i = 0; i < ARRAY_SIZE(fake_symbols); i++) { | 116 | for (i = 0; i < ARRAY_SIZE(fake_symbols); i++) { |
@@ -222,7 +222,8 @@ static int add_hist_entries(struct perf_evlist *evlist, struct machine *machine) | |||
222 | &sample) < 0) | 222 | &sample) < 0) |
223 | goto out; | 223 | goto out; |
224 | 224 | ||
225 | he = __hists__add_entry(&evsel->hists, &al, NULL, 1, 1); | 225 | he = __hists__add_entry(&evsel->hists, &al, NULL, |
226 | NULL, NULL, 1, 1, 0); | ||
226 | if (he == NULL) | 227 | if (he == NULL) |
227 | goto out; | 228 | goto out; |
228 | 229 | ||
@@ -244,7 +245,8 @@ static int add_hist_entries(struct perf_evlist *evlist, struct machine *machine) | |||
244 | &sample) < 0) | 245 | &sample) < 0) |
245 | goto out; | 246 | goto out; |
246 | 247 | ||
247 | he = __hists__add_entry(&evsel->hists, &al, NULL, 1, 1); | 248 | he = __hists__add_entry(&evsel->hists, &al, NULL, |
249 | NULL, NULL, 1, 1, 0); | ||
248 | if (he == NULL) | 250 | if (he == NULL) |
249 | goto out; | 251 | goto out; |
250 | 252 | ||
@@ -419,7 +421,7 @@ static void print_hists(struct hists *hists) | |||
419 | he = rb_entry(node, struct hist_entry, rb_node_in); | 421 | he = rb_entry(node, struct hist_entry, rb_node_in); |
420 | 422 | ||
421 | pr_info("%2d: entry: %-8s [%-8s] %20s: period = %"PRIu64"\n", | 423 | pr_info("%2d: entry: %-8s [%-8s] %20s: period = %"PRIu64"\n", |
422 | i, he->thread->comm, he->ms.map->dso->short_name, | 424 | i, thread__comm_str(he->thread), he->ms.map->dso->short_name, |
423 | he->ms.sym->name, he->stat.period); | 425 | he->ms.sym->name, he->stat.period); |
424 | 426 | ||
425 | i++; | 427 | i++; |
@@ -465,7 +467,7 @@ int test__hists_link(void) | |||
465 | goto out; | 467 | goto out; |
466 | 468 | ||
467 | list_for_each_entry(evsel, &evlist->entries, node) { | 469 | list_for_each_entry(evsel, &evlist->entries, node) { |
468 | hists__collapse_resort(&evsel->hists); | 470 | hists__collapse_resort(&evsel->hists, NULL); |
469 | 471 | ||
470 | if (verbose > 2) | 472 | if (verbose > 2) |
471 | print_hists(&evsel->hists); | 473 | print_hists(&evsel->hists); |