Lines Matching refs:attr
372 return pevent->evsel->core.attr.type == PERF_TYPE_TRACEPOINT;
424 tp_format = trace_event__tp_format_id(evsel->core.attr.config);
715 struct perf_event_attr attr = {
776 &attr.type, &attr.config, &attr.sample_freq,
777 &sample_period, &attr.sample_type,
778 &attr.read_format, &disabled, &inherit,
784 &attr.wakeup_events, &attr.bp_type,
785 &attr.bp_addr, &attr.bp_len, &idx))
790 if (attr.sample_freq != 0)
792 attr.sample_period = sample_period;
796 attr.disabled = disabled;
797 attr.inherit = inherit;
798 attr.pinned = pinned;
799 attr.exclusive = exclusive;
800 attr.exclude_user = exclude_user;
801 attr.exclude_kernel = exclude_kernel;
802 attr.exclude_hv = exclude_hv;
803 attr.exclude_idle = exclude_idle;
804 attr.mmap = mmap;
805 attr.context_switch = context_switch;
806 attr.comm = comm;
807 attr.freq = freq;
808 attr.inherit_stat = inherit_stat;
809 attr.enable_on_exec = enable_on_exec;
810 attr.task = task;
811 attr.watermark = watermark;
812 attr.precise_ip = precise_ip;
813 attr.mmap_data = mmap_data;
814 attr.sample_id_all = sample_id_all;
815 attr.size = sizeof(attr);
817 evsel__init(&pevsel->evsel, &attr, idx);
847 evsel->core.attr.inherit = inherit;
1407 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu,