Lines Matching refs:i
39 int i, pmu_fd; in sampling_start() local
49 for (i = 0; i < nr_cpus; i++) { in sampling_start()
50 pmu_fd = sys_perf_event_open(&pe_sample_attr, -1 /* pid */, i, in sampling_start()
56 links[i] = bpf_program__attach_perf_event(prog, pmu_fd); in sampling_start()
57 if (libbpf_get_error(links[i])) { in sampling_start()
59 links[i] = NULL; in sampling_start()
70 int i; in sampling_end() local
72 for (i = 0; i < nr_cpus; i++) in sampling_end()
73 bpf_link__destroy(links[i]); in sampling_end()
94 int i, max; in print_ip_map() local
99 key = 0, i = 0; in print_ip_map()
102 counts[i].ip = next_key; in print_ip_map()
103 counts[i++].count = value; in print_ip_map()
106 max = i; in print_ip_map()
110 for (i = 0; i < max; i++) { in print_ip_map()
111 if (counts[i].ip > PAGE_OFFSET) { in print_ip_map()
112 sym = ksym_search(counts[i].ip); in print_ip_map()
118 printf("0x%-17llx %-32s %u\n", counts[i].ip, sym->name, in print_ip_map()
119 counts[i].count); in print_ip_map()
121 printf("0x%-17llx %-32s %u\n", counts[i].ip, "(user)", in print_ip_map()
122 counts[i].count); in print_ip_map()