Linux Perf
parse-events-flex.c File Reference
#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>
Include dependency graph for parse-events-flex.c:

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_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

void parse_events_restart (FILE *input_file, yyscan_t yyscanner)
 
void parse_events__switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
 
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)
 
void parse_events_push_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
 
void parse_events_pop_buffer_state (yyscan_t yyscanner)
 
static void parse_events_ensure_buffer_stack (yyscan_t yyscanner)
 
static void parse_events__load_buffer_state (yyscan_t yyscanner)
 
static void parse_events__init_buffer (YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner)
 
YY_BUFFER_STATE parse_events__scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner)
 
YY_BUFFER_STATE parse_events__scan_string (yyconst char *yy_str, yyscan_t yyscanner)
 
YY_BUFFER_STATE parse_events__scan_bytes (yyconst char *bytes, yy_size_t len, yyscan_t yyscanner)
 
void * parse_events_alloc (yy_size_t, yyscan_t yyscanner)
 
void * parse_events_realloc (void *, yy_size_t, yyscan_t yyscanner)
 
void parse_events_free (void *, yyscan_t yyscanner)
 
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state, yyscan_t yyscanner)
 
static int yy_get_next_buffer (yyscan_t yyscanner)
 
static void yy_fatal_error (yyconst char msg[], yyscan_t yyscanner)
 
char * parse_events_get_text (yyscan_t yyscanner)
 
YYSTYPEparse_events_get_lval (yyscan_t yyscanner)
 
static int __value (YYSTYPE *yylval, char *str, int base, int token)
 
static int value (yyscan_t scanner, int base)
 
static int raw (yyscan_t scanner)
 
static int str (yyscan_t scanner, int token)
 
static int drv_str (yyscan_t scanner, int token)
 
static int pmu_str_check (yyscan_t scanner)
 
static int sym (yyscan_t scanner, int type, int config)
 
static int term (yyscan_t scanner, int type)
 
static int yy_init_globals (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)
 
int parse_events_lex_destroy (yyscan_t yyscanner)
 
int parse_events_get_debug (yyscan_t yyscanner)
 
void parse_events_set_debug (int debug_flag, yyscan_t yyscanner)
 
YY_EXTRA_TYPE parse_events_get_extra (yyscan_t yyscanner)
 
void parse_events_set_extra (YY_EXTRA_TYPE user_defined, yyscan_t yyscanner)
 
FILE * parse_events_get_in (yyscan_t yyscanner)
 
void parse_events_set_in (FILE *_in_str, yyscan_t yyscanner)
 
FILE * parse_events_get_out (yyscan_t yyscanner)
 
void parse_events_set_out (FILE *_out_str, yyscan_t yyscanner)
 
yy_size_t parse_events_get_leng (yyscan_t yyscanner)
 
int parse_events_get_lineno (yyscan_t yyscanner)
 
void parse_events_set_lineno (int _line_number, yyscan_t yyscanner)
 
int parse_events_get_column (yyscan_t yyscanner)
 
void parse_events_set_column (int _column_no, yyscan_t yyscanner)
 
void parse_events_set_lval (YYSTYPE *yylval_param, yyscan_t yyscanner)
 
YYLTYPEparse_events_get_lloc (yyscan_t yyscanner)
 
void parse_events_set_lloc (YYLTYPE *yylloc_param, yyscan_t yyscanner)
 
int parse_events_wrap (yyscan_t yyscanner)
 
static void yyunput (int c, char *buf_ptr, yyscan_t yyscanner)
 
static int input (yyscan_t yyscanner)
 
static void yy_push_state (int _new_state, yyscan_t yyscanner)
 
static void yy_pop_state (yyscan_t yyscanner)
 
static int yy_top_state (yyscan_t yyscanner)
 
int parse_events_lex (YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner)
 
 if (!yyg->yy_init)
 

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_tyyg = (struct yyguts_t*)yyscanner
 
 yylval = yylval_param
 
 yylloc = yylloc_param
 

Macro Definition Documentation

◆ array

#define array   4

Definition at line 1945 of file parse-events-flex.c.

◆ BEGIN

#define BEGIN   yyg->yy_start = 1 + 2 *

Definition at line 143 of file parse-events-flex.c.

◆ config

#define config   2

Definition at line 1943 of file parse-events-flex.c.

◆ ECHO

#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)

Definition at line 2107 of file parse-events-flex.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 187 of file parse-events-flex.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 188 of file parse-events-flex.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 189 of file parse-events-flex.c.

