Lines Matching defs:attr

2437 	if (event->attr.exclude_host)
2439 if (event->attr.exclude_guest)
2511 if (unlikely(event->attr.precise_ip))
2525 if (event->attr.precise_ip)
2773 if (!event->attr.precise_ip)
2790 if (x86_pmu.intel_cap.pebs_baseline && event->attr.precise_ip) {
2804 if (unlikely(event->attr.precise_ip))
2832 if (event->attr.precise_ip)
2948 if (!event->attr.precise_ip)
3785 if (event->attr.precise_ip < 3)
3792 if (event->attr.precise_ip < 3)
3801 if (event->attr.use_clockid)
3803 if (!event->attr.exclude_kernel)
3805 if (event->attr.sample_regs_user & ~PEBS_GP_REGS)
3812 struct perf_event_attr *attr = &event->attr;
3820 if (!attr->exclude_kernel)
3824 if (attr->precise_ip)
3853 event->attr.config <= INTEL_TD_METRIC_AVAILABLE_MAX;
3858 return (event->attr.config & INTEL_ARCH_EVENT_MASK) == X86_CONFIG(.event=0xcd, .umask=0x01);
3863 return (event->attr.config & INTEL_ARCH_EVENT_MASK) == X86_CONFIG(.event=0x03, .umask=0x82);
3895 if (event->attr.precise_ip) {
3896 if ((event->attr.config & INTEL_ARCH_EVENT_MASK) == INTEL_FIXED_VLBR_EVENT)
3899 if (!(event->attr.freq || (event->attr.wakeup_events && !event->attr.watermark))) {
3901 if (!(event->attr.sample_type &
3929 if (event->attr.aux_output) {
3930 if (!event->attr.precise_ip)
3936 if ((event->attr.type == PERF_TYPE_HARDWARE) ||
3937 (event->attr.type == PERF_TYPE_HW_CACHE))
3951 if (event->attr.config1 || event->attr.config2)
3958 if (event->attr.config & X86_ALL_EVENT_FLAGS)
4002 (event->attr.sample_type & PERF_SAMPLE_DATA_SRC) &&
4024 if (!(event->attr.config & ARCH_PERFMON_EVENTSEL_ANY))
4030 ret = perf_allow_cpu(&event->attr);
4154 if (event->attr.exclude_host)
4156 else if (event->attr.exclude_guest)
4166 if (!event->attr.exclude_host)
4179 cpuc->events[idx]->attr.exclude_host)
4194 event->hw.config |= event->attr.config & (HSW_IN_TX|HSW_IN_TX_CHECKPOINTED);
4203 event->attr.precise_ip > 0))
4216 if (event->attr.sample_period > 0 &&
4217 event->attr.sample_period < 0x7fffffff)
4273 if ((event->attr.precise_ip == 3) &&
4294 if ((event->attr.precise_ip == 3) &&
4312 if (event->attr.precise_ip == 3)
4332 if (event->attr.precise_ip == 3) {
4392 if (event->attr.precise_ip == 3) {
4420 if (event->attr.precise_ip &&
4421 (event->attr.sample_type & PERF_SAMPLE_WEIGHT_TYPE) &&
4427 if (event->attr.precise_ip == 3)
4518 if (event->attr.precise_ip == 3)
4533 &format_attr_event.attr,
4534 &format_attr_umask.attr,
4535 &format_attr_edge.attr,
4536 &format_attr_pc.attr,
4537 &format_attr_inv.attr,
4538 &format_attr_cmask.attr,
4893 &format_attr_event.attr,
4894 &format_attr_umask.attr,
4895 &format_attr_edge.attr,
4896 &format_attr_pc.attr,
4897 &format_attr_any.attr,
4898 &format_attr_inv.attr,
4899 &format_attr_cmask.attr,
4904 &format_attr_in_tx.attr,
4905 &format_attr_in_tx_cp.attr,
4906 &format_attr_offcore_rsp.attr,
4907 &format_attr_ldlat.attr,
4912 &format_attr_offcore_rsp.attr,
4913 &format_attr_ldlat.attr,
4918 &format_attr_offcore_rsp.attr,
4923 &format_attr_offcore_rsp.attr,
4924 &format_attr_ldlat.attr,
4925 &format_attr_snoop_rsp.attr,
4930 &format_attr_frontend.attr,
5402 struct device_attribute *attr,
5411 struct device_attribute *attr,
5453 struct device_attribute *attr,
5460 struct device_attribute *attr,
5487 struct device_attribute *attr,
5496 &dev_attr_branches.attr,
5503 struct device_attribute *attr,
5512 &dev_attr_pmu_name.attr,
5521 &dev_attr_freeze_on_smi.attr,
5522 &dev_attr_allow_tsx_force_abort.attr,
5527 tsx_is_visible(struct kobject *kobj, struct attribute *attr, int i)
5529 return boot_cpu_has(X86_FEATURE_RTM) ? attr->mode : 0;
5533 pebs_is_visible(struct kobject *kobj, struct attribute *attr, int i)
5535 return x86_pmu.pebs ? attr->mode : 0;
5539 mem_is_visible(struct kobject *kobj, struct attribute *attr, int i)
5541 if (attr == &event_attr_mem_ld_aux.attr.attr)
5542 return x86_pmu.flags & PMU_FL_MEM_LOADS_AUX ? attr->mode : 0;
5544 return pebs_is_visible(kobj, attr, i);
5548 lbr_is_visible(struct kobject *kobj, struct attribute *attr, int i)
5550 return x86_pmu.lbr_nr ? attr->mode : 0;
5554 exra_is_visible(struct kobject *kobj, struct attribute *attr, int i)
5556 return x86_pmu.version >= 2 ? attr->mode : 0;
5560 default_is_visible(struct kobject *kobj, struct attribute *attr, int i)
5562 if (attr == &dev_attr_allow_tsx_force_abort.attr)
5563 return x86_pmu.flags & PMU_FL_TFA ? attr->mode : 0;
5565 return attr->mode;
5569 td_is_visible(struct kobject *kobj, struct attribute *attr, int i)
5576 return x86_pmu.intel_cap.perf_metrics ? attr->mode : 0;
5578 return attr->mode;
5737 static bool is_attr_for_this_pmu(struct kobject *kobj, struct attribute *attr)
5743 container_of(attr, struct perf_pmu_events_hybrid_attr, attr.attr);
5749 struct attribute *attr, int i)
5751 return is_attr_for_this_pmu(kobj, attr) ? attr->mode : 0;
5762 struct attribute *attr, int i)
5769 return (cpu >= 0) && is_attr_for_this_pmu(kobj, attr) && cpu_has(&cpu_data(cpu), X86_FEATURE_RTM) ? attr->mode : 0;
5773 struct attribute *attr, int i)
5779 container_of(attr, struct perf_pmu_format_hybrid_attr, attr.attr);
5782 return (cpu >= 0) && (pmu->cpu_type & pmu_attr->pmu_type) ? attr->mode : 0;
5786 struct attribute *attr, int i)
5792 if (!is_attr_for_this_pmu(kobj, attr))
5798 return pmu->intel_cap.perf_metrics ? attr->mode : 0;
5800 return attr->mode;
5824 struct device_attribute *attr,
5835 &dev_attr_cpus.attr,