Lines Matching refs:attr
37 static inline int sys_perf_event_open(struct perf_event_attr *attr, pid_t pid,
41 attr->size = sizeof(*attr);
42 return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags);
47 struct perf_event_attr attr;
51 memset(&attr, 0, sizeof(attr));
52 attr.disabled = 1;
53 attr.type = PERF_TYPE_BREAKPOINT;
54 attr.bp_type = HW_BREAKPOINT_R;
56 attr.bp_addr = (__u64)(&attr) & 0xfffffffffffff800;
57 attr.bp_len = len;
58 fd = sys_perf_event_open(&attr, 0, -1, -1, 0);
78 struct perf_event_attr attr;
98 memset(&attr, 0, sizeof(attr));
99 attr.disabled = 1;
100 attr.type = PERF_TYPE_BREAKPOINT;
101 attr.bp_type = readwriteflag;
102 attr.bp_addr = (__u64)ptr;
103 attr.bp_len = sizeof(int);
105 attr.bp_len = DAWR_LENGTH_MAX;
106 attr.exclude_user = exclude_user;
107 break_fd = sys_perf_event_open(&attr, 0, -1, -1, 0);
156 struct perf_event_attr attr;
169 memset(&attr, 0, sizeof(attr));
170 attr.disabled = 1;
171 attr.type = PERF_TYPE_BREAKPOINT;
172 attr.exclude_kernel = 1;
173 attr.exclude_hv = 1;
174 attr.exclude_guest = 1;
175 attr.bp_type = HW_BREAKPOINT_RW;
177 attr.bp_addr = (__u64)(target + 2);
178 attr.bp_len = 4;
179 break_fd = sys_perf_event_open(&attr, 0, -1, -1, 0);