perf tools: Set the maximum allowed stack from /proc/sys/kernel/perf_event_max_stack
[deliverable/linux.git] / tools / perf / tests / hists_cumulate.c
index ed5aa9eaeb6cf51d113e75620737641737a85fb6..4a2bbff9b1ee6f0190d73175668b5ea2bfb8f439 100644 (file)
@@ -101,7 +101,7 @@ static int add_hist_entries(struct hists *hists, struct machine *machine)
                if (machine__resolve(machine, &al, &sample) < 0)
                        goto out;
 
-               if (hist_entry_iter__add(&iter, &al, PERF_MAX_STACK_DEPTH,
+               if (hist_entry_iter__add(&iter, &al, sysctl_perf_event_max_stack,
                                         NULL) < 0) {
                        addr_location__put(&al);
                        goto out;
This page took 0.027426 seconds and 5 git commands to generate.