Linux Perf
|
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "../perf.h"
#include "parse-events.h"
#include "parse-events-bison.h"
#include <unistd.h>
Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | yyguts_t |
Macros | |
#define | YY_INT_ALIGNED short int |
#define | FLEX_SCANNER |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 6 |
#define | YY_FLEX_SUBMINOR_VERSION 0 |
#define | FLEXINT_H |
#define | INT8_MIN (-128) |
#define | INT16_MIN (-32767-1) |
#define | INT32_MIN (-2147483647-1) |
#define | INT8_MAX (127) |
#define | INT16_MAX (32767) |
#define | INT32_MAX (2147483647) |
#define | UINT8_MAX (255U) |
#define | UINT16_MAX (65535U) |
#define | UINT32_MAX (4294967295U) |
#define | yyconst |
#define | YY_NULL 0 |
#define | YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
#define | YY_TYPEDEF_YY_SCANNER_T |
#define | yyin yyg->yyin_r |
#define | yyout yyg->yyout_r |
#define | yyextra yyg->yyextra_r |
#define | yyleng yyg->yyleng_r |
#define | yytext yyg->yytext_r |
#define | yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
#define | yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
#define | yy_flex_debug yyg->yy_flex_debug_r |
#define | BEGIN yyg->yy_start = 1 + 2 * |
#define | YY_START ((yyg->yy_start - 1) / 2) |
#define | YYSTATE YY_START |
#define | YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
#define | YY_NEW_FILE parse_events_restart(yyin ,yyscanner ) |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_BUF_SIZE 16384 |
#define | YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
#define | YY_TYPEDEF_YY_BUFFER_STATE |
#define | YY_TYPEDEF_YY_SIZE_T |
#define | EOB_ACT_CONTINUE_SCAN 0 |
#define | EOB_ACT_END_OF_FILE 1 |
#define | EOB_ACT_LAST_MATCH 2 |
#define | YY_LESS_LINENO(n) |
#define | YY_LINENO_REWIND_TO(dst) |
#define | yyless(n) |
#define | unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) |
#define | YY_STRUCT_YY_BUFFER_STATE |
#define | YY_BUFFER_NEW 0 |
#define | YY_BUFFER_NORMAL 1 |
#define | YY_BUFFER_EOF_PENDING 2 |
#define | YY_CURRENT_BUFFER |
#define | YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
#define | YY_FLUSH_BUFFER parse_events__flush_buffer(YY_CURRENT_BUFFER ,yyscanner) |
#define | yy_new_buffer parse_events__create_buffer |
#define | yy_set_interactive(is_interactive) |
#define | yy_set_bol(at_bol) |
#define | YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define | yytext_ptr yytext_r |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 94 |
#define | YY_END_OF_BUFFER 95 |
#define | REJECT reject_used_but_not_detected |
#define | yymore() yymore_used_but_not_detected |
#define | YY_MORE_ADJ 0 |
#define | YY_RESTORE_YY_MORE_OFFSET |
#define | REWIND(__alloc) |
#define | YY_USER_ACTION |
#define | INITIAL 0 |
#define | mem 1 |
#define | config 2 |
#define | event 3 |
#define | array 4 |
#define | YY_EXTRA_TYPE void * |
#define | yylval yyg->yylval_r |
#define | yylloc yyg->yylloc_r |
#define | YY_READ_BUF_SIZE 8192 |
#define | ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
#define | YY_INPUT(buf, result, max_size) |
#define | yyterminate() return YY_NULL |
#define | YY_START_STACK_INCR 25 |
#define | YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) |
#define | YY_DECL_IS_OURS 1 |
#define | YY_DECL |
#define | YY_BREAK /*LINTED*/break; |
#define | YY_RULE_SETUP YY_USER_ACTION |
#define | YY_EXIT_FAILURE 2 |
#define | yyless(n) |
#define | YYTABLES_NAME "yytables" |
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 void * | yyscan_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 | |
static yyconst flex_int16_t | yy_accept [1100] |
static yyconst YY_CHAR | yy_ec [256] |
static yyconst YY_CHAR | yy_meta [56] |
static yyconst flex_uint16_t | yy_base [1119] |
static yyconst flex_int16_t | yy_def [1119] |
static yyconst flex_uint16_t | yy_nxt [4444] |
static yyconst flex_int16_t | yy_chk [4444] |
static yyconst flex_int32_t | yy_rule_can_match_eol [95] |
YY_DECL | |
char * | yy_cp |
char * | yy_bp |
int | yy_act |
struct yyguts_t * | yyg = (struct yyguts_t*)yyscanner |
yylval = yylval_param | |
yylloc = yylloc_param | |
#define array 4 |
Definition at line 1945 of file parse-events-flex.c.
Definition at line 143 of file parse-events-flex.c.
#define config 2 |
Definition at line 1943 of file parse-events-flex.c.
Definition at line 2107 of file parse-events-flex.c.
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 187 of file parse-events-flex.c.
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 188 of file parse-events-flex.c.
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 189 of file parse-events-flex.c.
#define event 3 |
Definition at line 1944 of file parse-events-flex.c.
#define FLEX_SCANNER |
Definition at line 9 of file parse-events-flex.c.
#define FLEXINT_H |
Definition at line 30 of file parse-events-flex.c.
#define INITIAL 0 |
Definition at line 1941 of file parse-events-flex.c.
#define INT16_MAX (32767) |
Definition at line 72 of file parse-events-flex.c.
#define INT16_MIN (-32767-1) |
Definition at line 63 of file parse-events-flex.c.
#define INT32_MAX (2147483647) |
Definition at line 75 of file parse-events-flex.c.
#define INT32_MIN (-2147483647-1) |
Definition at line 66 of file parse-events-flex.c.
#define INT8_MAX (127) |
Definition at line 69 of file parse-events-flex.c.
#define INT8_MIN (-128) |
Definition at line 60 of file parse-events-flex.c.
#define mem 1 |
Definition at line 1942 of file parse-events-flex.c.
#define REJECT reject_used_but_not_detected |
Definition at line 1809 of file parse-events-flex.c.
#define REWIND | ( | __alloc | ) |
Definition at line 1881 of file parse-events-flex.c.
#define UINT16_MAX (65535U) |
Definition at line 81 of file parse-events-flex.c.
#define UINT32_MAX (4294967295U) |
Definition at line 84 of file parse-events-flex.c.
#define UINT8_MAX (255U) |
Definition at line 78 of file parse-events-flex.c.
#define unput | ( | c | ) | yyunput( c, yyg->yytext_ptr , yyscanner ) |
Definition at line 227 of file parse-events-flex.c.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 353 of file parse-events-flex.c.
#define YY_BREAK /*LINTED*/break; |
Definition at line 2188 of file parse-events-flex.c.
#define YY_BUF_SIZE 16384 |
Definition at line 169 of file parse-events-flex.c.
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 289 of file parse-events-flex.c.
#define YY_BUFFER_NEW 0 |
Definition at line 277 of file parse-events-flex.c.
#define YY_BUFFER_NORMAL 1 |
Definition at line 278 of file parse-events-flex.c.
#define YY_CURRENT_BUFFER |
Definition at line 300 of file parse-events-flex.c.
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
Definition at line 307 of file parse-events-flex.c.
#define YY_DECL |
Definition at line 2175 of file parse-events-flex.c.
#define YY_DECL_IS_OURS 1 |
Definition at line 2170 of file parse-events-flex.c.
#define YY_DO_BEFORE_ACTION |
Definition at line 374 of file parse-events-flex.c.
#define YY_END_OF_BUFFER 95 |
Definition at line 382 of file parse-events-flex.c.
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 158 of file parse-events-flex.c.
#define YY_EXIT_FAILURE 2 |
#define YY_EXTRA_TYPE void * |
Definition at line 1956 of file parse-events-flex.c.
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg , yyscanner) |
Definition at line 2161 of file parse-events-flex.c.
#define yy_flex_debug yyg->yy_flex_debug_r |
Definition at line 137 of file parse-events-flex.c.
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 10 of file parse-events-flex.c.
#define YY_FLEX_MINOR_VERSION 6 |
Definition at line 11 of file parse-events-flex.c.
#define YY_FLEX_SUBMINOR_VERSION 0 |
Definition at line 12 of file parse-events-flex.c.
#define YY_FLUSH_BUFFER parse_events__flush_buffer(YY_CURRENT_BUFFER ,yyscanner) |
Definition at line 321 of file parse-events-flex.c.
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) |
Definition at line 2114 of file parse-events-flex.c.
#define YY_INT_ALIGNED short int |
Definition at line 5 of file parse-events-flex.c.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 198 of file parse-events-flex.c.
#define YY_LINENO_REWIND_TO | ( | dst | ) |
Definition at line 205 of file parse-events-flex.c.
#define YY_MORE_ADJ 0 |
Definition at line 1811 of file parse-events-flex.c.
#define yy_new_buffer parse_events__create_buffer |
Definition at line 331 of file parse-events-flex.c.
#define YY_NEW_FILE parse_events_restart(yyin ,yyscanner ) |
Definition at line 156 of file parse-events-flex.c.
#define YY_NULL 0 |
Definition at line 113 of file parse-events-flex.c.
#define YY_NUM_RULES 94 |
Definition at line 381 of file parse-events-flex.c.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 2098 of file parse-events-flex.c.
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 1812 of file parse-events-flex.c.
#define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 2191 of file parse-events-flex.c.
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Definition at line 120 of file parse-events-flex.c.
#define yy_set_bol | ( | at_bol | ) |
Definition at line 343 of file parse-events-flex.c.
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 333 of file parse-events-flex.c.
Definition at line 149 of file parse-events-flex.c.
#define YY_START_STACK_INCR 25 |
Definition at line 2156 of file parse-events-flex.c.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 175 of file parse-events-flex.c.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 153 of file parse-events-flex.c.
#define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 230 of file parse-events-flex.c.
#define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 178 of file parse-events-flex.c.
#define YY_TYPEDEF_YY_SCANNER_T |
Definition at line 124 of file parse-events-flex.c.
#define YY_TYPEDEF_YY_SIZE_T |
Definition at line 183 of file parse-events-flex.c.
#define YY_USER_ACTION |
Definition at line 1927 of file parse-events-flex.c.
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
Definition at line 136 of file parse-events-flex.c.
#define yyconst |
Definition at line 109 of file parse-events-flex.c.
#define yyextra yyg->yyextra_r |
Definition at line 132 of file parse-events-flex.c.
#define yyin yyg->yyin_r |
Definition at line 130 of file parse-events-flex.c.
#define yyleng yyg->yyleng_r |
Definition at line 133 of file parse-events-flex.c.
#define yyless | ( | n | ) |
Definition at line 214 of file parse-events-flex.c.
#define yyless | ( | n | ) |
Definition at line 214 of file parse-events-flex.c.
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
Definition at line 135 of file parse-events-flex.c.
#define yylloc yyg->yylloc_r |
Definition at line 2003 of file parse-events-flex.c.
#define yylval yyg->yylval_r |
Definition at line 2001 of file parse-events-flex.c.
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 1810 of file parse-events-flex.c.
#define yyout yyg->yyout_r |
Definition at line 131 of file parse-events-flex.c.
#define YYSTATE YY_START |
Definition at line 150 of file parse-events-flex.c.
#define YYTABLES_NAME "yytables" |
#define yyterminate | ( | ) | return YY_NULL |
Definition at line 2151 of file parse-events-flex.c.
#define yytext yyg->yytext_r |
Definition at line 134 of file parse-events-flex.c.
#define yytext_ptr yytext_r |
Definition at line 361 of file parse-events-flex.c.
typedef short int flex_int16_t |
Definition at line 52 of file parse-events-flex.c.
typedef int flex_int32_t |
Definition at line 53 of file parse-events-flex.c.
typedef signed char flex_int8_t |
Definition at line 51 of file parse-events-flex.c.
typedef unsigned short int flex_uint16_t |
Definition at line 55 of file parse-events-flex.c.
typedef unsigned int flex_uint32_t |
Definition at line 56 of file parse-events-flex.c.
typedef unsigned char flex_uint8_t |
Definition at line 54 of file parse-events-flex.c.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 179 of file parse-events-flex.c.
typedef unsigned char YY_CHAR |
Definition at line 357 of file parse-events-flex.c.
typedef size_t yy_size_t |
Definition at line 184 of file parse-events-flex.c.
typedef int yy_state_type |
Definition at line 359 of file parse-events-flex.c.
typedef void* yyscan_t |
Definition at line 125 of file parse-events-flex.c.
|
static |
Definition at line 1823 of file parse-events-flex.c.
|
static |
if | ( | !yyg-> | yy_init | ) |
Definition at line 2207 of file parse-events-flex.c.
|
static |
YY_BUFFER_STATE parse_events__create_buffer | ( | FILE * | file, |
int | size, | ||
yyscan_t | yyscanner | ||
) |
void parse_events__delete_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
void parse_events__flush_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
|
static |
|
static |
YY_BUFFER_STATE parse_events__scan_buffer | ( | char * | base, |
yy_size_t | size, | ||
yyscan_t | yyscanner | ||
) |
YY_BUFFER_STATE parse_events__scan_bytes | ( | yyconst char * | bytes, |
yy_size_t | len, | ||
yyscan_t | yyscanner | ||
) |
YY_BUFFER_STATE parse_events__scan_string | ( | yyconst char * | yy_str, |
yyscan_t | yyscanner | ||
) |
void parse_events__switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer, |
yyscan_t | yyscanner | ||
) |
|
static |
void parse_events_free | ( | void * | , |
yyscan_t | yyscanner | ||
) |
int parse_events_get_column | ( | yyscan_t | yyscanner | ) |
int parse_events_get_debug | ( | yyscan_t | yyscanner | ) |
YY_EXTRA_TYPE parse_events_get_extra | ( | yyscan_t | yyscanner | ) |
FILE* parse_events_get_in | ( | yyscan_t | yyscanner | ) |
int parse_events_get_lineno | ( | yyscan_t | yyscanner | ) |
FILE* parse_events_get_out | ( | yyscan_t | yyscanner | ) |
char * parse_events_get_text | ( | yyscan_t | yyscanner | ) |
int parse_events_lex_destroy | ( | yyscan_t | yyscanner | ) |
int parse_events_lex_init | ( | yyscan_t * | scanner | ) |
int parse_events_lex_init_extra | ( | YY_EXTRA_TYPE | user_defined, |
yyscan_t * | scanner | ||
) |
void parse_events_pop_buffer_state | ( | yyscan_t | yyscanner | ) |
void parse_events_push_buffer_state | ( | YY_BUFFER_STATE | new_buffer, |
yyscan_t | yyscanner | ||
) |
void parse_events_restart | ( | FILE * | input_file, |
yyscan_t | yyscanner | ||
) |
void parse_events_set_column | ( | int | _column_no, |
yyscan_t | yyscanner | ||
) |
void parse_events_set_debug | ( | int | debug_flag, |
yyscan_t | yyscanner | ||
) |
void parse_events_set_extra | ( | YY_EXTRA_TYPE | user_defined, |
yyscan_t | yyscanner | ||
) |
void parse_events_set_in | ( | FILE * | _in_str, |
yyscan_t | yyscanner | ||
) |
void parse_events_set_lineno | ( | int | _line_number, |
yyscan_t | yyscanner | ||
) |
void parse_events_set_out | ( | FILE * | _out_str, |
yyscan_t | yyscanner | ||
) |
int parse_events_wrap | ( | yyscan_t | yyscanner | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 390 of file parse-events-flex.c.
int yy_act |
Definition at line 2200 of file parse-events-flex.c.
|
static |
Definition at line 557 of file parse-events-flex.c.
char * yy_bp |
Definition at line 2199 of file parse-events-flex.c.
|
static |
Definition at line 1304 of file parse-events-flex.c.
char* yy_cp |
Definition at line 2199 of file parse-events-flex.c.
YY_DECL |
The main scanner function which does all the work.
Definition at line 2197 of file parse-events-flex.c.
|
static |
Definition at line 684 of file parse-events-flex.c.
Definition at line 515 of file parse-events-flex.c.
Definition at line 547 of file parse-events-flex.c.
|
static |
Definition at line 811 of file parse-events-flex.c.
|
static |
Definition at line 1798 of file parse-events-flex.c.
Definition at line 2201 of file parse-events-flex.c.
yylloc = yylloc_param |
Definition at line 2205 of file parse-events-flex.c.
yylval = yylval_param |
Definition at line 2203 of file parse-events-flex.c.