diff options
| -rw-r--r-- | tools/perf/builtin-script.c | 4 | ||||
| -rw-r--r-- | tools/perf/util/intel-bts.c | 2 | ||||
| -rw-r--r-- | tools/perf/util/intel-pt.c | 2 | ||||
| -rw-r--r-- | tools/perf/util/parse-events.y | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index eb51325e8ad9..284a76e04628 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
| @@ -768,8 +768,8 @@ static int process_exit_event(struct perf_tool *tool, | |||
| 768 | if (!evsel->attr.sample_id_all) { | 768 | if (!evsel->attr.sample_id_all) { |
| 769 | sample->cpu = 0; | 769 | sample->cpu = 0; |
| 770 | sample->time = 0; | 770 | sample->time = 0; |
| 771 | sample->tid = event->comm.tid; | 771 | sample->tid = event->fork.tid; |
| 772 | sample->pid = event->comm.pid; | 772 | sample->pid = event->fork.pid; |
| 773 | } | 773 | } |
| 774 | print_sample_start(sample, thread, evsel); | 774 | print_sample_start(sample, thread, evsel); |
| 775 | perf_event__fprintf(event, stdout); | 775 | perf_event__fprintf(event, stdout); |
diff --git a/tools/perf/util/intel-bts.c b/tools/perf/util/intel-bts.c index ea768625ab5b..eb0e7f8bf515 100644 --- a/tools/perf/util/intel-bts.c +++ b/tools/perf/util/intel-bts.c | |||
| @@ -623,7 +623,7 @@ static int intel_bts_process_event(struct perf_session *session, | |||
| 623 | if (err) | 623 | if (err) |
| 624 | return err; | 624 | return err; |
| 625 | if (event->header.type == PERF_RECORD_EXIT) { | 625 | if (event->header.type == PERF_RECORD_EXIT) { |
| 626 | err = intel_bts_process_tid_exit(bts, event->comm.tid); | 626 | err = intel_bts_process_tid_exit(bts, event->fork.tid); |
| 627 | if (err) | 627 | if (err) |
| 628 | return err; | 628 | return err; |
| 629 | } | 629 | } |
diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index bb41c20e6005..535d86f8e4d1 100644 --- a/tools/perf/util/intel-pt.c +++ b/tools/perf/util/intel-pt.c | |||
| @@ -1494,7 +1494,7 @@ static int intel_pt_process_event(struct perf_session *session, | |||
| 1494 | if (pt->timeless_decoding) { | 1494 | if (pt->timeless_decoding) { |
| 1495 | if (event->header.type == PERF_RECORD_EXIT) { | 1495 | if (event->header.type == PERF_RECORD_EXIT) { |
| 1496 | err = intel_pt_process_timeless_queues(pt, | 1496 | err = intel_pt_process_timeless_queues(pt, |
| 1497 | event->comm.tid, | 1497 | event->fork.tid, |
| 1498 | sample->time); | 1498 | sample->time); |
| 1499 | } | 1499 | } |
| 1500 | } else if (timestamp) { | 1500 | } else if (timestamp) { |
diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y index 591905a02b92..9cd70819c795 100644 --- a/tools/perf/util/parse-events.y +++ b/tools/perf/util/parse-events.y | |||
| @@ -255,7 +255,7 @@ PE_PMU_EVENT_PRE '-' PE_PMU_EVENT_SUF sep_dc | |||
| 255 | list_add_tail(&term->list, head); | 255 | list_add_tail(&term->list, head); |
| 256 | 256 | ||
| 257 | ALLOC_LIST(list); | 257 | ALLOC_LIST(list); |
| 258 | ABORT_ON(parse_events_add_pmu(list, &data->idx, "cpu", head)); | 258 | ABORT_ON(parse_events_add_pmu(data, list, "cpu", head)); |
| 259 | parse_events__free_terms(head); | 259 | parse_events__free_terms(head); |
| 260 | $$ = list; | 260 | $$ = list; |
| 261 | } | 261 | } |
