Linux Perf
event-times.c File Reference
#include <linux/compiler.h>
#include <errno.h>
#include <inttypes.h>
#include <string.h>
#include <sys/wait.h>
#include "tests.h"
#include "evlist.h"
#include "evsel.h"
#include "util.h"
#include "debug.h"
#include "thread_map.h"
#include "target.h"
Include dependency graph for event-times.c:

Go to the source code of this file.

Macros

#define _T(attach, detach)
 

Functions

static int attach__enable_on_exec (struct perf_evlist *evlist)
 
static int detach__enable_on_exec (struct perf_evlist *evlist)
 
static int attach__current_disabled (struct perf_evlist *evlist)
 
static int attach__current_enabled (struct perf_evlist *evlist)
 
static int detach__disable (struct perf_evlist *evlist)
 
static int attach__cpu_disabled (struct perf_evlist *evlist)
 
static int attach__cpu_enabled (struct perf_evlist *evlist)
 
static int test_times (int(attach)(struct perf_evlist *), int(detach)(struct perf_evlist *))
 
int test__event_times (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Macro Definition Documentation

◆ _T

#define _T (   attach,
  detach 
)
Value:
err = test_times(attach, detach); \
if (err && (ret == TEST_OK || ret == TEST_SKIP)) \
ret = err;
int int err
Definition: 5sec.c:44
static int test_times(int(attach)(struct perf_evlist *), int(detach)(struct perf_evlist *))
Definition: event-times.c:161
struct tp_field args ret
Definition: tests.h:25

Function Documentation

◆ attach__cpu_disabled()

static int attach__cpu_disabled ( struct perf_evlist evlist)
static

Definition at line 110 of file event-times.c.

Here is the call graph for this function:

◆ attach__cpu_enabled()

static int attach__cpu_enabled ( struct perf_evlist evlist)
static

Definition at line 139 of file event-times.c.

Here is the call graph for this function:

◆ attach__current_disabled()

static int attach__current_disabled ( struct perf_evlist evlist)
static

Definition at line 57 of file event-times.c.

Here is the call graph for this function:

◆ attach__current_enabled()

static int attach__current_enabled ( struct perf_evlist evlist)
static

Definition at line 83 of file event-times.c.

Here is the call graph for this function:

◆ attach__enable_on_exec()

static int attach__enable_on_exec ( struct perf_evlist evlist)
static

Definition at line 15 of file event-times.c.

Here is the call graph for this function:

◆ detach__disable()

static int detach__disable ( struct perf_evlist evlist)
static

Definition at line 103 of file event-times.c.

Here is the call graph for this function:

◆ detach__enable_on_exec()

static int detach__enable_on_exec ( struct perf_evlist evlist)
static

Definition at line 51 of file event-times.c.

◆ test__event_times()

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

Definition at line 217 of file event-times.c.

Here is the call graph for this function:

◆ test_times()

static int test_times ( int(attach)(struct perf_evlist *)  ,
int(detach)(struct perf_evlist *)   
)
static

Definition at line 161 of file event-times.c.

Here is the call graph for this function: