Linux Perf
keep-tracking.c File Reference
#include <linux/types.h>
#include <unistd.h>
#include <sys/prctl.h>
#include "parse-events.h"
#include "evlist.h"
#include "evsel.h"
#include "thread_map.h"
#include "cpumap.h"
#include "tests.h"
Include dependency graph for keep-tracking.c:

Go to the source code of this file.

Macros

#define CHECK__(x)
 
#define CHECK_NOT_NULL__(x)
 

Functions

static int find_comm (struct perf_evlist *evlist, const char *comm)
 
int test__keep_tracking (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Macro Definition Documentation

◆ CHECK__

#define CHECK__ (   x)
Value:
{ \
while ((x) < 0) { \
pr_debug(#x " failed!\n"); \
goto out_err; \
} \
}

Definition at line 13 of file keep-tracking.c.

◆ CHECK_NOT_NULL__

#define CHECK_NOT_NULL__ (   x)
Value:
{ \
while ((x) == NULL) { \
pr_debug(#x " failed!\n"); \
goto out_err; \
} \
}

Definition at line 20 of file keep-tracking.c.

Function Documentation

◆ find_comm()

static int find_comm ( struct perf_evlist evlist,
const char *  comm 
)
static

Definition at line 27 of file keep-tracking.c.

Here is the call graph for this function:

◆ test__keep_tracking()

int test__keep_tracking ( struct test *test  __maybe_unused,
int subtest  __maybe_unused 
)

test__keep_tracking - test using a dummy software event to keep tracking.

This function implements a test that checks that tracking events continue when an event is disabled but a dummy software event is not disabled. If the test passes %0 is returned, otherwise %-1 is returned.

Definition at line 58 of file keep-tracking.c.

Here is the call graph for this function: