Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 5 of 5) sorted by relevance

/samples/trace_events/
Dtrace-events-sample.c22 static void simple_thread_func(int cnt) in simple_thread_func() argument
25 int len = cnt % 5; in simple_thread_func()
36 trace_foo_bar("hello", cnt, array, random_strings[len], in simple_thread_func()
39 trace_foo_with_template_simple("HELLO", cnt); in simple_thread_func()
41 trace_foo_bar_with_cond("Some times print", cnt); in simple_thread_func()
43 trace_foo_with_template_cond("prints other times", cnt); in simple_thread_func()
45 trace_foo_with_template_print("I have to be different", cnt); in simple_thread_func()
50 int cnt = 0; in simple_thread() local
53 simple_thread_func(cnt++); in simple_thread()
61 static void simple_thread_func_fn(int cnt) in simple_thread_func_fn() argument
[all …]
/samples/bpf/
Dtest_overhead_user.c27 static int cnt; variable
142 links[cnt] = bpf_program__attach(prog); in load_progs()
143 err = libbpf_get_error(links[cnt]); in load_progs()
146 links[cnt] = NULL; in load_progs()
149 cnt++; in load_progs()
157 while (cnt) in unload_progs()
158 bpf_link__destroy(links[--cnt]); in unload_progs()
Dtrace_output_user.c18 static __u64 cnt; variable
35 cnt++; in print_bpf_output()
37 if (cnt == MAX_CNT) { in print_bpf_output()
99 while ((ret = perf_buffer__poll(pb, 1000)) >= 0 && cnt < MAX_CNT) { in main()
Dtracex3_user.c81 __u64 cnt[SLOTS]; in print_hist() local
91 cnt[key] = value; in print_hist()
98 int c = num_colors * cnt[key] / (max_cnt + 1); in print_hist()
Dxdpsock_user.c729 u32 cnt = 0; in udp_csum() local
732 for (; cnt < len; cnt += 2) in udp_csum()
733 csum += udp_pkt[cnt >> 1]; in udp_csum()