switch-tracking.c (63503dba87acfab49280d3b05df6705a6f327e8a) | switch-tracking.c (0f98b11c616f240b54ee85629ff4d3650c7ccc7d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <sys/time.h> 3#include <sys/prctl.h> 4#include <errno.h> 5#include <time.h> 6#include <stdlib.h> 7#include <linux/zalloc.h> 8 --- 333 unchanged lines hidden (view full) --- 342 } 343 344 cpus = cpu_map__new(NULL); 345 if (!cpus) { 346 pr_debug("cpu_map__new failed!\n"); 347 goto out_err; 348 } 349 | 1// SPDX-License-Identifier: GPL-2.0 2#include <sys/time.h> 3#include <sys/prctl.h> 4#include <errno.h> 5#include <time.h> 6#include <stdlib.h> 7#include <linux/zalloc.h> 8 --- 333 unchanged lines hidden (view full) --- 342 } 343 344 cpus = cpu_map__new(NULL); 345 if (!cpus) { 346 pr_debug("cpu_map__new failed!\n"); 347 goto out_err; 348 } 349 |
350 evlist = perf_evlist__new(); | 350 evlist = evlist__new(); |
351 if (!evlist) { | 351 if (!evlist) { |
352 pr_debug("perf_evlist__new failed!\n"); | 352 pr_debug("evlist__new failed!\n"); |
353 goto out_err; 354 } 355 356 perf_evlist__set_maps(evlist, cpus, threads); 357 358 /* First event */ 359 err = parse_events(evlist, "cpu-clock:u", NULL); 360 if (err) { --- 221 unchanged lines hidden --- | 353 goto out_err; 354 } 355 356 perf_evlist__set_maps(evlist, cpus, threads); 357 358 /* First event */ 359 err = parse_events(evlist, "cpu-clock:u", NULL); 360 if (err) { --- 221 unchanged lines hidden --- |