Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1459318 > unrolled thread

Re: [PATCH] perf intel-pt: Fix ip compression

Started byAdrian Hunter <adrian.hunter@intel.com>
First post2016-08-10 20:10 +0200
Last post2016-08-10 21:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] perf intel-pt: Fix ip compression Adrian Hunter <adrian.hunter@intel.com> - 2016-08-10 20:10 +0200
    Re: [PATCH] perf intel-pt: Fix ip compression Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-08-10 21:10 +0200

#1459318 — Re: [PATCH] perf intel-pt: Fix ip compression

FromAdrian Hunter <adrian.hunter@intel.com>
Date2016-08-10 20:10 +0200
SubjectRe: [PATCH] perf intel-pt: Fix ip compression
Message-ID<s4G70-8uN-65@gated-at.bofh.it>
On 20/07/16 12:00, Adrian Hunter wrote:
> June 2015 Intel SDM introduced IP Compression types 4 and 6. Refer section
> 36.4.2.2 Target IP (TIP) Packet - IP Compression.
> 
> Existing Intel PT packet decoder did not support type 4, and got type 6
> wrong.  Because type 3 and type 4 have the same number of bytes, the packet
> 'count' has been changed from being the number of ip bytes to being the
> type code.  That allows the Intel PT decoder to correctly decide whether to
> sign-extend or use the last ip.  However that also meant the code had to be
> adjusted in a number of places.
> 
> Currently hardware is not using the new compression types, so this fix has
> no effect on existing hardware.
> 
> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
> ---
>  .../perf/util/intel-pt-decoder/intel-pt-decoder.c  | 44 +++++++++++-----------
>  .../util/intel-pt-decoder/intel-pt-pkt-decoder.c   | 24 ++++++++----
>  2 files changed, 40 insertions(+), 28 deletions(-)

Hi

This is outstanding but still applies.

Regards
Adrian

[toc] | [next] | [standalone]


#1459609

FromArnaldo Carvalho de Melo <acme@kernel.org>
Date2016-08-10 21:10 +0200
Message-ID<s4H36-I0-113@gated-at.bofh.it>
In reply to#1459318
Em Wed, Aug 10, 2016 at 11:32:21AM +0300, Adrian Hunter escreveu:
> On 20/07/16 12:00, Adrian Hunter wrote:
> > June 2015 Intel SDM introduced IP Compression types 4 and 6. Refer section
> > 36.4.2.2 Target IP (TIP) Packet - IP Compression.

> > Existing Intel PT packet decoder did not support type 4, and got type 6
> > wrong.  Because type 3 and type 4 have the same number of bytes, the packet
> > 'count' has been changed from being the number of ip bytes to being the
> > type code.  That allows the Intel PT decoder to correctly decide whether to
> > sign-extend or use the last ip.  However that also meant the code had to be
> > adjusted in a number of places.
> > 
> > Currently hardware is not using the new compression types, so this fix has
> > no effect on existing hardware.
> > 
> > Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
> > ---
> >  .../perf/util/intel-pt-decoder/intel-pt-decoder.c  | 44 +++++++++++-----------
> >  .../util/intel-pt-decoder/intel-pt-pkt-decoder.c   | 24 ++++++++----
> >  2 files changed, 40 insertions(+), 28 deletions(-)
 
> Hi
 
> This is outstanding but still applies.

Oops, will get that merged, sorry for the delay.

- Arnaldo

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web