if (output[type].fields == 0)
return;
- if (!show_event(sample, evsel, thread, al))
- return;
-
- if (evswitch__discard(&script->evswitch, evsel))
- return;
-
++es->samples;
perf_sample__fprintf_start(script, sample, thread, evsel,
if (al.filtered)
goto out_put;
+ if (!show_event(sample, evsel, al.thread, &al))
+ goto out_put;
+
+ if (evswitch__discard(&scr->evswitch, evsel))
+ goto out_put;
+
if (scripting_ops) {
struct addr_location *addr_al_ptr = NULL;
struct addr_location addr_al;