Lines Matching +full:disable +full:- +full:wp
1 // SPDX-License-Identifier: GPL-2.0
4 * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
19 #include "../perf-sys.h"
26 * Just disable the test for these architectures until these issues are
47 attr->type = PERF_TYPE_BREAKPOINT; in __event()
48 attr->size = sizeof(struct perf_event_attr); in __event()
50 attr->config = 0; in __event()
51 attr->bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
52 attr->bp_addr = (unsigned long) addr; in __event()
53 attr->bp_len = sizeof(long); in __event()
55 attr->sample_period = 1; in __event()
56 attr->sample_type = PERF_SAMPLE_IP; in __event()
58 attr->exclude_kernel = 1; in __event()
59 attr->exclude_hv = 1; in __event()
61 fd = sys_perf_event_open(attr, -1, 0, -1, in __event()
64 pr_debug("failed opening event %llx\n", attr->config); in __event()
88 TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1); in bp_accounting()
89 pr_debug("wp %d created\n", i); in bp_accounting()
97 TEST_ASSERT_VAL("failed to modify wp\n", ret == 0); in bp_accounting()
99 pr_debug("wp 0 modified to bp\n"); in bp_accounting()
103 TEST_ASSERT_VAL("failed to create max wp\n", fd_wp != -1); in bp_accounting()
104 pr_debug("wp max created\n"); in bp_accounting()
154 int i, *fd = NULL, ret = -1; in detect_share()
161 return -1; in detect_share()
165 if (fd[i] == -1) { in detect_share()
166 pr_err("failed to create wp\n"); in detect_share()
173 if (fd[i] == -1) in detect_share()
180 while (i--) in detect_share()
189 * - detects the number of watch/break-points,
191 * - detects PERF_EVENT_IOC_MODIFY_ATTRIBUTES ioctl,
193 * - detects if watchpoints and breakpoints share
195 * - create all possible watchpoints on cpu 0
196 * - change one of it to breakpoint
197 * - in case wp and bp do not share slots,