Lines Matching refs:addrs
101 unsigned long long addrs[8]; in test_link_api_addrs() local
103 GET_ADDR("bpf_fentry_test1", addrs[0]); in test_link_api_addrs()
104 GET_ADDR("bpf_fentry_test2", addrs[1]); in test_link_api_addrs()
105 GET_ADDR("bpf_fentry_test3", addrs[2]); in test_link_api_addrs()
106 GET_ADDR("bpf_fentry_test4", addrs[3]); in test_link_api_addrs()
107 GET_ADDR("bpf_fentry_test5", addrs[4]); in test_link_api_addrs()
108 GET_ADDR("bpf_fentry_test6", addrs[5]); in test_link_api_addrs()
109 GET_ADDR("bpf_fentry_test7", addrs[6]); in test_link_api_addrs()
110 GET_ADDR("bpf_fentry_test8", addrs[7]); in test_link_api_addrs()
112 opts.kprobe_multi.addrs = (const unsigned long*) addrs; in test_link_api_addrs()
113 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs); in test_link_api_addrs()
179 unsigned long long addrs[8]; in test_attach_api_addrs() local
181 GET_ADDR("bpf_fentry_test1", addrs[0]); in test_attach_api_addrs()
182 GET_ADDR("bpf_fentry_test2", addrs[1]); in test_attach_api_addrs()
183 GET_ADDR("bpf_fentry_test3", addrs[2]); in test_attach_api_addrs()
184 GET_ADDR("bpf_fentry_test4", addrs[3]); in test_attach_api_addrs()
185 GET_ADDR("bpf_fentry_test5", addrs[4]); in test_attach_api_addrs()
186 GET_ADDR("bpf_fentry_test6", addrs[5]); in test_attach_api_addrs()
187 GET_ADDR("bpf_fentry_test7", addrs[6]); in test_attach_api_addrs()
188 GET_ADDR("bpf_fentry_test8", addrs[7]); in test_attach_api_addrs()
190 opts.addrs = (const unsigned long *) addrs; in test_attach_api_addrs()
191 opts.cnt = ARRAY_SIZE(addrs); in test_attach_api_addrs()
219 unsigned long long addrs[2]; in test_attach_api_fails() local
226 addrs[0] = ksym_get_addr("bpf_fentry_test1"); in test_attach_api_fails()
227 addrs[1] = ksym_get_addr("bpf_fentry_test2"); in test_attach_api_fails()
229 if (!ASSERT_FALSE(!addrs[0] || !addrs[1], "ksym_get_addr")) in test_attach_api_fails()
248 opts.addrs = (const unsigned long *) addrs; in test_attach_api_fails()
262 opts.addrs = (const unsigned long *) addrs; in test_attach_api_fails()
276 opts.addrs = NULL; in test_attach_api_fails()
290 opts.addrs = NULL; in test_attach_api_fails()