Linux Perf
sw-clock.c File Reference
#include <errno.h>
#include <inttypes.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/mman.h>
#include "tests.h"
#include "util/evsel.h"
#include "util/evlist.h"
#include "util/cpumap.h"
#include "util/thread_map.h"
Include dependency graph for sw-clock.c:

Go to the source code of this file.

Macros

#define NR_LOOPS   10000000
 

Functions

static int __test__sw_clock_freq (enum perf_sw_ids clock_id)
 
int test__sw_clock_freq (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Macro Definition Documentation

◆ NR_LOOPS

#define NR_LOOPS   10000000

Definition at line 15 of file sw-clock.c.

Function Documentation

◆ __test__sw_clock_freq()

static int __test__sw_clock_freq ( enum perf_sw_ids  clock_id)
static

Definition at line 22 of file sw-clock.c.

Here is the call graph for this function:

◆ test__sw_clock_freq()

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

Definition at line 135 of file sw-clock.c.

Here is the call graph for this function: