]> bbs.cooldavid.org Git - net-next-2.6.git/commit
perf debug: fix hex dump partial final line
authorAndy Isaacson <adi@hexapodia.org>
Sat, 12 Jun 2010 02:44:04 +0000 (19:44 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Jun 2010 16:20:50 +0000 (13:20 -0300)
commit84c104ad429c8a474b93dd374815d1c238032fa8
tree15727f86d7b135ea01fbc7008e62416f5767904f
parent9ed7e1b85cd55dc46cb9410a23086bdaa2ff3eb9
perf debug: fix hex dump partial final line

The loop counter math in trace_event was much more complicated than
necessary, resulting in incorrectly decoding the human-readable
portion of the partial last line of hexdump in "perf trace -D" output:

.  0020:  00 00 00 00 00 00 00 00 2f 73 62 69 6e 2f 69 6e  ......../sbin/i
.  0030:  69 74 00 00 00 00 00 00                          /sbin/i

With this fixed (and simpler!) code, we get the correct output:

.  0020:  00 00 00 00 00 00 00 00 2f 73 62 69 6e 2f 69 6e  ......../sbin/in
.  0030:  69 74 00 00 00 00 00 00                          it......

Cc: Ingo Molnar <mingo@elte.hu>
LPU-Reference: <20100612024404.GA24469@hexapodia.org>
Signed-off-by: Andy Isaacson <adi@hexapodia.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/debug.c