Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pmu.c File Reference
#include <linux/list.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <dirent.h>
#include "sysfs.h"
#include "util.h"
#include "pmu.h"
#include "parse-events.h"
#include "cpumap.h"

Go to the source code of this file.

Data Structures

struct  test_format
 

Macros

#define EVENT_SOURCE_DEVICE_PATH   "/bus/event_source/devices/"
 
#define TEST_FORMATS_CNT   (sizeof(test_formats) / sizeof(struct test_format))
 
#define TERMS_CNT   (sizeof(test_terms) / sizeof(struct parse_events__term))
 

Functions

int perf_pmu_parse (struct list_head *list, char *name)
 
struct perf_pmuperf_pmu__scan (struct perf_pmu *pmu)
 
struct perf_pmuperf_pmu__find (char *name)
 
int perf_pmu__config (struct perf_pmu *pmu, struct perf_event_attr *attr, struct list_head *head_terms)
 
int perf_pmu__check_alias (struct perf_pmu *pmu, struct list_head *head_terms)
 
int perf_pmu__new_format (struct list_head *list, char *name, int config, unsigned long *bits)
 
void perf_pmu__set_format (unsigned long *bits, long from, long to)
 
int perf_pmu__test (void)
 

Variables

FILE * perf_pmu_in
 

Macro Definition Documentation

#define EVENT_SOURCE_DEVICE_PATH   "/bus/event_source/devices/"

Definition at line 14 of file pmu.c.

#define TERMS_CNT   (sizeof(test_terms) / sizeof(struct parse_events__term))

Definition at line 629 of file pmu.c.

#define TEST_FORMATS_CNT   (sizeof(test_formats) / sizeof(struct test_format))

Definition at line 570 of file pmu.c.

Function Documentation

int perf_pmu__check_alias ( struct perf_pmu pmu,
struct list_head head_terms 
)

Definition at line 506 of file pmu.c.

int perf_pmu__config ( struct perf_pmu pmu,
struct perf_event_attr attr,
struct list_head head_terms 
)

Definition at line 465 of file pmu.c.

struct perf_pmu* perf_pmu__find ( char name)
read

Definition at line 346 of file pmu.c.

int perf_pmu__new_format ( struct list_head list,
char name,
int  config,
unsigned long bits 
)

Definition at line 525 of file pmu.c.

struct perf_pmu* perf_pmu__scan ( struct perf_pmu pmu)
read

Definition at line 331 of file pmu.c.

void perf_pmu__set_format ( unsigned long bits,
long  from,
long  to 
)

Definition at line 542 of file pmu.c.

int perf_pmu__test ( void  )

Definition at line 689 of file pmu.c.

int perf_pmu_parse ( struct list_head list,
char name 
)

Variable Documentation

FILE* perf_pmu_in