switch-tracking.c (e414fd1a3f709984a03f0fa287e39df6a7218e22) | switch-tracking.c (900c8ead5b0b21d73236ffbc4bc2f47a506d8297) |
---|---|
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> --- 366 unchanged lines hidden (view full) --- 375 if (err) { 376 pr_debug("Failed to parse event cycles:u\n"); 377 goto out_err; 378 } 379 380 cycles_evsel = evlist__last(evlist); 381 382 /* Third event */ | 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> --- 366 unchanged lines hidden (view full) --- 375 if (err) { 376 pr_debug("Failed to parse event cycles:u\n"); 377 goto out_err; 378 } 379 380 cycles_evsel = evlist__last(evlist); 381 382 /* Third event */ |
383 if (!perf_evlist__can_select_event(evlist, sched_switch)) { | 383 if (!evlist__can_select_event(evlist, sched_switch)) { |
384 pr_debug("No sched_switch\n"); 385 err = 0; 386 goto out; 387 } 388 389 err = parse_events(evlist, sched_switch, NULL); 390 if (err) { 391 pr_debug("Failed to parse event %s\n", sched_switch); --- 196 unchanged lines hidden --- | 384 pr_debug("No sched_switch\n"); 385 err = 0; 386 goto out; 387 } 388 389 err = parse_events(evlist, sched_switch, NULL); 390 if (err) { 391 pr_debug("Failed to parse event %s\n", sched_switch); --- 196 unchanged lines hidden --- |