Lines Matching refs:cnt
116 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs); in test_link_api_addrs()
135 opts.kprobe_multi.cnt = ARRAY_SIZE(syms); in test_link_api_syms()
194 opts.cnt = ARRAY_SIZE(addrs); in test_attach_api_addrs()
213 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms()
255 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_fails()
270 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_fails()
285 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_fails()
300 opts.cnt = 0; in test_attach_api_fails()
315 opts.cnt = INT_MAX; in test_attach_api_fails()
496 size_t cap = 0, cnt = 0; in get_syms() local
557 sizeof(*syms), cnt + 1); in get_syms()
561 syms[cnt++] = ksym_name; in get_syms()
565 *cntp = cnt; in get_syms()
581 size_t cnt = 0; in get_addrs() local
615 if (cnt == max_cnt) { in get_addrs()
625 addrs[cnt++] = (unsigned long)addr; in get_addrs()
629 *cntp = cnt; in get_addrs()
661 printf("%s: found %lu functions\n", __func__, opts->cnt); in do_bench_test()
671 size_t cnt = 0; in test_kprobe_multi_bench_attach() local
673 if (!ASSERT_OK(get_syms(&syms, &cnt, kernel), "get_syms")) in test_kprobe_multi_bench_attach()
681 opts.cnt = cnt; in test_kprobe_multi_bench_attach()
696 size_t cnt = 0; in test_kprobe_multi_bench_attach_addr() local
699 err = get_addrs(&addrs, &cnt, kernel); in test_kprobe_multi_bench_attach_addr()
713 opts.cnt = cnt; in test_kprobe_multi_bench_attach_addr()