diff options
| author | Ingo Molnar <mingo@kernel.org> | 2015-09-29 03:43:46 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2015-09-29 03:43:46 -0400 |
| commit | 9c17dbc6eb73bdd8a6aaea1baefd37ff78d86148 (patch) | |
| tree | 5b303f98bc8898f26d2445138904f2fb14403a2d /tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | |
| parent | 18ab2cd3ee9d52dc64c5ae984146a261a328c4e8 (diff) | |
| parent | e637d17757a10732fa5d573c18f20b3cd4d31245 (diff) | |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
- Accept a zero --itrace period, meaning "as often as possible". In the case
of Intel PT that is the same as a period of 1 and a unit of 'instructions'
(i.e. --itrace=i1i). (Adrian Hunter)
- Harmonize itrace's synthesized callchains with the existing --max-stack
tool option. (Adrian Hunter)
- Allow time to be displayed in nanoseconds in 'perf script'. (Adrian Hunter)
- Fix potential infinite loop when handling Intel PT timestamps. (Adrian Hunter)
- Slighly improve Intel PT debug logging. (Adrian Hunter)
- Warn when AUX data has been lost, just like when processing PERF_RECORD_LOST.
(Adrian Hunter)
- Further document export-to-postgresql.py script. (Adrian Hunter)
- Add option to synthesize branch stack from auxtrace data. (Adrian Hunter)
- Use equivalent logic to avoid using dso->kernel. (Arnaldo Carvalho de Melo)
- Show proper error messages when parsing bad terms for hw/sw events. (He Kuang)
- Tracepoint event parsing improvements. (He Kuang)
- Store tracing mountpoint for better error message. (Jiri Olsa)
- Add fixdep to tools/build, bringing it closer to the kernel counterpart, from
where it is being lifted. (Jiri Olsa)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/util/intel-pt-decoder/intel-pt-decoder.c')
| -rw-r--r-- | tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c index 22ba50224319..9409d014b46c 100644 --- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | |||
| @@ -650,7 +650,7 @@ static int intel_pt_calc_cyc_cb(struct intel_pt_pkt_info *pkt_info) | |||
| 650 | if (data->from_mtc && timestamp < data->timestamp && | 650 | if (data->from_mtc && timestamp < data->timestamp && |
| 651 | data->timestamp - timestamp < decoder->tsc_slip) | 651 | data->timestamp - timestamp < decoder->tsc_slip) |
| 652 | return 1; | 652 | return 1; |
| 653 | while (timestamp < data->timestamp) | 653 | if (timestamp < data->timestamp) |
| 654 | timestamp += (1ULL << 56); | 654 | timestamp += (1ULL << 56); |
| 655 | if (pkt_info->last_packet_type != INTEL_PT_CYC) { | 655 | if (pkt_info->last_packet_type != INTEL_PT_CYC) { |
| 656 | if (data->from_mtc) | 656 | if (data->from_mtc) |
| @@ -1191,7 +1191,7 @@ static void intel_pt_calc_tsc_timestamp(struct intel_pt_decoder *decoder) | |||
| 1191 | timestamp); | 1191 | timestamp); |
| 1192 | timestamp = decoder->timestamp; | 1192 | timestamp = decoder->timestamp; |
| 1193 | } | 1193 | } |
| 1194 | while (timestamp < decoder->timestamp) { | 1194 | if (timestamp < decoder->timestamp) { |
| 1195 | intel_pt_log_to("Wraparound timestamp", timestamp); | 1195 | intel_pt_log_to("Wraparound timestamp", timestamp); |
| 1196 | timestamp += (1ULL << 56); | 1196 | timestamp += (1ULL << 56); |
| 1197 | decoder->tsc_timestamp = timestamp; | 1197 | decoder->tsc_timestamp = timestamp; |
