Linux Perf
perf.h File Reference
#include <time.h>
#include <stdbool.h>
#include <linux/types.h>
#include <linux/perf_event.h>
#include "perf-sys.h"
#include "util/target.h"
Include dependency graph for perf.h:

Go to the source code of this file.

Classes

struct  record_opts
 

Macros

#define HAVE_ATTR_TEST
 
#define MAX_NR_CPUS   1024
 

Functions

void test_attr__ready (void)
 
void test_attr__init (void)
 
void test_attr__open (struct perf_event_attr *attr, pid_t pid, int cpu, int fd, int group_fd, unsigned long flags)
 
static unsigned long long rdclock (void)
 
void pthread__unblock_sigwinch (void)
 
int record__parse_freq (const struct option *opt, const char *str, int unset)
 

Variables

bool test_attr__enabled
 
const char * input_name
 
bool perf_host
 
bool perf_guest
 
const char perf_version_string []
 
const char *const * record_usage
 
struct option * record_options
 
int version_verbose
 

Macro Definition Documentation

◆ HAVE_ATTR_TEST

#define HAVE_ATTR_TEST

Definition at line 16 of file perf.h.

◆ MAX_NR_CPUS

#define MAX_NR_CPUS   1024

Definition at line 27 of file perf.h.

Function Documentation

◆ pthread__unblock_sigwinch()

void pthread__unblock_sigwinch ( void  )

Definition at line 414 of file perf.c.

◆ rdclock()

static unsigned long long rdclock ( void  )
inlinestatic

Definition at line 19 of file perf.h.

◆ record__parse_freq()

int record__parse_freq ( const struct option *  opt,
const char *  str,
int  unset 
)

Definition at line 306 of file record.c.

Here is the call graph for this function:

◆ test_attr__init()

void test_attr__init ( void  )

Definition at line 42 of file attr.c.

◆ test_attr__open()

void test_attr__open ( struct perf_event_attr *  attr,
pid_t  pid,
int  cpu,
int  fd,
int  group_fd,
unsigned long  flags 
)

Definition at line 145 of file attr.c.

Here is the call graph for this function:

◆ test_attr__ready()

void test_attr__ready ( void  )

Definition at line 158 of file attr.c.

Variable Documentation

◆ input_name

const char* input_name

Definition at line 40 of file perf.c.

◆ perf_guest

bool perf_guest

Definition at line 81 of file util.c.

◆ perf_host

bool perf_host

Definition at line 80 of file util.c.

◆ perf_version_string

const char perf_version_string[]

Definition at line 60 of file header.c.

◆ record_options

struct option* record_options

Definition at line 1684 of file builtin-record.c.

◆ record_usage

const char* const* record_usage

Definition at line 1498 of file builtin-record.c.

◆ test_attr__enabled

bool test_attr__enabled

Definition at line 78 of file util.c.

◆ version_verbose

int version_verbose

Definition at line 11 of file builtin-version.c.