Linux Perf
|
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <linux/bitops.h>
#include "pmu.h"
#include "pmu-bison.h"
#include <unistd.h>
Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | yy_trans_info |
Typedefs | |
typedef signed char | flex_int8_t |
typedef short int | flex_int16_t |
typedef int | flex_int32_t |
typedef unsigned char | flex_uint8_t |
typedef unsigned short int | flex_uint16_t |
typedef unsigned int | flex_uint32_t |
typedef struct yy_buffer_state * | YY_BUFFER_STATE |
typedef size_t | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
Variables | |
yy_size_t | perf_pmu_leng |
FILE * | perf_pmu_in = (FILE *) 0 |
FILE * | perf_pmu_out = (FILE *) 0 |
static size_t | yy_buffer_stack_top = 0 |
static size_t | yy_buffer_stack_max = 0 |
static YY_BUFFER_STATE * | yy_buffer_stack = 0 |
static char | yy_hold_char |
static yy_size_t | yy_n_chars |
static char * | yy_c_buf_p = (char *) 0 |
static int | yy_init = 0 |
static int | yy_start = 0 |
static int | yy_did_buffer_switch_on_eof |
int | perf_pmu_lineno = 1 |
char * | perf_pmu_text |
static yyconst flex_int16_t | yy_accept [20] |
static yyconst YY_CHAR | yy_ec [256] |
static yyconst YY_CHAR | yy_meta [15] |
static yyconst flex_uint16_t | yy_base [21] |
static yyconst flex_int16_t | yy_def [21] |
static yyconst flex_uint16_t | yy_nxt [39] |
static yyconst flex_int16_t | yy_chk [39] |
static yy_state_type | yy_last_accepting_state |
static char * | yy_last_accepting_cpos |
int | perf_pmu__flex_debug = 0 |
YY_DECL | |
char * | yy_cp |
char * | yy_bp |
int | yy_act |
#define BEGIN (yy_start) = 1 + 2 * |
Definition at line 145 of file pmu-flex.c.
#define ECHO do { if (fwrite( perf_pmu_text, perf_pmu_leng, 1, perf_pmu_out )) {} } while (0) |
Definition at line 611 of file pmu-flex.c.
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 193 of file pmu-flex.c.
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 194 of file pmu-flex.c.
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 195 of file pmu-flex.c.
#define FLEX_SCANNER |
Definition at line 28 of file pmu-flex.c.
#define FLEXINT_H |
Definition at line 49 of file pmu-flex.c.
#define INITIAL 0 |
Definition at line 515 of file pmu-flex.c.
#define INT16_MAX (32767) |
Definition at line 91 of file pmu-flex.c.
#define INT16_MIN (-32767-1) |
Definition at line 82 of file pmu-flex.c.
#define INT32_MAX (2147483647) |
Definition at line 94 of file pmu-flex.c.
#define INT32_MIN (-2147483647-1) |
Definition at line 85 of file pmu-flex.c.
#define INT8_MAX (127) |
Definition at line 88 of file pmu-flex.c.
#define INT8_MIN (-128) |
Definition at line 79 of file pmu-flex.c.
#define REJECT reject_used_but_not_detected |
Definition at line 488 of file pmu-flex.c.
#define UINT16_MAX (65535U) |
Definition at line 100 of file pmu-flex.c.
#define UINT32_MAX (4294967295U) |
Definition at line 103 of file pmu-flex.c.
#define UINT8_MAX (255U) |
Definition at line 97 of file pmu-flex.c.
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
Definition at line 214 of file pmu-flex.c.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 360 of file pmu-flex.c.
#define YY_BREAK /*LINTED*/break; |
Definition at line 690 of file pmu-flex.c.
#define YY_BUF_SIZE 16384 |
Definition at line 171 of file pmu-flex.c.
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 276 of file pmu-flex.c.
#define YY_BUFFER_NEW 0 |
Definition at line 264 of file pmu-flex.c.
#define YY_BUFFER_NORMAL 1 |
Definition at line 265 of file pmu-flex.c.
#define yy_create_buffer perf_pmu__create_buffer |
Definition at line 9 of file pmu-flex.c.
#define YY_CURRENT_BUFFER |
Definition at line 292 of file pmu-flex.c.
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 299 of file pmu-flex.c.
#define YY_DECL int perf_pmu_lex (void) |
Definition at line 678 of file pmu-flex.c.
#define YY_DECL_IS_OURS 1 |
Definition at line 674 of file pmu-flex.c.
#define yy_delete_buffer perf_pmu__delete_buffer |
Definition at line 10 of file pmu-flex.c.
#define YY_DO_BEFORE_ACTION |
Definition at line 391 of file pmu-flex.c.
#define YY_END_OF_BUFFER 11 |
Definition at line 399 of file pmu-flex.c.
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 160 of file pmu-flex.c.
#define YY_EXIT_FAILURE 2 |
#define YY_EXTRA_TYPE void * |
Definition at line 526 of file pmu-flex.c.
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
Definition at line 665 of file pmu-flex.c.
#define yy_flex_debug perf_pmu__flex_debug |
Definition at line 11 of file pmu-flex.c.
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 29 of file pmu-flex.c.
#define YY_FLEX_MINOR_VERSION 6 |
Definition at line 30 of file pmu-flex.c.
#define YY_FLEX_SUBMINOR_VERSION 0 |
Definition at line 31 of file pmu-flex.c.
#define yy_flush_buffer perf_pmu__flush_buffer |
Definition at line 13 of file pmu-flex.c.
#define YY_FLUSH_BUFFER perf_pmu__flush_buffer(YY_CURRENT_BUFFER ) |
Definition at line 328 of file pmu-flex.c.
#define yy_init_buffer perf_pmu__init_buffer |
Definition at line 12 of file pmu-flex.c.
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) |
Definition at line 618 of file pmu-flex.c.
#define YY_INT_ALIGNED short int |
Definition at line 5 of file pmu-flex.c.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 197 of file pmu-flex.c.
#define YY_LINENO_REWIND_TO | ( | ptr | ) |
Definition at line 198 of file pmu-flex.c.
#define yy_load_buffer_state perf_pmu__load_buffer_state |
Definition at line 14 of file pmu-flex.c.
#define YY_MORE_ADJ 0 |
Definition at line 490 of file pmu-flex.c.
#define yy_new_buffer perf_pmu__create_buffer |
Definition at line 338 of file pmu-flex.c.
#define YY_NEW_FILE perf_pmu_restart(perf_pmu_in ) |
Definition at line 158 of file pmu-flex.c.
#define YY_NULL 0 |
Definition at line 132 of file pmu-flex.c.
#define YY_NUM_RULES 10 |
Definition at line 398 of file pmu-flex.c.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 602 of file pmu-flex.c.
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 491 of file pmu-flex.c.
#define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 693 of file pmu-flex.c.
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Definition at line 139 of file pmu-flex.c.
#define yy_set_bol | ( | at_bol | ) |
Definition at line 350 of file pmu-flex.c.
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 340 of file pmu-flex.c.
#define YY_START (((yy_start) - 1) / 2) |
Definition at line 151 of file pmu-flex.c.
#define YY_START_STACK_INCR 25 |
Definition at line 660 of file pmu-flex.c.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 177 of file pmu-flex.c.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 155 of file pmu-flex.c.
#define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 217 of file pmu-flex.c.
#define yy_switch_to_buffer perf_pmu__switch_to_buffer |
Definition at line 15 of file pmu-flex.c.
#define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 180 of file pmu-flex.c.
#define YY_TYPEDEF_YY_SIZE_T |
Definition at line 185 of file pmu-flex.c.
#define YY_USER_ACTION |
Definition at line 685 of file pmu-flex.c.
#define yyalloc perf_pmu_alloc |
Definition at line 24 of file pmu-flex.c.
#define yyconst |
Definition at line 128 of file pmu-flex.c.
#define yyfree perf_pmu_free |
Definition at line 26 of file pmu-flex.c.
#define yyin perf_pmu_in |
Definition at line 16 of file pmu-flex.c.
#define yyleng perf_pmu_leng |
Definition at line 17 of file pmu-flex.c.
#define yyless | ( | n | ) |
Definition at line 201 of file pmu-flex.c.
#define yyless | ( | n | ) |
Definition at line 201 of file pmu-flex.c.
#define yylex perf_pmu_lex |
Definition at line 18 of file pmu-flex.c.
#define yylineno perf_pmu_lineno |
Definition at line 19 of file pmu-flex.c.
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 489 of file pmu-flex.c.
#define yyout perf_pmu_out |
Definition at line 20 of file pmu-flex.c.
#define yyrealloc perf_pmu_realloc |
Definition at line 25 of file pmu-flex.c.
#define yyrestart perf_pmu_restart |
Definition at line 21 of file pmu-flex.c.
#define YYSTATE YY_START |
Definition at line 152 of file pmu-flex.c.
#define YYTABLES_NAME "yytables" |
#define yyterminate | ( | ) | return YY_NULL |
Definition at line 655 of file pmu-flex.c.
#define yytext perf_pmu_text |
Definition at line 22 of file pmu-flex.c.
#define yytext_ptr perf_pmu_text |
Definition at line 378 of file pmu-flex.c.
#define yywrap perf_pmu_wrap |
Definition at line 23 of file pmu-flex.c.
typedef short int flex_int16_t |
Definition at line 71 of file pmu-flex.c.
typedef int flex_int32_t |
Definition at line 72 of file pmu-flex.c.
typedef signed char flex_int8_t |
Definition at line 70 of file pmu-flex.c.
typedef unsigned short int flex_uint16_t |
Definition at line 74 of file pmu-flex.c.
typedef unsigned int flex_uint32_t |
Definition at line 75 of file pmu-flex.c.
typedef unsigned char flex_uint8_t |
Definition at line 73 of file pmu-flex.c.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 181 of file pmu-flex.c.
typedef unsigned char YY_CHAR |
Definition at line 364 of file pmu-flex.c.
typedef size_t yy_size_t |
Definition at line 186 of file pmu-flex.c.
typedef int yy_state_type |
Definition at line 368 of file pmu-flex.c.
if | ( | ! | yy_init | ) |
|
static |
YY_BUFFER_STATE perf_pmu__create_buffer | ( | FILE * | file, |
int | size | ||
) |
void perf_pmu__delete_buffer | ( | YY_BUFFER_STATE | b | ) |
void perf_pmu__flush_buffer | ( | YY_BUFFER_STATE | b | ) |
|
static |
|
static |
YY_BUFFER_STATE perf_pmu__scan_buffer | ( | char * | base, |
yy_size_t | size | ||
) |
YY_BUFFER_STATE perf_pmu__scan_bytes | ( | yyconst char * | bytes, |
yy_size_t | len | ||
) |
YY_BUFFER_STATE perf_pmu__scan_string | ( | yyconst char * | yy_str | ) |
void perf_pmu__switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
void* perf_pmu_alloc | ( | yy_size_t | ) |
|
static |
void perf_pmu_free | ( | void * | ) |
int perf_pmu_get_debug | ( | void | ) |
YY_EXTRA_TYPE perf_pmu_get_extra | ( | void | ) |
FILE* perf_pmu_get_in | ( | void | ) |
yy_size_t perf_pmu_get_leng | ( | void | ) |
int perf_pmu_get_lineno | ( | void | ) |
FILE* perf_pmu_get_out | ( | void | ) |
char* perf_pmu_get_text | ( | void | ) |
int perf_pmu_lex | ( | void | ) |
int perf_pmu_lex_destroy | ( | void | ) |
void perf_pmu_pop_buffer_state | ( | void | ) |
void perf_pmu_push_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
void* perf_pmu_realloc | ( | void * | , |
yy_size_t | |||
) |
void perf_pmu_restart | ( | FILE * | input_file | ) |
void perf_pmu_set_debug | ( | int | debug_flag | ) |
void perf_pmu_set_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
void perf_pmu_set_in | ( | FILE * | _in_str | ) |
void perf_pmu_set_lineno | ( | int | _line_number | ) |
void perf_pmu_set_out | ( | FILE * | _out_str | ) |
int perf_pmu_wrap | ( | void | ) |
|
static |
Definition at line 500 of file pmu-flex.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int perf_pmu__flex_debug = 0 |
Definition at line 483 of file pmu-flex.c.
FILE * perf_pmu_in = (FILE *) 0 |
Definition at line 366 of file pmu-flex.c.
yy_size_t perf_pmu_leng |
Definition at line 304 of file pmu-flex.c.
int perf_pmu_lineno = 1 |
Definition at line 372 of file pmu-flex.c.
FILE * perf_pmu_out = (FILE *) 0 |
Definition at line 366 of file pmu-flex.c.
char * perf_pmu_text |
Definition at line 492 of file pmu-flex.c.
|
static |
Definition at line 407 of file pmu-flex.c.
int yy_act |
Definition at line 702 of file pmu-flex.c.
|
static |
Definition at line 451 of file pmu-flex.c.
char * yy_bp |
Definition at line 701 of file pmu-flex.c.
|
static |
Stack as an array.
Definition at line 284 of file pmu-flex.c.
|
static |
capacity of stack.
Definition at line 283 of file pmu-flex.c.
|
static |
index of top of stack.
Definition at line 282 of file pmu-flex.c.
|
static |
Definition at line 307 of file pmu-flex.c.
|
static |
Definition at line 471 of file pmu-flex.c.
char* yy_cp |
Definition at line 701 of file pmu-flex.c.
YY_DECL |
The main scanner function which does all the work.
Definition at line 699 of file pmu-flex.c.
|
static |
Definition at line 457 of file pmu-flex.c.
|
static |
Definition at line 314 of file pmu-flex.c.
Definition at line 413 of file pmu-flex.c.
|
static |
Definition at line 302 of file pmu-flex.c.
|
static |
Definition at line 308 of file pmu-flex.c.
|
static |
Definition at line 480 of file pmu-flex.c.
|
static |
Definition at line 479 of file pmu-flex.c.
Definition at line 445 of file pmu-flex.c.
|
static |
Definition at line 303 of file pmu-flex.c.
|
static |
Definition at line 463 of file pmu-flex.c.
|
static |
Definition at line 309 of file pmu-flex.c.