parse-events.y (2aadca4b35427a7c65acc6aa415b38758128b22c) parse-events.y (52c7b4d3f9c12c44b8392765c73cced3be99cec6)
1%define api.pure full
2%parse-param {void *_parse_state}
3%parse-param {void *scanner}
4%lex-param {void* scanner}
5%locations
6
7%{
8

--- 313 unchanged lines hidden (view full) ---

322 if (parse_events__filter_pmu(parse_state, pmu))
323 continue;
324
325 if (!strncmp(name, "uncore_", 7) &&
326 strncmp($1, "uncore_", 7))
327 name += 7;
328 if (!perf_pmu__match(pattern, name, $1) ||
329 !perf_pmu__match(pattern, pmu->alias_name, $1)) {
1%define api.pure full
2%parse-param {void *_parse_state}
3%parse-param {void *scanner}
4%lex-param {void* scanner}
5%locations
6
7%{
8

--- 313 unchanged lines hidden (view full) ---

322 if (parse_events__filter_pmu(parse_state, pmu))
323 continue;
324
325 if (!strncmp(name, "uncore_", 7) &&
326 strncmp($1, "uncore_", 7))
327 name += 7;
328 if (!perf_pmu__match(pattern, name, $1) ||
329 !perf_pmu__match(pattern, pmu->alias_name, $1)) {
330 bool auto_merge_stats = perf_pmu__auto_merge_stats(pmu);
331
330 if (parse_events_copy_term_list(orig_terms, &terms))
331 CLEANUP_YYABORT;
332 if (!parse_events_add_pmu(parse_state, list, pmu->name, terms,
332 if (parse_events_copy_term_list(orig_terms, &terms))
333 CLEANUP_YYABORT;
334 if (!parse_events_add_pmu(parse_state, list, pmu->name, terms,
333 /*auto_merge_stats=*/true)) {
335 auto_merge_stats)) {
334 ok++;
335 parse_state->wild_card_pmus = true;
336 }
337 parse_events_terms__delete(terms);
338 }
339 }
340
341 if (!ok) {

--- 647 unchanged lines hidden ---
336 ok++;
337 parse_state->wild_card_pmus = true;
338 }
339 parse_events_terms__delete(terms);
340 }
341 }
342
343 if (!ok) {

--- 647 unchanged lines hidden ---