parse-events.y (1d55e8ef340dad1ccd5aaf53071de41fc3d8dba4) | parse-events.y (10bf358a1b79fa1311eb05ee31f2cefdcad01741) |
---|---|
1%pure-parser 2%parse-param {void *_data} 3%parse-param {void *scanner} 4%lex-param {void* scanner} 5%locations 6 7%{ 8 --- 393 unchanged lines hidden (view full) --- 402PE_NAME ':' PE_NAME 403{ 404 struct tracepoint_name tracepoint = {$1, $3}; 405 406 $$ = tracepoint; 407} 408 409event_legacy_numeric: | 1%pure-parser 2%parse-param {void *_data} 3%parse-param {void *scanner} 4%lex-param {void* scanner} 5%locations 6 7%{ 8 --- 393 unchanged lines hidden (view full) --- 402PE_NAME ':' PE_NAME 403{ 404 struct tracepoint_name tracepoint = {$1, $3}; 405 406 $$ = tracepoint; 407} 408 409event_legacy_numeric: |
410PE_VALUE ':' PE_VALUE | 410PE_VALUE ':' PE_VALUE opt_event_config |
411{ 412 struct parse_events_evlist *data = _data; 413 struct list_head *list; 414 415 ALLOC_LIST(list); | 411{ 412 struct parse_events_evlist *data = _data; 413 struct list_head *list; 414 415 ALLOC_LIST(list); |
416 ABORT_ON(parse_events_add_numeric(data, list, (u32)$1, $3, NULL)); | 416 ABORT_ON(parse_events_add_numeric(data, list, (u32)$1, $3, $4)); 417 parse_events_terms__delete($4); |
417 $$ = list; 418} 419 420event_legacy_raw: | 418 $$ = list; 419} 420 421event_legacy_raw: |
421PE_RAW | 422PE_RAW opt_event_config |
422{ 423 struct parse_events_evlist *data = _data; 424 struct list_head *list; 425 426 ALLOC_LIST(list); | 423{ 424 struct parse_events_evlist *data = _data; 425 struct list_head *list; 426 427 ALLOC_LIST(list); |
427 ABORT_ON(parse_events_add_numeric(data, list, PERF_TYPE_RAW, $1, NULL)); | 428 ABORT_ON(parse_events_add_numeric(data, list, PERF_TYPE_RAW, $1, $2)); 429 parse_events_terms__delete($2); |
428 $$ = list; 429} 430 431event_bpf_file: 432PE_BPF_OBJECT 433{ 434 struct parse_events_evlist *data = _data; 435 struct parse_events_error *error = data->error; --- 142 unchanged lines hidden --- | 430 $$ = list; 431} 432 433event_bpf_file: 434PE_BPF_OBJECT 435{ 436 struct parse_events_evlist *data = _data; 437 struct parse_events_error *error = data->error; --- 142 unchanged lines hidden --- |