◆ event

#define event   3

Definition at line 1944 of file parse-events-flex.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 9 of file parse-events-flex.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 30 of file parse-events-flex.c.

◆ INITIAL

#define INITIAL   0

Definition at line 1941 of file parse-events-flex.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 72 of file parse-events-flex.c.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 63 of file parse-events-flex.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 75 of file parse-events-flex.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 66 of file parse-events-flex.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 69 of file parse-events-flex.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 60 of file parse-events-flex.c.

◆ mem

#define mem   1

Definition at line 1942 of file parse-events-flex.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 1809 of file parse-events-flex.c.

◆ REWIND

#define REWIND (   __alloc)
Value:
do { \
YYSTYPE *__yylval = parse_events_get_lval(yyscanner); \
char *text = parse_events_get_text(yyscanner); \
if (__alloc) \
__yylval->str = strdup(text); \
\
yycolumn -= strlen(text); \
yyless(0); \
} while (0)
YYSTYPE * parse_events_get_lval(yyscan_t yyscanner)
if(!yyg->yy_init)
char * parse_events_get_text(yyscan_t yyscanner)

Definition at line 1881 of file parse-events-flex.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 81 of file parse-events-flex.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 84 of file parse-events-flex.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 78 of file parse-events-flex.c.

◆ unput

#define unput (   c)    yyunput( c, yyg->yytext_ptr , yyscanner )

Definition at line 227 of file parse-events-flex.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 353 of file parse-events-flex.c.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 2188 of file parse-events-flex.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 169 of file parse-events-flex.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 289 of file parse-events-flex.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 277 of file parse-events-flex.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 278 of file parse-events-flex.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
size_t yy_buffer_stack_top
YY_BUFFER_STATE * yy_buffer_stack
struct yyguts_t * yyg

Definition at line 300 of file parse-events-flex.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]

Definition at line 307 of file parse-events-flex.c.

◆ YY_DECL

#define YY_DECL
Value:
(YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
void * yyscan_t
int parse_events_lex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner)

Definition at line 2175 of file parse-events-flex.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 2170 of file parse-events-flex.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
yyg->yytext_ptr = yy_bp; \
yyleng = (size_t) (yy_cp - yy_bp); \
yyg->yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yyg->yy_c_buf_p = yy_cp;
char * yy_bp
char * yy_cp
struct yyguts_t * yyg

Definition at line 374 of file parse-events-flex.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   95

Definition at line 382 of file parse-events-flex.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 158 of file parse-events-flex.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 1956 of file parse-events-flex.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg , yyscanner)

Definition at line 2161 of file parse-events-flex.c.

◆ yy_flex_debug

#define yy_flex_debug   yyg->yy_flex_debug_r

Definition at line 137 of file parse-events-flex.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 10 of file parse-events-flex.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 11 of file parse-events-flex.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   0

Definition at line 12 of file parse-events-flex.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   parse_events__flush_buffer(YY_CURRENT_BUFFER ,yyscanner)

Definition at line 321 of file parse-events-flex.c.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
size_t n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\
#define yyin
#define YY_CURRENT_BUFFER_LVALUE

Definition at line 2114 of file parse-events-flex.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 5 of file parse-events-flex.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)
Value:
do { \
yy_size_t yyl;\
for ( yyl = n; yyl < yyleng; ++yyl )\
if ( yytext[yyl] == '\n' )\
}while(0)
#define yyleng
#define yytext
#define yylineno

Definition at line 198 of file parse-events-flex.c.

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   dst)
Value:
do {\
const char *p;\
for ( p = yy_cp-1; p >= (dst); --p)\
if ( *p == '\n' )\
}while(0)
char * yy_cp
#define yylineno

Definition at line 205 of file parse-events-flex.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 1811 of file parse-events-flex.c.

◆ yy_new_buffer

#define yy_new_buffer   parse_events__create_buffer

Definition at line 331 of file parse-events-flex.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   parse_events_restart(yyin ,yyscanner )

Definition at line 156 of file parse-events-flex.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 113 of file parse-events-flex.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   94

Definition at line 381 of file parse-events-flex.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 2098 of file parse-events-flex.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 1812 of file parse-events-flex.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 2191 of file parse-events-flex.c.

