Lines Matching refs:pe
40 struct perf_event_attr pe; in test__intel_cqm_count_nmi_context() local
68 memset(&pe, 0, sizeof(pe)); in test__intel_cqm_count_nmi_context()
69 pe.size = sizeof(pe); in test__intel_cqm_count_nmi_context()
71 pe.type = PERF_TYPE_HARDWARE; in test__intel_cqm_count_nmi_context()
72 pe.config = PERF_COUNT_HW_CPU_CYCLES; in test__intel_cqm_count_nmi_context()
73 pe.read_format = PERF_FORMAT_GROUP; in test__intel_cqm_count_nmi_context()
75 pe.sample_period = 128; in test__intel_cqm_count_nmi_context()
76 pe.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_READ; in test__intel_cqm_count_nmi_context()
80 fd[0] = sys_perf_event_open(&pe, pid, -1, -1, flag); in test__intel_cqm_count_nmi_context()
86 memset(&pe, 0, sizeof(pe)); in test__intel_cqm_count_nmi_context()
87 pe.size = sizeof(pe); in test__intel_cqm_count_nmi_context()
89 pe.type = evsel->attr.type; in test__intel_cqm_count_nmi_context()
90 pe.config = evsel->attr.config; in test__intel_cqm_count_nmi_context()
92 fd[1] = sys_perf_event_open(&pe, pid, -1, fd[0], flag); in test__intel_cqm_count_nmi_context()