Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1565267
| From | Andi Kleen <andi@firstfloor.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/5] perf, tools, script: Add support for printing assembler |
| Date | 2017-01-23 21:00 +0100 |
| Message-ID | <t2SWu-2b0-15@gated-at.bofh.it> (permalink) |
| References | <t1a1r-3mo-3@gated-at.bofh.it> <t1a1s-3mo-15@gated-at.bofh.it> <t2SMN-26Q-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> Do you know if there is any tool comparing the output of objdump -d to what is > produced by a similar xed based tool? I'm not aware of such a tool, but could be written using the "xed" tool in the xed distribution. However I would trust xed over objdump, it is used widely in Intel tools with likely far more testing than binutils > 4b8506 jz 0x4b84d0 <perf_evsel__enable+0x70> 74 c8 je 4b84d0 <perf_evsel__enable+0x70> > 4b84d0 add $0x1, %r14 add $0x1,%r14 > 4b84d4 cmp %r14d, %ebx cmp %r14d,%ebx > 4b84d7 jle 0x4b8530 <perf_evsel__enable+0xd0> jle 4b8530 <perf_evsel__enable+0xd0> > 4b8530 add $0x1, %r12 add $0x1,%r12 > 4b8534 cmp %r12d, %r13d cmp %r12d,%r13d > 4b8537 jnle 0x4b84c2 <perf_evsel__enable+0x62> 7f 89 jg 4b84c2 <perf_evsel__enable+0x62> > 4b84c2 xor %r14d, %r14d xor %r14d,%r14d > 4b84c5 test %ebx, %ebx test %ebx,%ebx > 4b84c7 jnle 0x4b84d9 <perf_evsel__enable+0x79> 7f 10 jg 4b84d9 <perf_evsel__enable+0x79> > 4b84d9 movq 0x90(%r15), %rax 49 8b 87 90 00 00 00 mov 0x90(%r15),%rax > 4b84e0 mov %r12, %rdx mov %r12,%rdx > 4b84e3 mov %r14, %rcx mov %r14,%rcx > 4b84e6 mov $0x2400, %esi mov $0x2400,%esi > 4b84eb imulq (%rax), %rdx 48 0f af 10 imul (%rax),%rdx > 4b84ef imulq 0x8(%rax), %rcx 48 0f af 48 08 imul 0x8(%rax),%rcx > 4b84f4 add %rdx, %rax add %rdx,%rax > 4b84f7 xor %edx, %edx xor %edx,%edx > 4b84f9 movl 0x18(%rcx,%rax,1), %edi 8b 7c 01 18 mov 0x18(%rcx,%rax,1),%edi > 4b84fd xor %eax, %eax xor %eax,%eax > 4b84ff callq 0x42d990 <ioctl@plt> callq 42d990 <ioctl@plt> > 4b8504 test %eax, %eax test %eax,%eax > 4b8506 jz 0x4b84d0 <perf_evsel__enable+0x70> 74 c8 je 4b84d0 <perf_evsel__enable+0x70> Yes all the differences are ok. It's just synonyms of the instructions. -Andi
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
New attempt at adding an disassembler to perf Andi Kleen <andi@firstfloor.org> - 2017-01-19 02:50 +0100
[PATCH 4/5] perf, tools, script: Add support for printing assembler Andi Kleen <andi@firstfloor.org> - 2017-01-19 02:50 +0100
Re: [PATCH 4/5] perf, tools, script: Add support for printing assembler Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-01-23 20:50 +0100
Re: [PATCH 4/5] perf, tools, script: Add support for printing assembler Andi Kleen <andi@firstfloor.org> - 2017-01-23 21:00 +0100
Re: [PATCH 4/5] perf, tools, script: Add support for printing assembler Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-01-23 21:10 +0100
[PATCH 3/5] perf, tools: Add disassembler for x86 using the XED library Andi Kleen <andi@firstfloor.org> - 2017-01-19 02:50 +0100
[PATCH 1/5] perf, tools: Add probing for xed Andi Kleen <andi@firstfloor.org> - 2017-01-19 02:50 +0100
[PATCH 5/5] perf, tools, script: Add brstackasm output for branch stacks Andi Kleen <andi@firstfloor.org> - 2017-01-19 02:50 +0100
Re: [PATCH 5/5] perf, tools, script: Add brstackasm output for branch stacks Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-01-24 20:00 +0100
Re: New attempt at adding an disassembler to perf Jiri Olsa <jolsa@redhat.com> - 2017-01-19 16:40 +0100
Re: New attempt at adding an disassembler to perf Andi Kleen <andi@firstfloor.org> - 2017-01-19 18:00 +0100
Re: New attempt at adding an disassembler to perf Jiri Olsa <jolsa@redhat.com> - 2017-01-20 14:30 +0100
csiph-web