Linux Perf
perf_regs.c File Reference
#include <errno.h>
#include <string.h>
#include <regex.h>
#include "../../perf.h"
#include "../../util/util.h"
#include "../../util/perf_regs.h"
#include "../../util/debug.h"
Include dependency graph for perf_regs.c:

Go to the source code of this file.

Macros

#define SDT_OP_REGEX1   "^(%r)?([1-2]?[0-9]|3[0-1])$"
 
#define SDT_OP_REGEX2   "^(\\-)?([0-9]+)\\((%r)?([1-2]?[0-9]|3[0-1])\\)$"
 

Functions

static int sdt_init_op_regex (void)
 
int arch_sdt_arg_parse_op (char *old_op, char **new_op)
 

Variables

const struct sample_reg sample_reg_masks []
 
static regex_t sdt_op_regex1
 
static regex_t sdt_op_regex2
 

Macro Definition Documentation

◆ SDT_OP_REGEX1

#define SDT_OP_REGEX1   "^(%r)?([1-2]?[0-9]|3[0-1])$"

Definition at line 59 of file perf_regs.c.

◆ SDT_OP_REGEX2

#define SDT_OP_REGEX2   "^(\\-)?([0-9]+)\\((%r)?([1-2]?[0-9]|3[0-1])\\)$"

Definition at line 62 of file perf_regs.c.

Function Documentation

◆ arch_sdt_arg_parse_op()

int arch_sdt_arg_parse_op ( char *  old_op,
char **  new_op 
)

Definition at line 110 of file perf_regs.c.

◆ sdt_init_op_regex()

static int sdt_init_op_regex ( void  )
static

Definition at line 66 of file perf_regs.c.

Variable Documentation

◆ sample_reg_masks

const struct sample_reg sample_reg_masks[]

Definition at line 11 of file perf_regs.c.

◆ sdt_op_regex1

regex_t sdt_op_regex1
static

Definition at line 64 of file perf_regs.c.

◆ sdt_op_regex2

regex_t sdt_op_regex2
static

Definition at line 64 of file perf_regs.c.