◆ YY_SC_TO_UI

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 120 of file parse-events-flex.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){\
parse_events_ensure_buffer_stack (yyscanner); \
YY_CURRENT_BUFFER_LVALUE = \
parse_events__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_BUF_SIZE
#define yyin
#define YY_CURRENT_BUFFER

Definition at line 343 of file parse-events-flex.c.

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){ \
parse_events_ensure_buffer_stack (yyscanner); \
YY_CURRENT_BUFFER_LVALUE = \
parse_events__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define YY_BUF_SIZE
#define yyin
#define YY_CURRENT_BUFFER

Definition at line 333 of file parse-events-flex.c.

◆ YY_START

#define YY_START   ((yyg->yy_start - 1) / 2)

Definition at line 149 of file parse-events-flex.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 2156 of file parse-events-flex.c.

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 175 of file parse-events-flex.c.

◆ YY_STATE_EOF

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 153 of file parse-events-flex.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 230 of file parse-events-flex.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 178 of file parse-events-flex.c.

◆ YY_TYPEDEF_YY_SCANNER_T

#define YY_TYPEDEF_YY_SCANNER_T

Definition at line 124 of file parse-events-flex.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 183 of file parse-events-flex.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION
Value:
do { \
yylloc->last_column = yylloc->first_column; \
yylloc->first_column = yycolumn; \
yycolumn += yyleng; \
} while (0);
#define yyleng
#define yylloc
#define yycolumn

Definition at line 1927 of file parse-events-flex.c.

◆ yycolumn

#define yycolumn   (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)

Definition at line 136 of file parse-events-flex.c.

◆ yyconst

#define yyconst

Definition at line 109 of file parse-events-flex.c.

◆ yyextra

#define yyextra   yyg->yyextra_r

Definition at line 132 of file parse-events-flex.c.

◆ yyin

#define yyin   yyg->yyin_r

Definition at line 130 of file parse-events-flex.c.

◆ yyleng

#define yyleng   yyg->yyleng_r

Definition at line 133 of file parse-events-flex.c.

◆ yyless [1/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
yy_size_t yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
YY_RESTORE_YY_MORE_OFFSET \
yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
char * yy_bp
#define YY_MORE_ADJ
char * yy_cp
struct yyguts_t * yyg

Definition at line 214 of file parse-events-flex.c.

◆ yyless [2/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
yy_size_t yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = yyg->yy_hold_char; \
yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
yyg->yy_hold_char = *yyg->yy_c_buf_p; \
*yyg->yy_c_buf_p = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )
#define yyleng
#define yytext
struct yyguts_t * yyg

Definition at line 214 of file parse-events-flex.c.

◆ yylineno

#define yylineno   (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)

Definition at line 135 of file parse-events-flex.c.

◆ yylloc

#define yylloc   yyg->yylloc_r

Definition at line 2003 of file parse-events-flex.c.

◆ yylval

#define yylval   yyg->yylval_r

Definition at line 2001 of file parse-events-flex.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 1810 of file parse-events-flex.c.

◆ yyout

#define yyout   yyg->yyout_r

Definition at line 131 of file parse-events-flex.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 150 of file parse-events-flex.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 2151 of file parse-events-flex.c.

◆ yytext

#define yytext   yyg->yytext_r

Definition at line 134 of file parse-events-flex.c.

◆ yytext_ptr

#define yytext_ptr   yytext_r

Definition at line 361 of file parse-events-flex.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 52 of file parse-events-flex.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 53 of file parse-events-flex.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 51 of file parse-events-flex.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 55 of file parse-events-flex.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 56 of file parse-events-flex.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 54 of file parse-events-flex.c.

◆ YY_BUFFER_STATE

Definition at line 179 of file parse-events-flex.c.

◆ YY_CHAR

typedef unsigned char YY_CHAR

Definition at line 357 of file parse-events-flex.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 184 of file parse-events-flex.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 359 of file parse-events-flex.c.

◆ yyscan_t

typedef void* yyscan_t

Definition at line 125 of file parse-events-flex.c.

Function Documentation

◆ __value()

static int __value ( YYSTYPE yylval,
char *  str,
int  base,
int  token 
)
static

Definition at line 1823 of file parse-events-flex.c.

◆ drv_str()

static int drv_str ( yyscan_t  scanner,
int  token 
)
static

Definition at line 1871 of file parse-events-flex.c.

Here is the call graph for this function:

◆ if()

if ( !yyg->  yy_init)

Definition at line 2207 of file parse-events-flex.c.

◆ input()

static int input ( yyscan_t  yyscanner)
static

◆ parse_events__create_buffer()

YY_BUFFER_STATE parse_events__create_buffer ( FILE *  file,
int  size,
yyscan_t  yyscanner 
)

◆ parse_events__delete_buffer()

void parse_events__delete_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

◆ parse_events__flush_buffer()

void parse_events__flush_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

◆ parse_events__init_buffer()

static void parse_events__init_buffer ( YY_BUFFER_STATE  b,
FILE *  file,
yyscan_t  yyscanner 
)
static

◆ parse_events__load_buffer_state()

static void parse_events__load_buffer_state ( yyscan_t  yyscanner)
static

◆ parse_events__scan_buffer()

YY_BUFFER_STATE parse_events__scan_buffer ( char *  base,
yy_size_t  size,
yyscan_t  yyscanner 
)

◆ parse_events__scan_bytes()

YY_BUFFER_STATE parse_events__scan_bytes ( yyconst char *  bytes,
yy_size_t  len,
yyscan_t  yyscanner 
)

◆ parse_events__scan_string()

YY_BUFFER_STATE parse_events__scan_string ( yyconst char *  yy_str,
yyscan_t  yyscanner 
)

◆ parse_events__switch_to_buffer()

void parse_events__switch_to_buffer ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

◆ parse_events_alloc()

void* parse_events_alloc ( yy_size_t  ,
yyscan_t  yyscanner 
)

◆ parse_events_ensure_buffer_stack()

static void parse_events_ensure_buffer_stack ( yyscan_t  yyscanner)
static

◆ parse_events_free()

void parse_events_free ( void *  ,
yyscan_t  yyscanner 
)

◆ parse_events_get_column()

int parse_events_get_column ( yyscan_t  yyscanner)

◆ parse_events_get_debug()

int parse_events_get_debug ( yyscan_t  yyscanner)

◆ parse_events_get_extra()

YY_EXTRA_TYPE parse_events_get_extra ( yyscan_t  yyscanner)

◆ parse_events_get_in()

FILE* parse_events_get_in ( yyscan_t  yyscanner)

◆ parse_events_get_leng()

yy_size_t parse_events_get_leng ( yyscan_t  yyscanner)

◆ parse_events_get_lineno()

int parse_events_get_lineno ( yyscan_t  yyscanner)

◆ parse_events_get_lloc()

YYLTYPE* parse_events_get_lloc ( yyscan_t  yyscanner)

◆ parse_events_get_lval()

YYSTYPE * parse_events_get_lval ( yyscan_t  yyscanner)

◆ parse_events_get_out()

FILE* parse_events_get_out ( yyscan_t  yyscanner)

◆ parse_events_get_text()

char * parse_events_get_text ( yyscan_t  yyscanner)

◆ parse_events_lex()

int parse_events_lex ( YYSTYPE yylval_param,
YYLTYPE yylloc_param,
yyscan_t  yyscanner 
)

◆ parse_events_lex_destroy()

int parse_events_lex_destroy ( yyscan_t  yyscanner)

◆ parse_events_lex_init()

int parse_events_lex_init ( yyscan_t scanner)

◆ parse_events_lex_init_extra()

int parse_events_lex_init_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t scanner 
)

◆ parse_events_pop_buffer_state()

void parse_events_pop_buffer_state ( yyscan_t  yyscanner)

◆ parse_events_push_buffer_state()

void parse_events_push_buffer_state ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

◆ parse_events_realloc()

void* parse_events_realloc ( void *  ,
yy_size_t  ,
yyscan_t  yyscanner 
)

◆ parse_events_restart()

void parse_events_restart ( FILE *  input_file,
yyscan_t  yyscanner 
)

◆ parse_events_set_column()

void parse_events_set_column ( int  _column_no,
yyscan_t  yyscanner 
)

◆ parse_events_set_debug()

void parse_events_set_debug ( int  debug_flag,
yyscan_t  yyscanner 
)

◆ parse_events_set_extra()

void parse_events_set_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t  yyscanner 
)

◆ parse_events_set_in()

void parse_events_set_in ( FILE *  _in_str,
yyscan_t  yyscanner 
)

◆ parse_events_set_lineno()

void parse_events_set_lineno ( int  _line_number,
yyscan_t  yyscanner 
)

◆ parse_events_set_lloc()

void parse_events_set_lloc ( YYLTYPE yylloc_param,
yyscan_t  yyscanner 
)

◆ parse_events_set_lval()

void parse_events_set_lval ( YYSTYPE yylval_param,
yyscan_t  yyscanner 
)

◆ parse_events_set_out()

void parse_events_set_out ( FILE *  _out_str,
yyscan_t  yyscanner 
)

◆ parse_events_wrap()

int parse_events_wrap ( yyscan_t  yyscanner)

◆ pmu_str_check()

static int pmu_str_check ( yyscan_t  scanner)
static

Definition at line 1893 of file parse-events-flex.c.

Here is the call graph for this function:

◆ raw()

static int raw ( yyscan_t  scanner)
static

Definition at line 1844 of file parse-events-flex.c.

Here is the call graph for this function:

◆ str()

static int str ( yyscan_t  scanner,
int  token 
)
static

Definition at line 1852 of file parse-events-flex.c.

Here is the call graph for this function:

◆ sym()

static int sym ( yyscan_t  scanner,
int  type,
int  config 
)
static

Definition at line 1911 of file parse-events-flex.c.

Here is the call graph for this function:

◆ term()

static int term ( yyscan_t  scanner,
int  type 
)
static

Definition at line 1919 of file parse-events-flex.c.

Here is the call graph for this function:

◆ value()

static int value ( yyscan_t  scanner,
int  base 
)
static

Definition at line 1836 of file parse-events-flex.c.

Here is the call graph for this function:

◆ yy_fatal_error()

static void yy_fatal_error ( yyconst char  msg[],
yyscan_t  yyscanner 
)
static

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( yyscan_t  yyscanner)
static

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( yyscan_t  yyscanner)
static

◆ yy_init_globals()

static int yy_init_globals ( yyscan_t  yyscanner)
static

◆ yy_pop_state()

static void yy_pop_state ( yyscan_t  yyscanner)
static

◆ yy_push_state()

static void yy_push_state ( int  _new_state,
yyscan_t  yyscanner 
)
static

◆ yy_top_state()

static int yy_top_state ( yyscan_t  yyscanner)
static

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state,
yyscan_t  yyscanner 
)
static

◆ yyunput()

static void yyunput ( int  c,
char *  buf_ptr,
yyscan_t  yyscanner 
)
static

Variable Documentation

◆ yy_accept

yyconst flex_int16_t yy_accept[1100]
static

Definition at line 390 of file parse-events-flex.c.

◆ yy_act

int yy_act

Definition at line 2200 of file parse-events-flex.c.

◆ yy_base

yyconst flex_uint16_t yy_base[1119]
static

Definition at line 557 of file parse-events-flex.c.

◆ yy_bp

char * yy_bp

Definition at line 2199 of file parse-events-flex.c.

◆ yy_chk

yyconst flex_int16_t yy_chk[4444]
static

Definition at line 1304 of file parse-events-flex.c.

◆ yy_cp

char* yy_cp

Definition at line 2199 of file parse-events-flex.c.

◆ YY_DECL

YY_DECL
Initial value:
{
yy_state_type yy_current_state
int yy_state_type

The main scanner function which does all the work.

Definition at line 2197 of file parse-events-flex.c.

◆ yy_def

yyconst flex_int16_t yy_def[1119]
static

Definition at line 684 of file parse-events-flex.c.

◆ yy_ec

yyconst YY_CHAR yy_ec[256]
static

Definition at line 515 of file parse-events-flex.c.

◆ yy_meta

yyconst YY_CHAR yy_meta[56]
static
Initial value:
=
{ 0,
1, 1, 1, 2, 1, 1, 3, 4, 4, 4,
4, 1, 1, 1, 4, 4, 4, 4, 1, 1,
1, 1, 1, 1, 1, 1, 1, 4, 4, 4,
4, 4, 4, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 5, 2
}

Definition at line 547 of file parse-events-flex.c.

◆ yy_nxt

yyconst flex_uint16_t yy_nxt[4444]
static

Definition at line 811 of file parse-events-flex.c.

◆ yy_rule_can_match_eol

yyconst flex_int32_t yy_rule_can_match_eol[95]
static
Initial value:
=
{ 0,
1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, }

Definition at line 1798 of file parse-events-flex.c.

◆ yyg

struct yyguts_t* yyg = (struct yyguts_t*)yyscanner

Definition at line 2201 of file parse-events-flex.c.

◆ yylloc

yylloc = yylloc_param

Definition at line 2205 of file parse-events-flex.c.

◆ yylval

yylval = yylval_param

Definition at line 2203 of file parse-events-flex.c.