parse-events-bison.c 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852
  1. /* A Bison parser, made by GNU Bison 2.4.3. */
  2. /* Skeleton implementation for Bison's Yacc-like parsers in C
  3. Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
  4. 2009, 2010 Free Software Foundation, Inc.
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. /* As a special exception, you may create a larger work that contains
  16. part or all of the Bison parser skeleton and distribute that work
  17. under terms of your choice, so long as that work isn't itself a
  18. parser generator using the skeleton or a modified version thereof
  19. as a parser skeleton. Alternatively, if you modify or redistribute
  20. the parser skeleton itself, you may (at your option) remove this
  21. special exception, which will cause the skeleton and the resulting
  22. Bison output files to be licensed under the GNU General Public
  23. License without this special exception.
  24. This special exception was added by the Free Software Foundation in
  25. version 2.2 of Bison. */
  26. /* C LALR(1) parser skeleton written by Richard Stallman, by
  27. simplifying the original so-called "semantic" parser. */
  28. /* All symbols defined below should begin with yy or YY, to avoid
  29. infringing on user name space. This should be done even for local
  30. variables, as they might otherwise be expanded by user macros.
  31. There are some unavoidable exceptions within include files to
  32. define necessary library symbols; they are noted "INFRINGES ON
  33. USER NAME SPACE" below. */
  34. /* Identify Bison output. */
  35. #define YYBISON 1
  36. /* Bison version. */
  37. #define YYBISON_VERSION "2.4.3"
  38. /* Skeleton name. */
  39. #define YYSKELETON_NAME "yacc.c"
  40. /* Pure parsers. */
  41. #define YYPURE 0
  42. /* Push parsers. */
  43. #define YYPUSH 0
  44. /* Pull parsers. */
  45. #define YYPULL 1
  46. /* Using locations. */
  47. #define YYLSP_NEEDED 0
  48. /* Substitute the variable and function names. */
  49. #define yyparse parse_events_parse
  50. #define yylex parse_events_lex
  51. #define yyerror parse_events_error
  52. #define yylval parse_events_lval
  53. #define yychar parse_events_char
  54. #define yydebug parse_events_debug
  55. #define yynerrs parse_events_nerrs
  56. /* Copy the first part of user declarations. */
  57. /* Line 189 of yacc.c */
  58. #line 6 "util/parse-events.y"
  59. #define YYDEBUG 1
  60. #include <linux/compiler.h>
  61. #include <linux/list.h>
  62. #include "types.h"
  63. #include "util.h"
  64. #include "parse-events.h"
  65. extern int parse_events_lex (void);
  66. #define ABORT_ON(val) \
  67. do { \
  68. if (val) \
  69. YYABORT; \
  70. } while (0)
  71. /* Line 189 of yacc.c */
  72. #line 101 "util/parse-events-bison.c"
  73. /* Enabling traces. */
  74. #ifndef YYDEBUG
  75. # define YYDEBUG 0
  76. #endif
  77. /* Enabling verbose error messages. */
  78. #ifdef YYERROR_VERBOSE
  79. # undef YYERROR_VERBOSE
  80. # define YYERROR_VERBOSE 1
  81. #else
  82. # define YYERROR_VERBOSE 0
  83. #endif
  84. /* Enabling the token table. */
  85. #ifndef YYTOKEN_TABLE
  86. # define YYTOKEN_TABLE 0
  87. #endif
  88. /* Tokens. */
  89. #ifndef YYTOKENTYPE
  90. # define YYTOKENTYPE
  91. /* Put the tokens into the symbol table, so that GDB and other debuggers
  92. know about them. */
  93. enum yytokentype {
  94. PE_VALUE = 258,
  95. PE_VALUE_SYM = 259,
  96. PE_RAW = 260,
  97. PE_TERM = 261,
  98. PE_NAME = 262,
  99. PE_MODIFIER_EVENT = 263,
  100. PE_MODIFIER_BP = 264,
  101. PE_NAME_CACHE_TYPE = 265,
  102. PE_NAME_CACHE_OP_RESULT = 266,
  103. PE_PREFIX_MEM = 267,
  104. PE_PREFIX_RAW = 268,
  105. PE_ERROR = 269
  106. };
  107. #endif
  108. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  109. typedef union YYSTYPE
  110. {
  111. /* Line 214 of yacc.c */
  112. #line 45 "util/parse-events.y"
  113. char *str;
  114. unsigned long num;
  115. struct list_head *head;
  116. struct parse_events__term *term;
  117. /* Line 214 of yacc.c */
  118. #line 160 "util/parse-events-bison.c"
  119. } YYSTYPE;
  120. # define YYSTYPE_IS_TRIVIAL 1
  121. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  122. # define YYSTYPE_IS_DECLARED 1
  123. #endif
  124. /* Copy the second part of user declarations. */
  125. /* Line 264 of yacc.c */
  126. #line 172 "util/parse-events-bison.c"
  127. #ifdef short
  128. # undef short
  129. #endif
  130. #ifdef YYTYPE_UINT8
  131. typedef YYTYPE_UINT8 yytype_uint8;
  132. #else
  133. typedef unsigned char yytype_uint8;
  134. #endif
  135. #ifdef YYTYPE_INT8
  136. typedef YYTYPE_INT8 yytype_int8;
  137. #elif (defined __STDC__ || defined __C99__FUNC__ \
  138. || defined __cplusplus || defined _MSC_VER)
  139. typedef signed char yytype_int8;
  140. #else
  141. typedef short int yytype_int8;
  142. #endif
  143. #ifdef YYTYPE_UINT16
  144. typedef YYTYPE_UINT16 yytype_uint16;
  145. #else
  146. typedef unsigned short int yytype_uint16;
  147. #endif
  148. #ifdef YYTYPE_INT16
  149. typedef YYTYPE_INT16 yytype_int16;
  150. #else
  151. typedef short int yytype_int16;
  152. #endif
  153. #ifndef YYSIZE_T
  154. # ifdef __SIZE_TYPE__
  155. # define YYSIZE_T __SIZE_TYPE__
  156. # elif defined size_t
  157. # define YYSIZE_T size_t
  158. # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
  159. || defined __cplusplus || defined _MSC_VER)
  160. # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  161. # define YYSIZE_T size_t
  162. # else
  163. # define YYSIZE_T unsigned int
  164. # endif
  165. #endif
  166. #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
  167. #ifndef YY_
  168. # if defined YYENABLE_NLS && YYENABLE_NLS
  169. # if ENABLE_NLS
  170. # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
  171. # define YY_(msgid) dgettext ("bison-runtime", msgid)
  172. # endif
  173. # endif
  174. # ifndef YY_
  175. # define YY_(msgid) msgid
  176. # endif
  177. #endif
  178. /* Suppress unused-variable warnings by "using" E. */
  179. #if ! defined lint || defined __GNUC__
  180. # define YYUSE(e) ((void) (e))
  181. #else
  182. # define YYUSE(e) /* empty */
  183. #endif
  184. /* Identity function, used to suppress warnings about constant conditions. */
  185. #ifndef lint
  186. # define YYID(n) (n)
  187. #else
  188. #if (defined __STDC__ || defined __C99__FUNC__ \
  189. || defined __cplusplus || defined _MSC_VER)
  190. static int
  191. YYID (int yyi)
  192. #else
  193. static int
  194. YYID (yyi)
  195. int yyi;
  196. #endif
  197. {
  198. return yyi;
  199. }
  200. #endif
  201. #if ! defined yyoverflow || YYERROR_VERBOSE
  202. /* The parser invokes alloca or malloc; define the necessary symbols. */
  203. # ifdef YYSTACK_USE_ALLOCA
  204. # if YYSTACK_USE_ALLOCA
  205. # ifdef __GNUC__
  206. # define YYSTACK_ALLOC __builtin_alloca
  207. # elif defined __BUILTIN_VA_ARG_INCR
  208. # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
  209. # elif defined _AIX
  210. # define YYSTACK_ALLOC __alloca
  211. # elif defined _MSC_VER
  212. # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
  213. # define alloca _alloca
  214. # else
  215. # define YYSTACK_ALLOC alloca
  216. # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
  217. || defined __cplusplus || defined _MSC_VER)
  218. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  219. # ifndef _STDLIB_H
  220. # define _STDLIB_H 1
  221. # endif
  222. # endif
  223. # endif
  224. # endif
  225. # endif
  226. # ifdef YYSTACK_ALLOC
  227. /* Pacify GCC's `empty if-body' warning. */
  228. # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
  229. # ifndef YYSTACK_ALLOC_MAXIMUM
  230. /* The OS might guarantee only one guard page at the bottom of the stack,
  231. and a page size can be as small as 4096 bytes. So we cannot safely
  232. invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
  233. to allow for a few compiler-allocated temporary stack slots. */
  234. # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
  235. # endif
  236. # else
  237. # define YYSTACK_ALLOC YYMALLOC
  238. # define YYSTACK_FREE YYFREE
  239. # ifndef YYSTACK_ALLOC_MAXIMUM
  240. # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
  241. # endif
  242. # if (defined __cplusplus && ! defined _STDLIB_H \
  243. && ! ((defined YYMALLOC || defined malloc) \
  244. && (defined YYFREE || defined free)))
  245. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  246. # ifndef _STDLIB_H
  247. # define _STDLIB_H 1
  248. # endif
  249. # endif
  250. # ifndef YYMALLOC
  251. # define YYMALLOC malloc
  252. # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
  253. || defined __cplusplus || defined _MSC_VER)
  254. void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
  255. # endif
  256. # endif
  257. # ifndef YYFREE
  258. # define YYFREE free
  259. # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
  260. || defined __cplusplus || defined _MSC_VER)
  261. void free (void *); /* INFRINGES ON USER NAME SPACE */
  262. # endif
  263. # endif
  264. # endif
  265. #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
  266. #if (! defined yyoverflow \
  267. && (! defined __cplusplus \
  268. || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
  269. /* A type that is properly aligned for any stack member. */
  270. union yyalloc
  271. {
  272. yytype_int16 yyss_alloc;
  273. YYSTYPE yyvs_alloc;
  274. };
  275. /* The size of the maximum gap between one aligned stack and the next. */
  276. # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  277. /* The size of an array large to enough to hold all stacks, each with
  278. N elements. */
  279. # define YYSTACK_BYTES(N) \
  280. ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
  281. + YYSTACK_GAP_MAXIMUM)
  282. /* Copy COUNT objects from FROM to TO. The source and destination do
  283. not overlap. */
  284. # ifndef YYCOPY
  285. # if defined __GNUC__ && 1 < __GNUC__
  286. # define YYCOPY(To, From, Count) \
  287. __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
  288. # else
  289. # define YYCOPY(To, From, Count) \
  290. do \
  291. { \
  292. YYSIZE_T yyi; \
  293. for (yyi = 0; yyi < (Count); yyi++) \
  294. (To)[yyi] = (From)[yyi]; \
  295. } \
  296. while (YYID (0))
  297. # endif
  298. # endif
  299. /* Relocate STACK from its old location to the new one. The
  300. local variables YYSIZE and YYSTACKSIZE give the old and new number of
  301. elements in the stack, and YYPTR gives the new location of the
  302. stack. Advance YYPTR to a properly aligned location for the next
  303. stack. */
  304. # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
  305. do \
  306. { \
  307. YYSIZE_T yynewbytes; \
  308. YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
  309. Stack = &yyptr->Stack_alloc; \
  310. yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  311. yyptr += yynewbytes / sizeof (*yyptr); \
  312. } \
  313. while (YYID (0))
  314. #endif
  315. /* YYFINAL -- State number of the termination state. */
  316. #define YYFINAL 25
  317. /* YYLAST -- Last index in YYTABLE. */
  318. #define YYLAST 43
  319. /* YYNTOKENS -- Number of terminals. */
  320. #define YYNTOKENS 20
  321. /* YYNNTS -- Number of nonterminals. */
  322. #define YYNNTS 15
  323. /* YYNRULES -- Number of rules. */
  324. #define YYNRULES 35
  325. /* YYNRULES -- Number of states. */
  326. #define YYNSTATES 57
  327. /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  328. #define YYUNDEFTOK 2
  329. #define YYMAXUTOK 269
  330. #define YYTRANSLATE(YYX) \
  331. ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  332. /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  333. static const yytype_uint8 yytranslate[] =
  334. {
  335. 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  336. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  337. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  338. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  339. 2, 2, 2, 2, 15, 17, 2, 16, 2, 2,
  340. 2, 2, 2, 2, 2, 2, 2, 2, 18, 2,
  341. 2, 19, 2, 2, 2, 2, 2, 2, 2, 2,
  342. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  343. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  344. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  345. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  346. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  347. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  348. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  349. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  350. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  351. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  352. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  353. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  354. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  355. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  356. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  357. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  358. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  359. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  360. 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  361. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
  362. };
  363. #if YYDEBUG
  364. /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  365. YYRHS. */
  366. static const yytype_uint8 yyprhs[] =
  367. {
  368. 0, 0, 3, 7, 9, 12, 14, 16, 18, 21,
  369. 23, 26, 29, 32, 37, 42, 45, 51, 55, 57,
  370. 63, 67, 71, 75, 77, 81, 83, 87, 91, 93,
  371. 97, 99, 101, 102, 104, 106
  372. };
  373. /* YYRHS -- A `-1'-separated list of the rules' RHS. */
  374. static const yytype_int8 yyrhs[] =
  375. {
  376. 21, 0, -1, 21, 15, 22, -1, 22, -1, 23,
  377. 8, -1, 23, -1, 24, -1, 25, -1, 26, 33,
  378. -1, 27, -1, 28, 33, -1, 29, 33, -1, 30,
  379. 33, -1, 7, 16, 31, 16, -1, 4, 16, 31,
  380. 16, -1, 4, 34, -1, 10, 17, 11, 17, 11,
  381. -1, 10, 17, 11, -1, 10, -1, 12, 3, 18,
  382. 9, 33, -1, 12, 3, 33, -1, 7, 18, 7,
  383. -1, 3, 18, 3, -1, 5, -1, 31, 15, 32,
  384. -1, 32, -1, 7, 19, 7, -1, 7, 19, 3,
  385. -1, 7, -1, 6, 19, 3, -1, 6, -1, 18,
  386. -1, -1, 16, -1, 18, -1, -1
  387. };
  388. /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  389. static const yytype_uint8 yyrline[] =
  390. {
  391. 0, 54, 54, 54, 57, 62, 64, 65, 66, 67,
  392. 68, 69, 70, 73, 80, 89, 98, 103, 108, 114,
  393. 119, 125, 131, 137, 143, 153, 165, 174, 183, 192,
  394. 200, 208, 208, 210, 210, 210
  395. };
  396. #endif
  397. #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
  398. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  399. First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  400. static const char *const yytname[] =
  401. {
  402. "$end", "error", "$undefined", "PE_VALUE", "PE_VALUE_SYM", "PE_RAW",
  403. "PE_TERM", "PE_NAME", "PE_MODIFIER_EVENT", "PE_MODIFIER_BP",
  404. "PE_NAME_CACHE_TYPE", "PE_NAME_CACHE_OP_RESULT", "PE_PREFIX_MEM",
  405. "PE_PREFIX_RAW", "PE_ERROR", "','", "'/'", "'-'", "':'", "'='",
  406. "$accept", "events", "event", "event_def", "event_pmu",
  407. "event_legacy_symbol", "event_legacy_cache", "event_legacy_mem",
  408. "event_legacy_tracepoint", "event_legacy_numeric", "event_legacy_raw",
  409. "event_config", "event_term", "sep_dc", "sep_slash_dc", 0
  410. };
  411. #endif
  412. # ifdef YYPRINT
  413. /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  414. token YYLEX-NUM. */
  415. static const yytype_uint16 yytoknum[] =
  416. {
  417. 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  418. 265, 266, 267, 268, 269, 44, 47, 45, 58, 61
  419. };
  420. # endif
  421. /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  422. static const yytype_uint8 yyr1[] =
  423. {
  424. 0, 20, 21, 21, 22, 22, 23, 23, 23, 23,
  425. 23, 23, 23, 24, 25, 25, 26, 26, 26, 27,
  426. 27, 28, 29, 30, 31, 31, 32, 32, 32, 32,
  427. 32, 33, 33, 34, 34, 34
  428. };
  429. /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  430. static const yytype_uint8 yyr2[] =
  431. {
  432. 0, 2, 3, 1, 2, 1, 1, 1, 2, 1,
  433. 2, 2, 2, 4, 4, 2, 5, 3, 1, 5,
  434. 3, 3, 3, 1, 3, 1, 3, 3, 1, 3,
  435. 1, 1, 0, 1, 1, 0
  436. };
  437. /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
  438. STATE-NUM when YYTABLE doesn't specify something else to do. Zero
  439. means the default is an error. */
  440. static const yytype_uint8 yydefact[] =
  441. {
  442. 0, 0, 35, 23, 0, 18, 0, 0, 3, 5,
  443. 6, 7, 32, 9, 32, 32, 32, 0, 33, 34,
  444. 15, 0, 0, 0, 32, 1, 0, 4, 31, 8,
  445. 10, 11, 12, 22, 30, 28, 0, 25, 0, 21,
  446. 17, 31, 20, 2, 0, 0, 0, 14, 13, 0,
  447. 32, 29, 27, 26, 24, 16, 19
  448. };
  449. /* YYDEFGOTO[NTERM-NUM]. */
  450. static const yytype_int8 yydefgoto[] =
  451. {
  452. -1, 7, 8, 9, 10, 11, 12, 13, 14, 15,
  453. 16, 36, 37, 29, 20
  454. };
  455. /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  456. STATE-NUM. */
  457. #define YYPACT_NINF -15
  458. static const yytype_int8 yypact[] =
  459. {
  460. 1, -4, -9, -15, -1, 10, 22, 3, -15, 18,
  461. -15, -15, 11, -15, 11, 11, 11, 25, 13, -15,
  462. -15, 13, 23, 20, 14, -15, 1, -15, -15, -15,
  463. -15, -15, -15, -15, 15, 16, 6, -15, 8, -15,
  464. 21, 24, -15, -15, 34, 9, 13, -15, -15, 28,
  465. 11, -15, -15, -15, -15, -15, -15
  466. };
  467. /* YYPGOTO[NTERM-NUM]. */
  468. static const yytype_int8 yypgoto[] =
  469. {
  470. -15, -15, 17, -15, -15, -15, -15, -15, -15, -15,
  471. -15, 19, -5, -14, -15
  472. };
  473. /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  474. positive, shift that token. If negative, reduce the rule which
  475. number is the opposite. If zero, do what YYDEFACT says.
  476. If YYTABLE_NINF, syntax error. */
  477. #define YYTABLE_NINF -1
  478. static const yytype_uint8 yytable[] =
  479. {
  480. 30, 31, 32, 25, 1, 2, 3, 18, 4, 19,
  481. 42, 5, 52, 6, 17, 21, 53, 22, 26, 34,
  482. 35, 46, 47, 46, 48, 24, 27, 23, 33, 28,
  483. 39, 40, 41, 50, 44, 45, 56, 51, 49, 55,
  484. 38, 54, 0, 43
  485. };
  486. static const yytype_int8 yycheck[] =
  487. {
  488. 14, 15, 16, 0, 3, 4, 5, 16, 7, 18,
  489. 24, 10, 3, 12, 18, 16, 7, 18, 15, 6,
  490. 7, 15, 16, 15, 16, 3, 8, 17, 3, 18,
  491. 7, 11, 18, 9, 19, 19, 50, 3, 17, 11,
  492. 21, 46, -1, 26
  493. };
  494. /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  495. symbol of state STATE-NUM. */
  496. static const yytype_uint8 yystos[] =
  497. {
  498. 0, 3, 4, 5, 7, 10, 12, 21, 22, 23,
  499. 24, 25, 26, 27, 28, 29, 30, 18, 16, 18,
  500. 34, 16, 18, 17, 3, 0, 15, 8, 18, 33,
  501. 33, 33, 33, 3, 6, 7, 31, 32, 31, 7,
  502. 11, 18, 33, 22, 19, 19, 15, 16, 16, 17,
  503. 9, 3, 3, 7, 32, 11, 33
  504. };
  505. #define yyerrok (yyerrstatus = 0)
  506. #define yyclearin (yychar = YYEMPTY)
  507. #define YYEMPTY (-2)
  508. #define YYEOF 0
  509. #define YYACCEPT goto yyacceptlab
  510. #define YYABORT goto yyabortlab
  511. #define YYERROR goto yyerrorlab
  512. /* Like YYERROR except do call yyerror. This remains here temporarily
  513. to ease the transition to the new meaning of YYERROR, for GCC.
  514. Once GCC version 2 has supplanted version 1, this can go. However,
  515. YYFAIL appears to be in use. Nevertheless, it is formally deprecated
  516. in Bison 2.4.2's NEWS entry, where a plan to phase it out is
  517. discussed. */
  518. #define YYFAIL goto yyerrlab
  519. #if defined YYFAIL
  520. /* This is here to suppress warnings from the GCC cpp's
  521. -Wunused-macros. Normally we don't worry about that warning, but
  522. some users do, and we want to make it easy for users to remove
  523. YYFAIL uses, which will produce warnings from Bison 2.5. */
  524. #endif
  525. #define YYRECOVERING() (!!yyerrstatus)
  526. #define YYBACKUP(Token, Value) \
  527. do \
  528. if (yychar == YYEMPTY && yylen == 1) \
  529. { \
  530. yychar = (Token); \
  531. yylval = (Value); \
  532. yytoken = YYTRANSLATE (yychar); \
  533. YYPOPSTACK (1); \
  534. goto yybackup; \
  535. } \
  536. else \
  537. { \
  538. yyerror (list, idx, YY_("syntax error: cannot back up")); \
  539. YYERROR; \
  540. } \
  541. while (YYID (0))
  542. #define YYTERROR 1
  543. #define YYERRCODE 256
  544. /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
  545. If N is 0, then set CURRENT to the empty location which ends
  546. the previous symbol: RHS[0] (always defined). */
  547. #define YYRHSLOC(Rhs, K) ((Rhs)[K])
  548. #ifndef YYLLOC_DEFAULT
  549. # define YYLLOC_DEFAULT(Current, Rhs, N) \
  550. do \
  551. if (YYID (N)) \
  552. { \
  553. (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
  554. (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
  555. (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
  556. (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
  557. } \
  558. else \
  559. { \
  560. (Current).first_line = (Current).last_line = \
  561. YYRHSLOC (Rhs, 0).last_line; \
  562. (Current).first_column = (Current).last_column = \
  563. YYRHSLOC (Rhs, 0).last_column; \
  564. } \
  565. while (YYID (0))
  566. #endif
  567. /* YY_LOCATION_PRINT -- Print the location on the stream.
  568. This macro was not mandated originally: define only if we know
  569. we won't break user code: when these are the locations we know. */
  570. #ifndef YY_LOCATION_PRINT
  571. # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
  572. # define YY_LOCATION_PRINT(File, Loc) \
  573. fprintf (File, "%d.%d-%d.%d", \
  574. (Loc).first_line, (Loc).first_column, \
  575. (Loc).last_line, (Loc).last_column)
  576. # else
  577. # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
  578. # endif
  579. #endif
  580. /* YYLEX -- calling `yylex' with the right arguments. */
  581. #ifdef YYLEX_PARAM
  582. # define YYLEX yylex (YYLEX_PARAM)
  583. #else
  584. # define YYLEX yylex ()
  585. #endif
  586. /* Enable debugging if requested. */
  587. #if YYDEBUG
  588. # ifndef YYFPRINTF
  589. # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  590. # define YYFPRINTF fprintf
  591. # endif
  592. # define YYDPRINTF(Args) \
  593. do { \
  594. if (yydebug) \
  595. YYFPRINTF Args; \
  596. } while (YYID (0))
  597. # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
  598. do { \
  599. if (yydebug) \
  600. { \
  601. YYFPRINTF (stderr, "%s ", Title); \
  602. yy_symbol_print (stderr, \
  603. Type, Value, list, idx); \
  604. YYFPRINTF (stderr, "\n"); \
  605. } \
  606. } while (YYID (0))
  607. /*--------------------------------.
  608. | Print this symbol on YYOUTPUT. |
  609. `--------------------------------*/
  610. /*ARGSUSED*/
  611. #if (defined __STDC__ || defined __C99__FUNC__ \
  612. || defined __cplusplus || defined _MSC_VER)
  613. static void
  614. yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, struct list_head *list, int *idx)
  615. #else
  616. static void
  617. yy_symbol_value_print (yyoutput, yytype, yyvaluep, list, idx)
  618. FILE *yyoutput;
  619. int yytype;
  620. YYSTYPE const * const yyvaluep;
  621. struct list_head *list;
  622. int *idx;
  623. #endif
  624. {
  625. if (!yyvaluep)
  626. return;
  627. YYUSE (list);
  628. YYUSE (idx);
  629. # ifdef YYPRINT
  630. if (yytype < YYNTOKENS)
  631. YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  632. # else
  633. YYUSE (yyoutput);
  634. # endif
  635. switch (yytype)
  636. {
  637. default:
  638. break;
  639. }
  640. }
  641. /*--------------------------------.
  642. | Print this symbol on YYOUTPUT. |
  643. `--------------------------------*/
  644. #if (defined __STDC__ || defined __C99__FUNC__ \
  645. || defined __cplusplus || defined _MSC_VER)
  646. static void
  647. yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, struct list_head *list, int *idx)
  648. #else
  649. static void
  650. yy_symbol_print (yyoutput, yytype, yyvaluep, list, idx)
  651. FILE *yyoutput;
  652. int yytype;
  653. YYSTYPE const * const yyvaluep;
  654. struct list_head *list;
  655. int *idx;
  656. #endif
  657. {
  658. if (yytype < YYNTOKENS)
  659. YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  660. else
  661. YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  662. yy_symbol_value_print (yyoutput, yytype, yyvaluep, list, idx);
  663. YYFPRINTF (yyoutput, ")");
  664. }
  665. /*------------------------------------------------------------------.
  666. | yy_stack_print -- Print the state stack from its BOTTOM up to its |
  667. | TOP (included). |
  668. `------------------------------------------------------------------*/
  669. #if (defined __STDC__ || defined __C99__FUNC__ \
  670. || defined __cplusplus || defined _MSC_VER)
  671. static void
  672. yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
  673. #else
  674. static void
  675. yy_stack_print (yybottom, yytop)
  676. yytype_int16 *yybottom;
  677. yytype_int16 *yytop;
  678. #endif
  679. {
  680. YYFPRINTF (stderr, "Stack now");
  681. for (; yybottom <= yytop; yybottom++)
  682. {
  683. int yybot = *yybottom;
  684. YYFPRINTF (stderr, " %d", yybot);
  685. }
  686. YYFPRINTF (stderr, "\n");
  687. }
  688. # define YY_STACK_PRINT(Bottom, Top) \
  689. do { \
  690. if (yydebug) \
  691. yy_stack_print ((Bottom), (Top)); \
  692. } while (YYID (0))
  693. /*------------------------------------------------.
  694. | Report that the YYRULE is going to be reduced. |
  695. `------------------------------------------------*/
  696. #if (defined __STDC__ || defined __C99__FUNC__ \
  697. || defined __cplusplus || defined _MSC_VER)
  698. static void
  699. yy_reduce_print (YYSTYPE *yyvsp, int yyrule, struct list_head *list, int *idx)
  700. #else
  701. static void
  702. yy_reduce_print (yyvsp, yyrule, list, idx)
  703. YYSTYPE *yyvsp;
  704. int yyrule;
  705. struct list_head *list;
  706. int *idx;
  707. #endif
  708. {
  709. int yynrhs = yyr2[yyrule];
  710. int yyi;
  711. unsigned long int yylno = yyrline[yyrule];
  712. YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
  713. yyrule - 1, yylno);
  714. /* The symbols being reduced. */
  715. for (yyi = 0; yyi < yynrhs; yyi++)
  716. {
  717. YYFPRINTF (stderr, " $%d = ", yyi + 1);
  718. yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
  719. &(yyvsp[(yyi + 1) - (yynrhs)])
  720. , list, idx);
  721. YYFPRINTF (stderr, "\n");
  722. }
  723. }
  724. # define YY_REDUCE_PRINT(Rule) \
  725. do { \
  726. if (yydebug) \
  727. yy_reduce_print (yyvsp, Rule, list, idx); \
  728. } while (YYID (0))
  729. /* Nonzero means print parse trace. It is left uninitialized so that
  730. multiple parsers can coexist. */
  731. int yydebug;
  732. #else /* !YYDEBUG */
  733. # define YYDPRINTF(Args)
  734. # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
  735. # define YY_STACK_PRINT(Bottom, Top)
  736. # define YY_REDUCE_PRINT(Rule)
  737. #endif /* !YYDEBUG */
  738. /* YYINITDEPTH -- initial size of the parser's stacks. */
  739. #ifndef YYINITDEPTH
  740. # define YYINITDEPTH 200
  741. #endif
  742. /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  743. if the built-in stack extension method is used).
  744. Do not make this value too large; the results are undefined if
  745. YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
  746. evaluated with infinite-precision integer arithmetic. */
  747. #ifndef YYMAXDEPTH
  748. # define YYMAXDEPTH 10000
  749. #endif
  750. #if YYERROR_VERBOSE
  751. # ifndef yystrlen
  752. # if defined __GLIBC__ && defined _STRING_H
  753. # define yystrlen strlen
  754. # else
  755. /* Return the length of YYSTR. */
  756. #if (defined __STDC__ || defined __C99__FUNC__ \
  757. || defined __cplusplus || defined _MSC_VER)
  758. static YYSIZE_T
  759. yystrlen (const char *yystr)
  760. #else
  761. static YYSIZE_T
  762. yystrlen (yystr)
  763. const char *yystr;
  764. #endif
  765. {
  766. YYSIZE_T yylen;
  767. for (yylen = 0; yystr[yylen]; yylen++)
  768. continue;
  769. return yylen;
  770. }
  771. # endif
  772. # endif
  773. # ifndef yystpcpy
  774. # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
  775. # define yystpcpy stpcpy
  776. # else
  777. /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  778. YYDEST. */
  779. #if (defined __STDC__ || defined __C99__FUNC__ \
  780. || defined __cplusplus || defined _MSC_VER)
  781. static char *
  782. yystpcpy (char *yydest, const char *yysrc)
  783. #else
  784. static char *
  785. yystpcpy (yydest, yysrc)
  786. char *yydest;
  787. const char *yysrc;
  788. #endif
  789. {
  790. char *yyd = yydest;
  791. const char *yys = yysrc;
  792. while ((*yyd++ = *yys++) != '\0')
  793. continue;
  794. return yyd - 1;
  795. }
  796. # endif
  797. # endif
  798. # ifndef yytnamerr
  799. /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
  800. quotes and backslashes, so that it's suitable for yyerror. The
  801. heuristic is that double-quoting is unnecessary unless the string
  802. contains an apostrophe, a comma, or backslash (other than
  803. backslash-backslash). YYSTR is taken from yytname. If YYRES is
  804. null, do not copy; instead, return the length of what the result
  805. would have been. */
  806. static YYSIZE_T
  807. yytnamerr (char *yyres, const char *yystr)
  808. {
  809. if (*yystr == '"')
  810. {
  811. YYSIZE_T yyn = 0;
  812. char const *yyp = yystr;
  813. for (;;)
  814. switch (*++yyp)
  815. {
  816. case '\'':
  817. case ',':
  818. goto do_not_strip_quotes;
  819. case '\\':
  820. if (*++yyp != '\\')
  821. goto do_not_strip_quotes;
  822. /* Fall through. */
  823. default:
  824. if (yyres)
  825. yyres[yyn] = *yyp;
  826. yyn++;
  827. break;
  828. case '"':
  829. if (yyres)
  830. yyres[yyn] = '\0';
  831. return yyn;
  832. }
  833. do_not_strip_quotes: ;
  834. }
  835. if (! yyres)
  836. return yystrlen (yystr);
  837. return yystpcpy (yyres, yystr) - yyres;
  838. }
  839. # endif
  840. /* Copy into YYRESULT an error message about the unexpected token
  841. YYCHAR while in state YYSTATE. Return the number of bytes copied,
  842. including the terminating null byte. If YYRESULT is null, do not
  843. copy anything; just return the number of bytes that would be
  844. copied. As a special case, return 0 if an ordinary "syntax error"
  845. message will do. Return YYSIZE_MAXIMUM if overflow occurs during
  846. size calculation. */
  847. static YYSIZE_T
  848. yysyntax_error (char *yyresult, int yystate, int yychar)
  849. {
  850. int yyn = yypact[yystate];
  851. if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
  852. return 0;
  853. else
  854. {
  855. int yytype = YYTRANSLATE (yychar);
  856. YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
  857. YYSIZE_T yysize = yysize0;
  858. YYSIZE_T yysize1;
  859. int yysize_overflow = 0;
  860. enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  861. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  862. int yyx;
  863. # if 0
  864. /* This is so xgettext sees the translatable formats that are
  865. constructed on the fly. */
  866. YY_("syntax error, unexpected %s");
  867. YY_("syntax error, unexpected %s, expecting %s");
  868. YY_("syntax error, unexpected %s, expecting %s or %s");
  869. YY_("syntax error, unexpected %s, expecting %s or %s or %s");
  870. YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
  871. # endif
  872. char *yyfmt;
  873. char const *yyf;
  874. static char const yyunexpected[] = "syntax error, unexpected %s";
  875. static char const yyexpecting[] = ", expecting %s";
  876. static char const yyor[] = " or %s";
  877. char yyformat[sizeof yyunexpected
  878. + sizeof yyexpecting - 1
  879. + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
  880. * (sizeof yyor - 1))];
  881. char const *yyprefix = yyexpecting;
  882. /* Start YYX at -YYN if negative to avoid negative indexes in
  883. YYCHECK. */
  884. int yyxbegin = yyn < 0 ? -yyn : 0;
  885. /* Stay within bounds of both yycheck and yytname. */
  886. int yychecklim = YYLAST - yyn + 1;
  887. int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  888. int yycount = 1;
  889. yyarg[0] = yytname[yytype];
  890. yyfmt = yystpcpy (yyformat, yyunexpected);
  891. for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  892. if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  893. {
  894. if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
  895. {
  896. yycount = 1;
  897. yysize = yysize0;
  898. yyformat[sizeof yyunexpected - 1] = '\0';
  899. break;
  900. }
  901. yyarg[yycount++] = yytname[yyx];
  902. yysize1 = yysize + yytnamerr (0, yytname[yyx]);
  903. yysize_overflow |= (yysize1 < yysize);
  904. yysize = yysize1;
  905. yyfmt = yystpcpy (yyfmt, yyprefix);
  906. yyprefix = yyor;
  907. }
  908. yyf = YY_(yyformat);
  909. yysize1 = yysize + yystrlen (yyf);
  910. yysize_overflow |= (yysize1 < yysize);
  911. yysize = yysize1;
  912. if (yysize_overflow)
  913. return YYSIZE_MAXIMUM;
  914. if (yyresult)
  915. {
  916. /* Avoid sprintf, as that infringes on the user's name space.
  917. Don't have undefined behavior even if the translation
  918. produced a string with the wrong number of "%s"s. */
  919. char *yyp = yyresult;
  920. int yyi = 0;
  921. while ((*yyp = *yyf) != '\0')
  922. {
  923. if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
  924. {
  925. yyp += yytnamerr (yyp, yyarg[yyi++]);
  926. yyf += 2;
  927. }
  928. else
  929. {
  930. yyp++;
  931. yyf++;
  932. }
  933. }
  934. }
  935. return yysize;
  936. }
  937. }
  938. #endif /* YYERROR_VERBOSE */
  939. /*-----------------------------------------------.
  940. | Release the memory associated to this symbol. |
  941. `-----------------------------------------------*/
  942. /*ARGSUSED*/
  943. #if (defined __STDC__ || defined __C99__FUNC__ \
  944. || defined __cplusplus || defined _MSC_VER)
  945. static void
  946. yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, struct list_head *list, int *idx)
  947. #else
  948. static void
  949. yydestruct (yymsg, yytype, yyvaluep, list, idx)
  950. const char *yymsg;
  951. int yytype;
  952. YYSTYPE *yyvaluep;
  953. struct list_head *list;
  954. int *idx;
  955. #endif
  956. {
  957. YYUSE (yyvaluep);
  958. YYUSE (list);
  959. YYUSE (idx);
  960. if (!yymsg)
  961. yymsg = "Deleting";
  962. YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
  963. switch (yytype)
  964. {
  965. default:
  966. break;
  967. }
  968. }
  969. /* Prevent warnings from -Wmissing-prototypes. */
  970. #ifdef YYPARSE_PARAM
  971. #if defined __STDC__ || defined __cplusplus
  972. int yyparse (void *YYPARSE_PARAM);
  973. #else
  974. int yyparse ();
  975. #endif
  976. #else /* ! YYPARSE_PARAM */
  977. #if defined __STDC__ || defined __cplusplus
  978. int yyparse (struct list_head *list, int *idx);
  979. #else
  980. int yyparse ();
  981. #endif
  982. #endif /* ! YYPARSE_PARAM */
  983. /* The lookahead symbol. */
  984. int yychar;
  985. /* The semantic value of the lookahead symbol. */
  986. YYSTYPE yylval;
  987. /* Number of syntax errors so far. */
  988. int yynerrs;
  989. /*-------------------------.
  990. | yyparse or yypush_parse. |
  991. `-------------------------*/
  992. #ifdef YYPARSE_PARAM
  993. #if (defined __STDC__ || defined __C99__FUNC__ \
  994. || defined __cplusplus || defined _MSC_VER)
  995. int
  996. yyparse (void *YYPARSE_PARAM)
  997. #else
  998. int
  999. yyparse (YYPARSE_PARAM)
  1000. void *YYPARSE_PARAM;
  1001. #endif
  1002. #else /* ! YYPARSE_PARAM */
  1003. #if (defined __STDC__ || defined __C99__FUNC__ \
  1004. || defined __cplusplus || defined _MSC_VER)
  1005. int
  1006. yyparse (struct list_head *list, int *idx)
  1007. #else
  1008. int
  1009. yyparse (list, idx)
  1010. struct list_head *list;
  1011. int *idx;
  1012. #endif
  1013. #endif
  1014. {
  1015. int yystate;
  1016. /* Number of tokens to shift before error messages enabled. */
  1017. int yyerrstatus;
  1018. /* The stacks and their tools:
  1019. `yyss': related to states.
  1020. `yyvs': related to semantic values.
  1021. Refer to the stacks thru separate pointers, to allow yyoverflow
  1022. to reallocate them elsewhere. */
  1023. /* The state stack. */
  1024. yytype_int16 yyssa[YYINITDEPTH];
  1025. yytype_int16 *yyss;
  1026. yytype_int16 *yyssp;
  1027. /* The semantic value stack. */
  1028. YYSTYPE yyvsa[YYINITDEPTH];
  1029. YYSTYPE *yyvs;
  1030. YYSTYPE *yyvsp;
  1031. YYSIZE_T yystacksize;
  1032. int yyn;
  1033. int yyresult;
  1034. /* Lookahead token as an internal (translated) token number. */
  1035. int yytoken;
  1036. /* The variables used to return semantic value and location from the
  1037. action routines. */
  1038. YYSTYPE yyval;
  1039. #if YYERROR_VERBOSE
  1040. /* Buffer for error messages, and its allocated size. */
  1041. char yymsgbuf[128];
  1042. char *yymsg = yymsgbuf;
  1043. YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
  1044. #endif
  1045. #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
  1046. /* The number of symbols on the RHS of the reduced rule.
  1047. Keep to zero when no symbol should be popped. */
  1048. int yylen = 0;
  1049. yytoken = 0;
  1050. yyss = yyssa;
  1051. yyvs = yyvsa;
  1052. yystacksize = YYINITDEPTH;
  1053. YYDPRINTF ((stderr, "Starting parse\n"));
  1054. yystate = 0;
  1055. yyerrstatus = 0;
  1056. yynerrs = 0;
  1057. yychar = YYEMPTY; /* Cause a token to be read. */
  1058. /* Initialize stack pointers.
  1059. Waste one element of value and location stack
  1060. so that they stay on the same level as the state stack.
  1061. The wasted elements are never initialized. */
  1062. yyssp = yyss;
  1063. yyvsp = yyvs;
  1064. goto yysetstate;
  1065. /*------------------------------------------------------------.
  1066. | yynewstate -- Push a new state, which is found in yystate. |
  1067. `------------------------------------------------------------*/
  1068. yynewstate:
  1069. /* In all cases, when you get here, the value and location stacks
  1070. have just been pushed. So pushing a state here evens the stacks. */
  1071. yyssp++;
  1072. yysetstate:
  1073. *yyssp = yystate;
  1074. if (yyss + yystacksize - 1 <= yyssp)
  1075. {
  1076. /* Get the current used size of the three stacks, in elements. */
  1077. YYSIZE_T yysize = yyssp - yyss + 1;
  1078. #ifdef yyoverflow
  1079. {
  1080. /* Give user a chance to reallocate the stack. Use copies of
  1081. these so that the &'s don't force the real ones into
  1082. memory. */
  1083. YYSTYPE *yyvs1 = yyvs;
  1084. yytype_int16 *yyss1 = yyss;
  1085. /* Each stack pointer address is followed by the size of the
  1086. data in use in that stack, in bytes. This used to be a
  1087. conditional around just the two extra args, but that might
  1088. be undefined if yyoverflow is a macro. */
  1089. yyoverflow (YY_("memory exhausted"),
  1090. &yyss1, yysize * sizeof (*yyssp),
  1091. &yyvs1, yysize * sizeof (*yyvsp),
  1092. &yystacksize);
  1093. yyss = yyss1;
  1094. yyvs = yyvs1;
  1095. }
  1096. #else /* no yyoverflow */
  1097. # ifndef YYSTACK_RELOCATE
  1098. goto yyexhaustedlab;
  1099. # else
  1100. /* Extend the stack our own way. */
  1101. if (YYMAXDEPTH <= yystacksize)
  1102. goto yyexhaustedlab;
  1103. yystacksize *= 2;
  1104. if (YYMAXDEPTH < yystacksize)
  1105. yystacksize = YYMAXDEPTH;
  1106. {
  1107. yytype_int16 *yyss1 = yyss;
  1108. union yyalloc *yyptr =
  1109. (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  1110. if (! yyptr)
  1111. goto yyexhaustedlab;
  1112. YYSTACK_RELOCATE (yyss_alloc, yyss);
  1113. YYSTACK_RELOCATE (yyvs_alloc, yyvs);
  1114. # undef YYSTACK_RELOCATE
  1115. if (yyss1 != yyssa)
  1116. YYSTACK_FREE (yyss1);
  1117. }
  1118. # endif
  1119. #endif /* no yyoverflow */
  1120. yyssp = yyss + yysize - 1;
  1121. yyvsp = yyvs + yysize - 1;
  1122. YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  1123. (unsigned long int) yystacksize));
  1124. if (yyss + yystacksize - 1 <= yyssp)
  1125. YYABORT;
  1126. }
  1127. YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  1128. if (yystate == YYFINAL)
  1129. YYACCEPT;
  1130. goto yybackup;
  1131. /*-----------.
  1132. | yybackup. |
  1133. `-----------*/
  1134. yybackup:
  1135. /* Do appropriate processing given the current state. Read a
  1136. lookahead token if we need one and don't already have one. */
  1137. /* First try to decide what to do without reference to lookahead token. */
  1138. yyn = yypact[yystate];
  1139. if (yyn == YYPACT_NINF)
  1140. goto yydefault;
  1141. /* Not known => get a lookahead token if don't already have one. */
  1142. /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
  1143. if (yychar == YYEMPTY)
  1144. {
  1145. YYDPRINTF ((stderr, "Reading a token: "));
  1146. yychar = YYLEX;
  1147. }
  1148. if (yychar <= YYEOF)
  1149. {
  1150. yychar = yytoken = YYEOF;
  1151. YYDPRINTF ((stderr, "Now at end of input.\n"));
  1152. }
  1153. else
  1154. {
  1155. yytoken = YYTRANSLATE (yychar);
  1156. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  1157. }
  1158. /* If the proper action on seeing token YYTOKEN is to reduce or to
  1159. detect an error, take that action. */
  1160. yyn += yytoken;
  1161. if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  1162. goto yydefault;
  1163. yyn = yytable[yyn];
  1164. if (yyn <= 0)
  1165. {
  1166. if (yyn == 0 || yyn == YYTABLE_NINF)
  1167. goto yyerrlab;
  1168. yyn = -yyn;
  1169. goto yyreduce;
  1170. }
  1171. /* Count tokens shifted since error; after three, turn off error
  1172. status. */
  1173. if (yyerrstatus)
  1174. yyerrstatus--;
  1175. /* Shift the lookahead token. */
  1176. YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  1177. /* Discard the shifted token. */
  1178. yychar = YYEMPTY;
  1179. yystate = yyn;
  1180. *++yyvsp = yylval;
  1181. goto yynewstate;
  1182. /*-----------------------------------------------------------.
  1183. | yydefault -- do the default action for the current state. |
  1184. `-----------------------------------------------------------*/
  1185. yydefault:
  1186. yyn = yydefact[yystate];
  1187. if (yyn == 0)
  1188. goto yyerrlab;
  1189. goto yyreduce;
  1190. /*-----------------------------.
  1191. | yyreduce -- Do a reduction. |
  1192. `-----------------------------*/
  1193. yyreduce:
  1194. /* yyn is the number of a rule to reduce with. */
  1195. yylen = yyr2[yyn];
  1196. /* If YYLEN is nonzero, implement the default value of the action:
  1197. `$$ = $1'.
  1198. Otherwise, the following line sets YYVAL to garbage.
  1199. This behavior is undocumented and Bison
  1200. users should not rely upon it. Assigning to YYVAL
  1201. unconditionally makes the parser a bit smaller, and it avoids a
  1202. GCC warning that YYVAL may be used uninitialized. */
  1203. yyval = yyvsp[1-yylen];
  1204. YY_REDUCE_PRINT (yyn);
  1205. switch (yyn)
  1206. {
  1207. case 4:
  1208. /* Line 1464 of yacc.c */
  1209. #line 58 "util/parse-events.y"
  1210. {
  1211. ABORT_ON(parse_events_modifier(list, (yyvsp[(2) - (2)].str)));
  1212. ;}
  1213. break;
  1214. case 13:
  1215. /* Line 1464 of yacc.c */
  1216. #line 74 "util/parse-events.y"
  1217. {
  1218. ABORT_ON(parse_events_add_pmu(list, idx, (yyvsp[(1) - (4)].str), (yyvsp[(3) - (4)].head)));
  1219. parse_events__free_terms((yyvsp[(3) - (4)].head));
  1220. ;}
  1221. break;
  1222. case 14:
  1223. /* Line 1464 of yacc.c */
  1224. #line 81 "util/parse-events.y"
  1225. {
  1226. int type = (yyvsp[(1) - (4)].num) >> 16;
  1227. int config = (yyvsp[(1) - (4)].num) & 255;
  1228. ABORT_ON(parse_events_add_numeric(list, idx, type, config, (yyvsp[(3) - (4)].head)));
  1229. parse_events__free_terms((yyvsp[(3) - (4)].head));
  1230. ;}
  1231. break;
  1232. case 15:
  1233. /* Line 1464 of yacc.c */
  1234. #line 90 "util/parse-events.y"
  1235. {
  1236. int type = (yyvsp[(1) - (2)].num) >> 16;
  1237. int config = (yyvsp[(1) - (2)].num) & 255;
  1238. ABORT_ON(parse_events_add_numeric(list, idx, type, config, NULL));
  1239. ;}
  1240. break;
  1241. case 16:
  1242. /* Line 1464 of yacc.c */
  1243. #line 99 "util/parse-events.y"
  1244. {
  1245. ABORT_ON(parse_events_add_cache(list, idx, (yyvsp[(1) - (5)].str), (yyvsp[(3) - (5)].str), (yyvsp[(5) - (5)].str)));
  1246. ;}
  1247. break;
  1248. case 17:
  1249. /* Line 1464 of yacc.c */
  1250. #line 104 "util/parse-events.y"
  1251. {
  1252. ABORT_ON(parse_events_add_cache(list, idx, (yyvsp[(1) - (3)].str), (yyvsp[(3) - (3)].str), NULL));
  1253. ;}
  1254. break;
  1255. case 18:
  1256. /* Line 1464 of yacc.c */
  1257. #line 109 "util/parse-events.y"
  1258. {
  1259. ABORT_ON(parse_events_add_cache(list, idx, (yyvsp[(1) - (1)].str), NULL, NULL));
  1260. ;}
  1261. break;
  1262. case 19:
  1263. /* Line 1464 of yacc.c */
  1264. #line 115 "util/parse-events.y"
  1265. {
  1266. ABORT_ON(parse_events_add_breakpoint(list, idx, (void *) (yyvsp[(2) - (5)].num), (yyvsp[(4) - (5)].str)));
  1267. ;}
  1268. break;
  1269. case 20:
  1270. /* Line 1464 of yacc.c */
  1271. #line 120 "util/parse-events.y"
  1272. {
  1273. ABORT_ON(parse_events_add_breakpoint(list, idx, (void *) (yyvsp[(2) - (3)].num), NULL));
  1274. ;}
  1275. break;
  1276. case 21:
  1277. /* Line 1464 of yacc.c */
  1278. #line 126 "util/parse-events.y"
  1279. {
  1280. ABORT_ON(parse_events_add_tracepoint(list, idx, (yyvsp[(1) - (3)].str), (yyvsp[(3) - (3)].str)));
  1281. ;}
  1282. break;
  1283. case 22:
  1284. /* Line 1464 of yacc.c */
  1285. #line 132 "util/parse-events.y"
  1286. {
  1287. ABORT_ON(parse_events_add_numeric(list, idx, (yyvsp[(1) - (3)].num), (yyvsp[(3) - (3)].num), NULL));
  1288. ;}
  1289. break;
  1290. case 23:
  1291. /* Line 1464 of yacc.c */
  1292. #line 138 "util/parse-events.y"
  1293. {
  1294. ABORT_ON(parse_events_add_numeric(list, idx, PERF_TYPE_RAW, (yyvsp[(1) - (1)].num), NULL));
  1295. ;}
  1296. break;
  1297. case 24:
  1298. /* Line 1464 of yacc.c */
  1299. #line 144 "util/parse-events.y"
  1300. {
  1301. struct list_head *head = (yyvsp[(1) - (3)].head);
  1302. struct parse_events__term *term = (yyvsp[(3) - (3)].term);
  1303. ABORT_ON(!head);
  1304. list_add_tail(&term->list, head);
  1305. (yyval.head) = (yyvsp[(1) - (3)].head);
  1306. ;}
  1307. break;
  1308. case 25:
  1309. /* Line 1464 of yacc.c */
  1310. #line 154 "util/parse-events.y"
  1311. {
  1312. struct list_head *head = malloc(sizeof(*head));
  1313. struct parse_events__term *term = (yyvsp[(1) - (1)].term);
  1314. ABORT_ON(!head);
  1315. INIT_LIST_HEAD(head);
  1316. list_add_tail(&term->list, head);
  1317. (yyval.head) = head;
  1318. ;}
  1319. break;
  1320. case 26:
  1321. /* Line 1464 of yacc.c */
  1322. #line 166 "util/parse-events.y"
  1323. {
  1324. struct parse_events__term *term;
  1325. ABORT_ON(parse_events__new_term(&term, PARSE_EVENTS__TERM_TYPE_STR,
  1326. (yyvsp[(1) - (3)].str), (yyvsp[(3) - (3)].str), 0));
  1327. (yyval.term) = term;
  1328. ;}
  1329. break;
  1330. case 27:
  1331. /* Line 1464 of yacc.c */
  1332. #line 175 "util/parse-events.y"
  1333. {
  1334. struct parse_events__term *term;
  1335. ABORT_ON(parse_events__new_term(&term, PARSE_EVENTS__TERM_TYPE_NUM,
  1336. (yyvsp[(1) - (3)].str), NULL, (yyvsp[(3) - (3)].num)));
  1337. (yyval.term) = term;
  1338. ;}
  1339. break;
  1340. case 28:
  1341. /* Line 1464 of yacc.c */
  1342. #line 184 "util/parse-events.y"
  1343. {
  1344. struct parse_events__term *term;
  1345. ABORT_ON(parse_events__new_term(&term, PARSE_EVENTS__TERM_TYPE_NUM,
  1346. (yyvsp[(1) - (1)].str), NULL, 1));
  1347. (yyval.term) = term;
  1348. ;}
  1349. break;
  1350. case 29:
  1351. /* Line 1464 of yacc.c */
  1352. #line 193 "util/parse-events.y"
  1353. {
  1354. struct parse_events__term *term;
  1355. ABORT_ON(parse_events__new_term(&term, (yyvsp[(1) - (3)].num), NULL, NULL, (yyvsp[(3) - (3)].num)));
  1356. (yyval.term) = term;
  1357. ;}
  1358. break;
  1359. case 30:
  1360. /* Line 1464 of yacc.c */
  1361. #line 201 "util/parse-events.y"
  1362. {
  1363. struct parse_events__term *term;
  1364. ABORT_ON(parse_events__new_term(&term, (yyvsp[(1) - (1)].num), NULL, NULL, 1));
  1365. (yyval.term) = term;
  1366. ;}
  1367. break;
  1368. /* Line 1464 of yacc.c */
  1369. #line 1634 "util/parse-events-bison.c"
  1370. default: break;
  1371. }
  1372. YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
  1373. YYPOPSTACK (yylen);
  1374. yylen = 0;
  1375. YY_STACK_PRINT (yyss, yyssp);
  1376. *++yyvsp = yyval;
  1377. /* Now `shift' the result of the reduction. Determine what state
  1378. that goes to, based on the state we popped back to and the rule
  1379. number reduced by. */
  1380. yyn = yyr1[yyn];
  1381. yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  1382. if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  1383. yystate = yytable[yystate];
  1384. else
  1385. yystate = yydefgoto[yyn - YYNTOKENS];
  1386. goto yynewstate;
  1387. /*------------------------------------.
  1388. | yyerrlab -- here on detecting error |
  1389. `------------------------------------*/
  1390. yyerrlab:
  1391. /* If not already recovering from an error, report this error. */
  1392. if (!yyerrstatus)
  1393. {
  1394. ++yynerrs;
  1395. #if ! YYERROR_VERBOSE
  1396. yyerror (list, idx, YY_("syntax error"));
  1397. #else
  1398. {
  1399. YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
  1400. if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
  1401. {
  1402. YYSIZE_T yyalloc = 2 * yysize;
  1403. if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
  1404. yyalloc = YYSTACK_ALLOC_MAXIMUM;
  1405. if (yymsg != yymsgbuf)
  1406. YYSTACK_FREE (yymsg);
  1407. yymsg = (char *) YYSTACK_ALLOC (yyalloc);
  1408. if (yymsg)
  1409. yymsg_alloc = yyalloc;
  1410. else
  1411. {
  1412. yymsg = yymsgbuf;
  1413. yymsg_alloc = sizeof yymsgbuf;
  1414. }
  1415. }
  1416. if (0 < yysize && yysize <= yymsg_alloc)
  1417. {
  1418. (void) yysyntax_error (yymsg, yystate, yychar);
  1419. yyerror (list, idx, yymsg);
  1420. }
  1421. else
  1422. {
  1423. yyerror (list, idx, YY_("syntax error"));
  1424. if (yysize != 0)
  1425. goto yyexhaustedlab;
  1426. }
  1427. }
  1428. #endif
  1429. }
  1430. if (yyerrstatus == 3)
  1431. {
  1432. /* If just tried and failed to reuse lookahead token after an
  1433. error, discard it. */
  1434. if (yychar <= YYEOF)
  1435. {
  1436. /* Return failure if at end of input. */
  1437. if (yychar == YYEOF)
  1438. YYABORT;
  1439. }
  1440. else
  1441. {
  1442. yydestruct ("Error: discarding",
  1443. yytoken, &yylval, list, idx);
  1444. yychar = YYEMPTY;
  1445. }
  1446. }
  1447. /* Else will try to reuse lookahead token after shifting the error
  1448. token. */
  1449. goto yyerrlab1;
  1450. /*---------------------------------------------------.
  1451. | yyerrorlab -- error raised explicitly by YYERROR. |
  1452. `---------------------------------------------------*/
  1453. yyerrorlab:
  1454. /* Pacify compilers like GCC when the user code never invokes
  1455. YYERROR and the label yyerrorlab therefore never appears in user
  1456. code. */
  1457. if (/*CONSTCOND*/ 0)
  1458. goto yyerrorlab;
  1459. /* Do not reclaim the symbols of the rule which action triggered
  1460. this YYERROR. */
  1461. YYPOPSTACK (yylen);
  1462. yylen = 0;
  1463. YY_STACK_PRINT (yyss, yyssp);
  1464. yystate = *yyssp;
  1465. goto yyerrlab1;
  1466. /*-------------------------------------------------------------.
  1467. | yyerrlab1 -- common code for both syntax error and YYERROR. |
  1468. `-------------------------------------------------------------*/
  1469. yyerrlab1:
  1470. yyerrstatus = 3; /* Each real token shifted decrements this. */
  1471. for (;;)
  1472. {
  1473. yyn = yypact[yystate];
  1474. if (yyn != YYPACT_NINF)
  1475. {
  1476. yyn += YYTERROR;
  1477. if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  1478. {
  1479. yyn = yytable[yyn];
  1480. if (0 < yyn)
  1481. break;
  1482. }
  1483. }
  1484. /* Pop the current state because it cannot handle the error token. */
  1485. if (yyssp == yyss)
  1486. YYABORT;
  1487. yydestruct ("Error: popping",
  1488. yystos[yystate], yyvsp, list, idx);
  1489. YYPOPSTACK (1);
  1490. yystate = *yyssp;
  1491. YY_STACK_PRINT (yyss, yyssp);
  1492. }
  1493. *++yyvsp = yylval;
  1494. /* Shift the error token. */
  1495. YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
  1496. yystate = yyn;
  1497. goto yynewstate;
  1498. /*-------------------------------------.
  1499. | yyacceptlab -- YYACCEPT comes here. |
  1500. `-------------------------------------*/
  1501. yyacceptlab:
  1502. yyresult = 0;
  1503. goto yyreturn;
  1504. /*-----------------------------------.
  1505. | yyabortlab -- YYABORT comes here. |
  1506. `-----------------------------------*/
  1507. yyabortlab:
  1508. yyresult = 1;
  1509. goto yyreturn;
  1510. #if !defined(yyoverflow) || YYERROR_VERBOSE
  1511. /*-------------------------------------------------.
  1512. | yyexhaustedlab -- memory exhaustion comes here. |
  1513. `-------------------------------------------------*/
  1514. yyexhaustedlab:
  1515. yyerror (list, idx, YY_("memory exhausted"));
  1516. yyresult = 2;
  1517. /* Fall through. */
  1518. #endif
  1519. yyreturn:
  1520. if (yychar != YYEMPTY)
  1521. yydestruct ("Cleanup: discarding lookahead",
  1522. yytoken, &yylval, list, idx);
  1523. /* Do not reclaim the symbols of the rule which action triggered
  1524. this YYABORT or YYACCEPT. */
  1525. YYPOPSTACK (yylen);
  1526. YY_STACK_PRINT (yyss, yyssp);
  1527. while (yyssp != yyss)
  1528. {
  1529. yydestruct ("Cleanup: popping",
  1530. yystos[*yyssp], yyvsp, list, idx);
  1531. YYPOPSTACK (1);
  1532. }
  1533. #ifndef yyoverflow
  1534. if (yyss != yyssa)
  1535. YYSTACK_FREE (yyss);
  1536. #endif
  1537. #if YYERROR_VERBOSE
  1538. if (yymsg != yymsgbuf)
  1539. YYSTACK_FREE (yymsg);
  1540. #endif
  1541. /* Make sure YYID is used. */
  1542. return YYID (yyresult);
  1543. }
  1544. /* Line 1684 of yacc.c */
  1545. #line 212 "util/parse-events.y"
  1546. void parse_events_error(struct list_head *list __used, int *idx __used,
  1547. char const *msg __used)
  1548. {
  1549. }