perf evsel: Add support for synthesized branch stack sample type
[linux-2.6-block.git] / tools / perf / util / session.c
index 0b0bfe5bef17cd8cb86029e6aca07f9dccc0c72b..2b5a08a92ce5c2c752764a80838fbd6589d9a67f 100644 (file)
@@ -1243,7 +1243,7 @@ static void dump_sample(struct evsel *evsel, union perf_event *event,
        if (evsel__has_callchain(evsel))
                callchain__printf(evsel, sample);
 
-       if (sample_type & PERF_SAMPLE_BRANCH_STACK)
+       if (evsel__has_br_stack(evsel))
                branch_stack__printf(sample, perf_evsel__has_branch_callstack(evsel));
 
        if (sample_type & PERF_SAMPLE_REGS_USER)