Linux Perf
rdpmc.c File Reference
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <linux/types.h>
#include "perf.h"
#include "debug.h"
#include "tests/tests.h"
#include "cloexec.h"
#include "util.h"
#include "arch-tests.h"
Include dependency graph for rdpmc.c:

Go to the source code of this file.

Functions

static u64 rdpmc (unsigned int counter)
 
static u64 rdtsc (void)
 
static u64 mmap_read_self (void *addr)
 
static void segfault_handler (int sig __maybe_unused, siginfo_t *info __maybe_unused, void *uc __maybe_unused)
 
static int __test__rdpmc (void)
 
int test__rdpmc (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Function Documentation

◆ __test__rdpmc()

static int __test__rdpmc ( void  )
static

Definition at line 93 of file rdpmc.c.

Here is the call graph for this function:

◆ mmap_read_self()

static u64 mmap_read_self ( void *  addr)
static

Definition at line 35 of file rdpmc.c.

Here is the call graph for this function:

◆ rdpmc()

static u64 rdpmc ( unsigned int  counter)
static

Definition at line 17 of file rdpmc.c.

◆ rdtsc()

static u64 rdtsc ( void  )
static

Definition at line 26 of file rdpmc.c.

◆ segfault_handler()

static void segfault_handler ( int sig  __maybe_unused,
siginfo_t *info  __maybe_unused,
void *uc  __maybe_unused 
)
static

Definition at line 86 of file rdpmc.c.

◆ test__rdpmc()

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

Definition at line 158 of file rdpmc.c.

Here is the call graph for this function: