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

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   perf_pmu__create_buffer
 
#define yy_delete_buffer   perf_pmu__delete_buffer
 
#define yy_flex_debug   perf_pmu__flex_debug
 
#define yy_init_buffer   perf_pmu__init_buffer
 
#define yy_flush_buffer   perf_pmu__flush_buffer
 
#define yy_load_buffer_state   perf_pmu__load_buffer_state
 
#define yy_switch_to_buffer   perf_pmu__switch_to_buffer
 
#define yyin   perf_pmu_in
 
#define yyleng   perf_pmu_leng
 
#define yylex   perf_pmu_lex
 
#define yylineno   perf_pmu_lineno
 
#define yyout   perf_pmu_out
 
#define yyrestart   perf_pmu_restart
 
#define yytext   perf_pmu_text
 
#define yywrap   perf_pmu_wrap
 
#define yyalloc   perf_pmu_alloc
 
#define yyrealloc   perf_pmu_realloc
 
#define yyfree   perf_pmu_free
 
#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 BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   perf_pmu_restart(perf_pmu_in )
 
#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(ptr)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#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   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   perf_pmu__flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_new_buffer   perf_pmu__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   perf_pmu_text
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   10
 
#define YY_END_OF_BUFFER   11
 
#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 INITIAL   0
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( perf_pmu_text, perf_pmu_leng, 1, perf_pmu_out )) {} } 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 )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int perf_pmu_lex (void)
 
#define YY_USER_ACTION
 
#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 struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

void perf_pmu_restart (FILE *input_file)
 
void perf_pmu__switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
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)
 
void perf_pmu_push_buffer_state (YY_BUFFER_STATE new_buffer)
 
void perf_pmu_pop_buffer_state (void)
 
static void perf_pmu_ensure_buffer_stack (void)
 
static void perf_pmu__load_buffer_state (void)
 
static void perf_pmu__init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE perf_pmu__scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE perf_pmu__scan_string (yyconst char *yy_str)
 
YY_BUFFER_STATE perf_pmu__scan_bytes (yyconst char *bytes, yy_size_t len)
 
void * perf_pmu_alloc (yy_size_t)
 
void * perf_pmu_realloc (void *, yy_size_t)
 
void perf_pmu_free (void *)
 
static yy_state_type yy_get_previous_state (void)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
static int yy_get_next_buffer (void)
 
static void yy_fatal_error (yyconst char msg[])
 
static int value (int base)
 
static int yy_init_globals (void)
 
int perf_pmu_lex_destroy (void)
 
int perf_pmu_get_debug (void)
 
void perf_pmu_set_debug (int debug_flag)
 
YY_EXTRA_TYPE perf_pmu_get_extra (void)
 
void perf_pmu_set_extra (YY_EXTRA_TYPE user_defined)
 
FILE * perf_pmu_get_in (void)
 
void perf_pmu_set_in (FILE *_in_str)
 
FILE * perf_pmu_get_out (void)
 
void perf_pmu_set_out (FILE *_out_str)
 
yy_size_t perf_pmu_get_leng (void)
 
char * perf_pmu_get_text (void)
 
int perf_pmu_get_lineno (void)
 
void perf_pmu_set_lineno (int _line_number)
 
int perf_pmu_wrap (void)
 
static void yyunput (int c, char *buf_ptr)
 
static int input (void)
 
int perf_pmu_lex (void)
 
 if (!(yy_init))
 

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_STATEyy_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
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 145 of file pmu-flex.c.

◆ ECHO

#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.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 193 of file pmu-flex.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 194 of file pmu-flex.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 195 of file pmu-flex.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 28 of file pmu-flex.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 49 of file pmu-flex.c.

◆ INITIAL

#define INITIAL   0

Definition at line 515 of file pmu-flex.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 91 of file pmu-flex.c.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 82 of file pmu-flex.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 94 of file pmu-flex.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 85 of file pmu-flex.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 88 of file pmu-flex.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 79 of file pmu-flex.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 488 of file pmu-flex.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 100 of file pmu-flex.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 103 of file pmu-flex.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 97 of file pmu-flex.c.

◆ unput

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 214 of file pmu-flex.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 360 of file pmu-flex.c.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 690 of file pmu-flex.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 171 of file pmu-flex.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 276 of file pmu-flex.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 264 of file pmu-flex.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 265 of file pmu-flex.c.

◆ yy_create_buffer

#define yy_create_buffer   perf_pmu__create_buffer

Definition at line 9 of file pmu-flex.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
static YY_BUFFER_STATE * yy_buffer_stack
Definition: pmu-flex.c:284
static size_t yy_buffer_stack_top
Definition: pmu-flex.c:282

Definition at line 292 of file pmu-flex.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 299 of file pmu-flex.c.

◆ YY_DECL

#define YY_DECL   int perf_pmu_lex (void)

Definition at line 678 of file pmu-flex.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 674 of file pmu-flex.c.

◆ yy_delete_buffer

#define yy_delete_buffer   perf_pmu__delete_buffer

Definition at line 10 of file pmu-flex.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
perf_pmu_leng = (size_t) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
static char yy_hold_char
Definition: pmu-flex.c:302
char * yy_cp
Definition: pmu-flex.c:701
#define yytext_ptr
Definition: pmu-flex.c:378
char * yy_bp
Definition: pmu-flex.c:701
static char * yy_c_buf_p
Definition: pmu-flex.c:307

Definition at line 391 of file pmu-flex.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   11

Definition at line 399 of file pmu-flex.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 160 of file pmu-flex.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 526 of file pmu-flex.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 665 of file pmu-flex.c.

◆ yy_flex_debug

#define yy_flex_debug   perf_pmu__flex_debug

Definition at line 11 of file pmu-flex.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 29 of file pmu-flex.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 30 of file pmu-flex.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   0

Definition at line 31 of file pmu-flex.c.

◆ yy_flush_buffer

#define yy_flush_buffer   perf_pmu__flush_buffer

Definition at line 13 of file pmu-flex.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   perf_pmu__flush_buffer(YY_CURRENT_BUFFER )

Definition at line 328 of file pmu-flex.c.

◆ yy_init_buffer

#define yy_init_buffer   perf_pmu__init_buffer

Definition at line 12 of file pmu-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( perf_pmu_in )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( perf_pmu_in ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = fread(buf, 1, max_size, perf_pmu_in))==0 && ferror(perf_pmu_in)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(perf_pmu_in); \
} \
}\
\
#define YY_CURRENT_BUFFER_LVALUE
Definition: pmu-flex.c:299
FILE * perf_pmu_in
Definition: pmu-flex.c:366

Definition at line 618 of file pmu-flex.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 5 of file pmu-flex.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 197 of file pmu-flex.c.

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 198 of file pmu-flex.c.

◆ yy_load_buffer_state

#define yy_load_buffer_state   perf_pmu__load_buffer_state

Definition at line 14 of file pmu-flex.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 490 of file pmu-flex.c.

◆ yy_new_buffer

#define yy_new_buffer   perf_pmu__create_buffer

Definition at line 338 of file pmu-flex.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   perf_pmu_restart(perf_pmu_in )

Definition at line 158 of file pmu-flex.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 132 of file pmu-flex.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   10

Definition at line 398 of file pmu-flex.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 602 of file pmu-flex.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 491 of file pmu-flex.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 693 of file pmu-flex.c.

◆ YY_SC_TO_UI

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

Definition at line 139 of file pmu-flex.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){\
perf_pmu_ensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
perf_pmu__create_buffer(perf_pmu_in,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER
Definition: pmu-flex.c:292
#define YY_BUF_SIZE
Definition: pmu-flex.c:171
FILE * perf_pmu_in
Definition: pmu-flex.c:366

Definition at line 350 of file pmu-flex.c.

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){ \
perf_pmu_ensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
perf_pmu__create_buffer(perf_pmu_in,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define YY_CURRENT_BUFFER
Definition: pmu-flex.c:292
#define YY_BUF_SIZE
Definition: pmu-flex.c:171
FILE * perf_pmu_in
Definition: pmu-flex.c:366

Definition at line 340 of file pmu-flex.c.

◆ YY_START

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

Definition at line 151 of file pmu-flex.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 660 of file pmu-flex.c.

◆ YY_STATE_BUF_SIZE

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

Definition at line 177 of file pmu-flex.c.

◆ YY_STATE_EOF

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

Definition at line 155 of file pmu-flex.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 217 of file pmu-flex.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   perf_pmu__switch_to_buffer

Definition at line 15 of file pmu-flex.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 180 of file pmu-flex.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 185 of file pmu-flex.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 685 of file pmu-flex.c.

◆ yyalloc

#define yyalloc   perf_pmu_alloc

Definition at line 24 of file pmu-flex.c.

◆ yyconst

#define yyconst

Definition at line 128 of file pmu-flex.c.

◆ yyfree

#define yyfree   perf_pmu_free

Definition at line 26 of file pmu-flex.c.

◆ yyin

#define yyin   perf_pmu_in

Definition at line 16 of file pmu-flex.c.

◆ yyleng

#define yyleng   perf_pmu_leng

Definition at line 17 of file pmu-flex.c.

◆ yyless [1/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up perf_pmu_text. */ \
yy_size_t yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
YY_RESTORE_YY_MORE_OFFSET \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up perf_pmu_text again */ \
} \
while ( 0 )
#define YY_MORE_ADJ
Definition: pmu-flex.c:490
static char yy_hold_char
Definition: pmu-flex.c:302
char * yy_cp
Definition: pmu-flex.c:701
char * yy_bp
Definition: pmu-flex.c:701
static char * yy_c_buf_p
Definition: pmu-flex.c:307

Definition at line 201 of file pmu-flex.c.

◆ yyless [2/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up perf_pmu_text. */ \
yy_size_t yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
perf_pmu_text[perf_pmu_leng] = (yy_hold_char); \
(yy_c_buf_p) = perf_pmu_text + yyless_macro_arg; \
*(yy_c_buf_p) = '\0'; \
perf_pmu_leng = yyless_macro_arg; \
} \
while ( 0 )
static char yy_hold_char
Definition: pmu-flex.c:302
char * perf_pmu_text
Definition: pmu-flex.c:492
yy_size_t perf_pmu_leng
Definition: pmu-flex.c:304
static char * yy_c_buf_p
Definition: pmu-flex.c:307

Definition at line 201 of file pmu-flex.c.

◆ yylex

#define yylex   perf_pmu_lex

Definition at line 18 of file pmu-flex.c.

◆ yylineno

#define yylineno   perf_pmu_lineno

Definition at line 19 of file pmu-flex.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 489 of file pmu-flex.c.

◆ yyout

#define yyout   perf_pmu_out

Definition at line 20 of file pmu-flex.c.

◆ yyrealloc

#define yyrealloc   perf_pmu_realloc

Definition at line 25 of file pmu-flex.c.

◆ yyrestart

#define yyrestart   perf_pmu_restart

Definition at line 21 of file pmu-flex.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 152 of file pmu-flex.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 655 of file pmu-flex.c.

◆ yytext

#define yytext   perf_pmu_text

Definition at line 22 of file pmu-flex.c.

◆ yytext_ptr

#define yytext_ptr   perf_pmu_text

Definition at line 378 of file pmu-flex.c.

◆ yywrap

#define yywrap   perf_pmu_wrap

Definition at line 23 of file pmu-flex.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 71 of file pmu-flex.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 72 of file pmu-flex.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 70 of file pmu-flex.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 74 of file pmu-flex.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 75 of file pmu-flex.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 73 of file pmu-flex.c.

◆ YY_BUFFER_STATE

Definition at line 181 of file pmu-flex.c.

◆ YY_CHAR

typedef unsigned char YY_CHAR

Definition at line 364 of file pmu-flex.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 186 of file pmu-flex.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 368 of file pmu-flex.c.

Function Documentation

◆ if()

if ( yy_init)

Definition at line 704 of file pmu-flex.c.

Here is the call graph for this function:

◆ input()

static int input ( void  )
static

◆ perf_pmu__create_buffer()

YY_BUFFER_STATE perf_pmu__create_buffer ( FILE *  file,
int  size 
)

◆ perf_pmu__delete_buffer()

void perf_pmu__delete_buffer ( YY_BUFFER_STATE  b)

◆ perf_pmu__flush_buffer()

void perf_pmu__flush_buffer ( YY_BUFFER_STATE  b)

◆ perf_pmu__init_buffer()

static void perf_pmu__init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)
static

◆ perf_pmu__load_buffer_state()

static void perf_pmu__load_buffer_state ( void  )
static

◆ perf_pmu__scan_buffer()

YY_BUFFER_STATE perf_pmu__scan_buffer ( char *  base,
yy_size_t  size 
)

◆ perf_pmu__scan_bytes()

YY_BUFFER_STATE perf_pmu__scan_bytes ( yyconst char *  bytes,
yy_size_t  len 
)

◆ perf_pmu__scan_string()

YY_BUFFER_STATE perf_pmu__scan_string ( yyconst char *  yy_str)

◆ perf_pmu__switch_to_buffer()

void perf_pmu__switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

◆ perf_pmu_alloc()

void* perf_pmu_alloc ( yy_size_t  )

◆ perf_pmu_ensure_buffer_stack()

static void perf_pmu_ensure_buffer_stack ( void  )
static

◆ perf_pmu_free()

void perf_pmu_free ( void *  )

◆ perf_pmu_get_debug()

int perf_pmu_get_debug ( void  )

◆ perf_pmu_get_extra()

YY_EXTRA_TYPE perf_pmu_get_extra ( void  )

◆ perf_pmu_get_in()

FILE* perf_pmu_get_in ( void  )

◆ perf_pmu_get_leng()

yy_size_t perf_pmu_get_leng ( void  )

◆ perf_pmu_get_lineno()

int perf_pmu_get_lineno ( void  )

◆ perf_pmu_get_out()

FILE* perf_pmu_get_out ( void  )

◆ perf_pmu_get_text()

char* perf_pmu_get_text ( void  )

◆ perf_pmu_lex()

int perf_pmu_lex ( void  )

◆ perf_pmu_lex_destroy()

int perf_pmu_lex_destroy ( void  )

◆ perf_pmu_pop_buffer_state()

void perf_pmu_pop_buffer_state ( void  )

◆ perf_pmu_push_buffer_state()

void perf_pmu_push_buffer_state ( YY_BUFFER_STATE  new_buffer)

◆ perf_pmu_realloc()

void* perf_pmu_realloc ( void *  ,
yy_size_t   
)

◆ perf_pmu_restart()

void perf_pmu_restart ( FILE *  input_file)

◆ perf_pmu_set_debug()

void perf_pmu_set_debug ( int  debug_flag)

◆ perf_pmu_set_extra()

void perf_pmu_set_extra ( YY_EXTRA_TYPE  user_defined)

◆ perf_pmu_set_in()

void perf_pmu_set_in ( FILE *  _in_str)

◆ perf_pmu_set_lineno()

void perf_pmu_set_lineno ( int  _line_number)

◆ perf_pmu_set_out()

void perf_pmu_set_out ( FILE *  _out_str)

◆ perf_pmu_wrap()

int perf_pmu_wrap ( void  )

◆ value()

static int value ( int  base)
static

Definition at line 500 of file pmu-flex.c.

◆ yy_fatal_error()

static void yy_fatal_error ( yyconst char  msg[])
static

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( void  )
static

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( void  )
static

◆ yy_init_globals()

static int yy_init_globals ( void  )
static

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

◆ yyunput()

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

Variable Documentation

◆ perf_pmu__flex_debug

int perf_pmu__flex_debug = 0

Definition at line 483 of file pmu-flex.c.

◆ perf_pmu_in

FILE * perf_pmu_in = (FILE *) 0

Definition at line 366 of file pmu-flex.c.

◆ perf_pmu_leng

yy_size_t perf_pmu_leng

Definition at line 304 of file pmu-flex.c.

◆ perf_pmu_lineno

int perf_pmu_lineno = 1

Definition at line 372 of file pmu-flex.c.

◆ perf_pmu_out

FILE * perf_pmu_out = (FILE *) 0

Definition at line 366 of file pmu-flex.c.

◆ perf_pmu_text

char * perf_pmu_text

Definition at line 492 of file pmu-flex.c.

◆ yy_accept

yyconst flex_int16_t yy_accept[20]
static
Initial value:
=
{ 0,
0, 0, 11, 8, 9, 7, 5, 1, 6, 8,
1, 0, 0, 0, 0, 2, 3, 4, 0
}

Definition at line 407 of file pmu-flex.c.

◆ yy_act

int yy_act

Definition at line 702 of file pmu-flex.c.

◆ yy_base

yyconst flex_uint16_t yy_base[21]
static
Initial value:
=
{ 0,
0, 0, 23, 24, 24, 24, 24, 0, 24, 8,
0, 8, 10, 7, 7, 9, 24, 24, 24, 15
}

Definition at line 451 of file pmu-flex.c.

◆ yy_bp

char * yy_bp

Definition at line 701 of file pmu-flex.c.

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = 0
static

Stack as an array.

Definition at line 284 of file pmu-flex.c.

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 283 of file pmu-flex.c.

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 282 of file pmu-flex.c.

◆ yy_c_buf_p

char* yy_c_buf_p = (char *) 0
static

Definition at line 307 of file pmu-flex.c.

◆ yy_chk

yyconst flex_int16_t yy_chk[39]
static
Initial value:
=
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 16, 16, 20, 15, 14, 13,
12, 10, 3, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19
}

Definition at line 471 of file pmu-flex.c.

◆ yy_cp

char* yy_cp

Definition at line 701 of file pmu-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 699 of file pmu-flex.c.

◆ yy_def

yyconst flex_int16_t yy_def[21]
static
Initial value:
=
{ 0,
19, 1, 19, 19, 19, 19, 19, 20, 19, 19,
20, 19, 19, 19, 19, 19, 19, 19, 0, 19
}

Definition at line 457 of file pmu-flex.c.

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

Definition at line 314 of file pmu-flex.c.

◆ yy_ec

yyconst YY_CHAR yy_ec[256]
static

Definition at line 413 of file pmu-flex.c.

◆ yy_hold_char

char yy_hold_char
static

Definition at line 302 of file pmu-flex.c.

◆ yy_init

int yy_init = 0
static

Definition at line 308 of file pmu-flex.c.

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 480 of file pmu-flex.c.

◆ yy_last_accepting_state

yy_state_type yy_last_accepting_state
static

Definition at line 479 of file pmu-flex.c.

◆ yy_meta

yyconst YY_CHAR yy_meta[15]
static
Initial value:
=
{ 0,
1, 1, 1, 1, 2, 2, 2, 1, 1, 1,
1, 1, 1, 1
}

Definition at line 445 of file pmu-flex.c.

◆ yy_n_chars

yy_size_t yy_n_chars
static

Definition at line 303 of file pmu-flex.c.

◆ yy_nxt

yyconst flex_uint16_t yy_nxt[39]
static
Initial value:
=
{ 0,
4, 5, 6, 7, 8, 8, 8, 9, 10, 4,
4, 4, 4, 4, 17, 18, 11, 16, 15, 14,
13, 12, 19, 3, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, 19, 19, 19
}

Definition at line 463 of file pmu-flex.c.

◆ yy_start

int yy_start = 0
static

Definition at line 309 of file pmu-flex.c.