switch-tracking.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | switch-tracking.c (1eaf496ed386934f1c2439a120fe84a05194f91a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <sys/time.h> 3#include <sys/prctl.h> 4#include <errno.h> 5#include <limits.h> 6#include <time.h> 7#include <stdlib.h> 8#include <linux/zalloc.h> --- 6 unchanged lines hidden (view full) --- 15#include "parse-events.h" 16#include "evlist.h" 17#include "evsel.h" 18#include "thread_map.h" 19#include "record.h" 20#include "tests.h" 21#include "util/mmap.h" 22#include "util/sample.h" | 1// SPDX-License-Identifier: GPL-2.0 2#include <sys/time.h> 3#include <sys/prctl.h> 4#include <errno.h> 5#include <limits.h> 6#include <time.h> 7#include <stdlib.h> 8#include <linux/zalloc.h> --- 6 unchanged lines hidden (view full) --- 15#include "parse-events.h" 16#include "evlist.h" 17#include "evsel.h" 18#include "thread_map.h" 19#include "record.h" 20#include "tests.h" 21#include "util/mmap.h" 22#include "util/sample.h" |
23#include "pmu.h" | 23#include "pmus.h" |
24 25static int spin_sleep(void) 26{ 27 struct timeval start, now, diff, maxtime; 28 struct timespec ts; 29 int err, i; 30 31 maxtime.tv_sec = 0; --- 338 unchanged lines hidden (view full) --- 370 if (err) { 371 pr_debug("Failed to parse event dummy:u\n"); 372 goto out_err; 373 } 374 375 cpu_clocks_evsel = evlist__last(evlist); 376 377 /* Second event */ | 24 25static int spin_sleep(void) 26{ 27 struct timeval start, now, diff, maxtime; 28 struct timespec ts; 29 int err, i; 30 31 maxtime.tv_sec = 0; --- 338 unchanged lines hidden (view full) --- 370 if (err) { 371 pr_debug("Failed to parse event dummy:u\n"); 372 goto out_err; 373 } 374 375 cpu_clocks_evsel = evlist__last(evlist); 376 377 /* Second event */ |
378 if (perf_pmu__has_hybrid()) { | 378 if (perf_pmus__has_hybrid()) { |
379 cycles = "cpu_core/cycles/u"; 380 err = parse_event(evlist, cycles); 381 if (err) { 382 cycles = "cpu_atom/cycles/u"; 383 pr_debug("Trying %s\n", cycles); 384 err = parse_event(evlist, cycles); 385 } 386 } else { --- 210 unchanged lines hidden --- | 379 cycles = "cpu_core/cycles/u"; 380 err = parse_event(evlist, cycles); 381 if (err) { 382 cycles = "cpu_atom/cycles/u"; 383 pr_debug("Trying %s\n", cycles); 384 err = parse_event(evlist, cycles); 385 } 386 } else { --- 210 unchanged lines hidden --- |