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"
34 attr->type = PERF_TYPE_BREAKPOINT; in __event()
35 attr->size = sizeof(struct perf_event_attr); in __event()
37 attr->config = 0; in __event()
38 attr->bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
39 attr->bp_addr = (unsigned long) addr; in __event()
40 attr->bp_len = sizeof(long); in __event()
42 attr->sample_period = 1; in __event()
43 attr->sample_type = PERF_SAMPLE_IP; in __event()
45 attr->exclude_kernel = 1; in __event()
46 attr->exclude_hv = 1; in __event()
48 fd = sys_perf_event_open(attr, -1, 0, -1, in __event()
51 pr_debug("failed opening event %llx\n", attr->config); in __event()
75 TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1); in bp_accounting()
76 pr_debug("wp %d created\n", i); in bp_accounting()
84 TEST_ASSERT_VAL("failed to modify wp\n", ret == 0); in bp_accounting()
86 pr_debug("wp 0 modified to bp\n"); in bp_accounting()
90 TEST_ASSERT_VAL("failed to create max wp\n", fd_wp != -1); in bp_accounting()
91 pr_debug("wp max created\n"); in bp_accounting()
145 TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1); in detect_share()
150 if (fd[i] == -1) in detect_share()
156 while (i--) in detect_share()
164 * - detects the number of watch/break-points,
166 * - detects PERF_EVENT_IOC_MODIFY_ATTRIBUTES ioctl,
168 * - detects if watchpoints and breakpoints share
170 * - create all possible watchpoints on cpu 0
171 * - change one of it to breakpoint
172 * - in case wp and bp do not share slots,
198 * Just disable the test for these architectures until these in test__bp_account_is_supported()