File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -601,7 +601,7 @@ int x86_pmu_hw_config(struct perf_event *event)
601
601
}
602
602
}
603
603
604
- if (event -> attr . branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK )
604
+ if (branch_sample_call_stack ( event ) )
605
605
event -> attach_state |= PERF_ATTACH_TASK_DATA ;
606
606
607
607
/*
Original file line number Diff line number Diff line change @@ -1144,6 +1144,11 @@ static inline bool branch_sample_counters(const struct perf_event *event)
1144
1144
return event -> attr .branch_sample_type & PERF_SAMPLE_BRANCH_COUNTERS ;
1145
1145
}
1146
1146
1147
+ static inline bool branch_sample_call_stack (const struct perf_event * event )
1148
+ {
1149
+ return event -> attr .branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK ;
1150
+ }
1151
+
1147
1152
struct perf_sample_data {
1148
1153
/*
1149
1154
* Fields set by perf_sample_data_init() unconditionally,
You can’t perform that action at this time.
0 commit comments