perf tools: Fix usage of max_stack sysctl
[linux-2.6-block.git] / tools / perf / util / scripting-engines / trace-event-perl.c
index 62c7f6988e0e584cb16f6deab30a84b3b8672971..5d1eb1ccd96c3e0cf73449c97aaee9246d1f9619 100644 (file)
@@ -264,8 +264,7 @@ static SV *perl_process_callchain(struct perf_sample *sample,
                goto exit;
 
        if (thread__resolve_callchain(al->thread, &callchain_cursor, evsel,
-                                     sample, NULL, NULL,
-                                     sysctl_perf_event_max_stack) != 0) {
+                                     sample, NULL, NULL, scripting_max_stack) != 0) {
                pr_err("Failed to resolve callchain. Skipping\n");
                goto exit;
        }