Lines Matching refs:pe
104 struct perf_event_attr pe; in __event() local
107 memset(&pe, 0, sizeof(struct perf_event_attr)); in __event()
108 pe.type = PERF_TYPE_BREAKPOINT; in __event()
109 pe.size = sizeof(struct perf_event_attr); in __event()
111 pe.config = 0; in __event()
112 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
113 pe.bp_addr = (unsigned long) addr; in __event()
114 pe.bp_len = sizeof(long); in __event()
116 pe.sample_period = 1; in __event()
117 pe.sample_type = PERF_SAMPLE_IP; in __event()
118 pe.wakeup_events = 1; in __event()
120 pe.disabled = 1; in __event()
121 pe.exclude_kernel = 1; in __event()
122 pe.exclude_hv = 1; in __event()
124 fd = sys_perf_event_open(&pe, 0, -1, -1, in __event()
127 pr_debug("failed opening event %llx\n", pe.config); in __event()