Linux Perf
auxtrace.c File Reference
#include <stdbool.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/bitops.h>
#include <linux/log2.h>
#include "../../util/evlist.h"
#include "../../util/auxtrace.h"
#include "../../util/evsel.h"
Include dependency graph for auxtrace.c:

Go to the source code of this file.

Macros

#define PERF_EVENT_CPUM_SF   0xB0000 /* Event: Basic-sampling */
 
#define PERF_EVENT_CPUM_SF_DIAG   0xBD000 /* Event: Combined-sampling */
 
#define DEFAULT_AUX_PAGES   128
 
#define DEFAULT_FREQ   4000
 

Functions

static void cpumsf_free (struct auxtrace_record *itr)
 
static size_t cpumsf_info_priv_size (struct auxtrace_record *itr __maybe_unused, struct perf_evlist *evlist __maybe_unused)
 
static int cpumsf_info_fill (struct auxtrace_record *itr __maybe_unused, struct perf_session *session __maybe_unused, struct auxtrace_info_event *auxtrace_info __maybe_unused, size_t priv_size __maybe_unused)
 
static unsigned long cpumsf_reference (struct auxtrace_record *itr __maybe_unused)
 
static int cpumsf_recording_options (struct auxtrace_record *ar __maybe_unused, struct perf_evlist *evlist __maybe_unused, struct record_opts *opts)
 
static int cpumsf_parse_snapshot_options (struct auxtrace_record *itr __maybe_unused, struct record_opts *opts __maybe_unused, const char *str __maybe_unused)
 
struct auxtrace_recordauxtrace_record__init (struct perf_evlist *evlist, int *err)
 

Macro Definition Documentation

◆ DEFAULT_AUX_PAGES

#define DEFAULT_AUX_PAGES   128

Definition at line 13 of file auxtrace.c.

◆ DEFAULT_FREQ

#define DEFAULT_FREQ   4000

Definition at line 14 of file auxtrace.c.

◆ PERF_EVENT_CPUM_SF

#define PERF_EVENT_CPUM_SF   0xB0000 /* Event: Basic-sampling */

Definition at line 11 of file auxtrace.c.

◆ PERF_EVENT_CPUM_SF_DIAG

#define PERF_EVENT_CPUM_SF_DIAG   0xBD000 /* Event: Combined-sampling */

Definition at line 12 of file auxtrace.c.

Function Documentation

◆ auxtrace_record__init()

struct auxtrace_record* auxtrace_record__init ( struct perf_evlist evlist,
int *  err 
)

Definition at line 83 of file auxtrace.c.

Here is the call graph for this function:

◆ cpumsf_free()

static void cpumsf_free ( struct auxtrace_record itr)
static

Definition at line 16 of file auxtrace.c.

Here is the call graph for this function:

◆ cpumsf_info_fill()

static int cpumsf_info_fill ( struct auxtrace_record *itr  __maybe_unused,
struct perf_session *session  __maybe_unused,
struct auxtrace_info_event *auxtrace_info  __maybe_unused,
size_t priv_size  __maybe_unused 
)
static

Definition at line 28 of file auxtrace.c.

◆ cpumsf_info_priv_size()

static size_t cpumsf_info_priv_size ( struct auxtrace_record *itr  __maybe_unused,
struct perf_evlist *evlist  __maybe_unused 
)
static

Definition at line 21 of file auxtrace.c.

◆ cpumsf_parse_snapshot_options()

static int cpumsf_parse_snapshot_options ( struct auxtrace_record *itr  __maybe_unused,
struct record_opts *opts  __maybe_unused,
const char *str  __maybe_unused 
)
static

Definition at line 72 of file auxtrace.c.

◆ cpumsf_recording_options()

static int cpumsf_recording_options ( struct auxtrace_record *ar  __maybe_unused,
struct perf_evlist *evlist  __maybe_unused,
struct record_opts opts 
)
static

Definition at line 43 of file auxtrace.c.

◆ cpumsf_reference()

static unsigned long cpumsf_reference ( struct auxtrace_record *itr  __maybe_unused)
static

Definition at line 37 of file auxtrace.c.