Lines Matching refs:i
65 int i; in print_stack() local
71 for (i = PERF_MAX_STACK_DEPTH - 1; i >= 0; i--) in print_stack()
72 print_ksym(ip[i]); in print_stack()
78 for (i = PERF_MAX_STACK_DEPTH - 1; i >= 0; i--) in print_stack()
79 print_addr(ip[i]); in print_stack()
141 int i, error = 0; in test_perf_event_all_cpu() local
147 for (i = 0; i < nr_cpus; i++) { in test_perf_event_all_cpu()
148 pmu_fd[i] = sys_perf_event_open(attr, -1, i, -1, 0); in test_perf_event_all_cpu()
149 if (pmu_fd[i] < 0) { in test_perf_event_all_cpu()
154 assert(ioctl(pmu_fd[i], PERF_EVENT_IOC_SET_BPF, prog_fd[0]) == 0); in test_perf_event_all_cpu()
155 assert(ioctl(pmu_fd[i], PERF_EVENT_IOC_ENABLE) == 0); in test_perf_event_all_cpu()
164 for (i--; i >= 0; i--) { in test_perf_event_all_cpu()
165 ioctl(pmu_fd[i], PERF_EVENT_IOC_DISABLE); in test_perf_event_all_cpu()
166 close(pmu_fd[i]); in test_perf_event_all_cpu()