Lines Matching refs:a
167 static bool cpus_map_matched(struct evsel *a, struct evsel *b) in cpus_map_matched() argument
169 if (!a->core.cpus && !b->core.cpus) in cpus_map_matched()
172 if (!a->core.cpus || !b->core.cpus) in cpus_map_matched()
175 if (perf_cpu_map__nr(a->core.cpus) != perf_cpu_map__nr(b->core.cpus)) in cpus_map_matched()
178 for (int i = 0; i < perf_cpu_map__nr(a->core.cpus); i++) { in cpus_map_matched()
179 if (perf_cpu_map__cpu(a->core.cpus, i).cpu != in cpus_map_matched()
224 static inline void diff_timespec(struct timespec *r, struct timespec *a, in diff_timespec() argument
227 r->tv_sec = a->tv_sec - b->tv_sec; in diff_timespec()
228 if (a->tv_nsec < b->tv_nsec) { in diff_timespec()
229 r->tv_nsec = a->tv_nsec + NSEC_PER_SEC - b->tv_nsec; in diff_timespec()
232 r->tv_nsec = a->tv_nsec - b->tv_nsec ; in diff_timespec()