Lines Matching defs:sample_type

142 int __evsel__sample_size(u64 sample_type)
144 u64 mask = sample_type & PERF_SAMPLE_MASK;
160 * @sample_type: sample type
166 static int __perf_evsel__calc_id_pos(u64 sample_type)
170 if (sample_type & PERF_SAMPLE_IDENTIFIER)
173 if (!(sample_type & PERF_SAMPLE_ID))
176 if (sample_type & PERF_SAMPLE_IP)
179 if (sample_type & PERF_SAMPLE_TID)
182 if (sample_type & PERF_SAMPLE_TIME)
185 if (sample_type & PERF_SAMPLE_ADDR)
193 * @sample_type: sample type
199 static int __perf_evsel__calc_is_pos(u64 sample_type)
203 if (sample_type & PERF_SAMPLE_IDENTIFIER)
206 if (!(sample_type & PERF_SAMPLE_ID))
209 if (sample_type & PERF_SAMPLE_CPU)
212 if (sample_type & PERF_SAMPLE_STREAM_ID)
220 evsel->id_pos = __perf_evsel__calc_id_pos(evsel->core.attr.sample_type);
221 evsel->is_pos = __perf_evsel__calc_is_pos(evsel->core.attr.sample_type);
227 if (!(evsel->core.attr.sample_type & bit)) {
228 evsel->core.attr.sample_type |= bit;
237 if (evsel->core.attr.sample_type & bit) {
238 evsel->core.attr.sample_type &= ~bit;
289 evsel->sample_size = __evsel__sample_size(attr->sample_type);
308 if (evsel__is_bpf_output(evsel) && !attr->sample_type) {
309 evsel->core.attr.sample_type = (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME |
465 .sample_type = (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME |
1367 evsel->core.attr.sample_type &= OFFCPU_SAMPLE_TYPES;
1901 (evsel->core.attr.sample_type & PERF_SAMPLE_WEIGHT_STRUCT)) {
1906 (evsel->core.attr.sample_type & PERF_SAMPLE_CODE_PAGE_SIZE)) {
1911 (evsel->core.attr.sample_type & PERF_SAMPLE_DATA_PAGE_SIZE)) {
2181 u64 type = evsel->core.attr.sample_type;
2347 u64 type = evsel->core.attr.sample_type;
2703 u64 type = evsel->core.attr.sample_type;
2745 u64 sample_type = evsel->core.attr.sample_type;
2748 if (sample_type & PERF_SAMPLE_TID)
2751 if (sample_type & PERF_SAMPLE_TIME)
2754 if (sample_type & PERF_SAMPLE_ID)
2757 if (sample_type & PERF_SAMPLE_STREAM_ID)
2760 if (sample_type & PERF_SAMPLE_CPU)
2763 if (sample_type & PERF_SAMPLE_IDENTIFIER)
3051 if (evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK)
3079 if (evsel->core.attr.sample_type & PERF_SAMPLE_CODE_PAGE_SIZE && perf_missing_features.code_page_size)
3081 if (evsel->core.attr.sample_type & PERF_SAMPLE_DATA_PAGE_SIZE && perf_missing_features.data_page_size)