Lines Matching refs:attr
164 struct perf_event_attr *attr; in print_event_attr() local
192 attr = calloc(1, STRACE_PEA_SIZE); in print_event_attr()
194 if (!attr) in print_event_attr()
198 memcpy(attr, attr_ptr, read_size); in print_event_attr()
202 free(attr); in print_event_attr()
207 if (size != attr->size) { in print_event_attr()
211 printxval(perf_attr_size, attr->size, "PERF_ATTR_SIZE_???"); in print_event_attr()
221 attr->freq ? "sample_freq" : "sample_period", in print_event_attr()
222 attr->freq ? attr->sample_freq : attr->sample_period, in print_event_attr()
240 attr->disabled, in print_event_attr()
241 attr->inherit, in print_event_attr()
242 attr->pinned, in print_event_attr()
243 attr->exclusive, in print_event_attr()
244 attr->exclude_user, in print_event_attr()
245 attr->exclude_kernel, in print_event_attr()
246 attr->exclude_hv, in print_event_attr()
247 attr->exclude_idle, in print_event_attr()
248 attr->mmap, in print_event_attr()
249 attr->comm, in print_event_attr()
250 attr->freq, in print_event_attr()
251 attr->inherit_stat, in print_event_attr()
252 attr->enable_on_exec, in print_event_attr()
253 attr->task, in print_event_attr()
254 attr->watermark); in print_event_attr()
256 flags_data.raw = ((uint64_t *) attr)[5]; in print_event_attr()
260 attr->precise_ip; in print_event_attr()
268 attr->mmap_data; in print_event_attr()
276 attr->sample_id_all; in print_event_attr()
284 attr->exclude_host; in print_event_attr()
292 attr->exclude_guest; in print_event_attr()
300 attr->exclude_callchain_kernel; in print_event_attr()
308 attr->exclude_callchain_user; in print_event_attr()
316 attr->mmap2; in print_event_attr()
324 attr->comm_exec; in print_event_attr()
332 attr->use_clockid; in print_event_attr()
340 attr->context_switch; in print_event_attr()
348 attr->write_backward; in print_event_attr()
356 attr->namespaces; in print_event_attr()
367 attr->watermark ? "wakeup_watermark" : "wakeup_events", in print_event_attr()
368 attr->watermark ? attr->wakeup_watermark : attr->wakeup_events); in print_event_attr()
370 if (attr->type == PERF_TYPE_BREAKPOINT) in print_event_attr()
375 attr->config1; in print_event_attr()
377 ((uint64_t *) attr)[56 / sizeof(uint64_t)]; in print_event_attr()
380 attr->type == PERF_TYPE_BREAKPOINT ? "bp_addr" : "config1", in print_event_attr()
391 attr->config2; in print_event_attr()
393 ((uint64_t *) attr)[64 / sizeof(uint64_t)]; in print_event_attr()
395 if (attr->type == PERF_TYPE_BREAKPOINT) in print_event_attr()
410 if (attr->sample_type & (1 << 11)) in print_event_attr()
421 attr->sample_regs_user; in print_event_attr()
423 ((uint64_t *) attr)[80 / sizeof(uint64_t)]; in print_event_attr()
434 attr->sample_stack_user; in print_event_attr()
436 ((uint32_t *) attr)[88 / sizeof(uint32_t)]; in print_event_attr()
442 if (attr->sample_type & (1 << 13)) in print_event_attr()
461 attr->sample_regs_intr; in print_event_attr()
463 ((uint64_t *) attr)[96 / sizeof(uint64_t)]; in print_event_attr()
475 attr->aux_watermark; in print_event_attr()
477 ((uint32_t *) attr)[104 / sizeof(uint32_t)]; in print_event_attr()
488 attr->sample_max_stack; in print_event_attr()
490 ((uint16_t *) attr)[108 / sizeof(uint16_t)]; in print_event_attr()
508 free(attr); in print_event_attr()
698 struct perf_event_attr *attr; in main() member
730 rc = syscall(__NR_perf_event_open, args[i].attr, args[i].pid, in main()
733 printaddr(args[i].attr), args[i].pid, args[i].cpu, in main()
739 struct perf_event_attr *attr = attrs[i % ARRAY_SIZE(attrs)].ptr; in main() local
754 fill_memory_ex(attr, size, fill_start, 0xff); in main()
756 attr->type = attr_types[type_idx].val; in main()
757 attr->size = size; in main()
758 attr->config = attr_configs[type_idx][config_idx].val; in main()
759 attr->sample_type = sample_types[sample_type_idx].val; in main()
760 attr->read_format = read_formats[read_format_idx].val; in main()
763 attr->__reserved_1 = 0; in main()
766 attr->bp_type = in main()
768 ((uint32_t *) attr)[52 / sizeof(uint32_t)] = in main()
774 attr->branch_sample_type = in main()
776 ((uint64_t *) attr)[72 / sizeof(uint64_t)] = in main()
782 attr->clockid = in main()
784 ((uint32_t *) attr)[92 / sizeof(uint32_t)] = in main()
789 ip_desc_str = precise_ip_descs[attr->precise_ip]; in main()
794 } flags_data = { .raw = ((uint64_t *) attr)[5] }; in main()
800 attr->size = size + 8; in main()
803 attr->size = 0; in main()
805 rc = syscall(__NR_perf_event_open, attr, args[args_idx].pid, in main()
810 print_event_attr(attr, i ? ((i == 1) ? 0 : size) : size + 8, in main()