#include <sys/time.h>
#include <sys/prctl.h>
#include <errno.h>
#include <time.h>
#include <stdlib.h>
#include "parse-events.h"
#include "evlist.h"
#include "evsel.h"
#include "thread_map.h"
#include "cpumap.h"
#include "tests.h"
Go to the source code of this file.
|
static int | spin_sleep (void) |
|
static int | check_comm (struct switch_tracking *switch_tracking, union perf_event *event, const char *comm, int nr) |
|
static int | check_cpu (struct switch_tracking *switch_tracking, int cpu) |
|
static int | process_sample_event (struct perf_evlist *evlist, union perf_event *event, struct switch_tracking *switch_tracking) |
|
static int | process_event (struct perf_evlist *evlist, union perf_event *event, struct switch_tracking *switch_tracking) |
|
static int | add_event (struct perf_evlist *evlist, struct list_head *events, union perf_event *event) |
|
static void | free_event_nodes (struct list_head *events) |
|
static int | compar (const void *a, const void *b) |
|
static int | process_events (struct perf_evlist *evlist, struct switch_tracking *switch_tracking) |
|
int | test__switch_tracking (struct test *test __maybe_unused, int subtest __maybe_unused) |
|
◆ add_event()
static int add_event |
( |
struct perf_evlist * |
evlist, |
|
|
struct list_head * |
events, |
|
|
union perf_event * |
event |
|
) |
| |
|
static |
◆ check_comm()
◆ check_cpu()
◆ compar()
static int compar |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
|
static |
◆ free_event_nodes()
static void free_event_nodes |
( |
struct list_head * |
events | ) |
|
|
static |
◆ process_event()
◆ process_events()
◆ process_sample_event()
◆ spin_sleep()
static int spin_sleep |
( |
void |
| ) |
|
|
static |
◆ test__switch_tracking()
int test__switch_tracking |
( |
struct test *test |
__maybe_unused, |
|
|
int subtest |
__maybe_unused |
|
) |
| |
test__switch_tracking - test using sched_switch and tracking events.
This function implements a test that checks that sched_switch events and tracking events can be recorded for a workload (current process) using the evsel->system_wide and evsel->tracking flags (respectively) with other events sometimes enabled or disabled.
Definition at line 316 of file switch-tracking.c.