mirror of
https://github.com/crash-utility/crash
synced 2025-02-24 09:26:50 +00:00
If the first assembly language instruction in an X86_64 function is
"nopl 0x0(%rax,%rax,1)" or "data32 data32 data32 xchg %ax,%ax", which are generated when the ftrace facility is configured, the X86_64 "dis" command will append "[FTRACE NOP]" to the line. (anderson@redhat.com)
This commit is contained in:
parent
32aa6bbbf7
commit
2312a65fcb
11
x86_64.c
11
x86_64.c
@ -4762,7 +4762,7 @@ x86_64_dis_filter(ulong vaddr, char *inbuf, unsigned int output_radix)
|
||||
* (on alpha -- not necessarily seen on x86_64) so this routine both fixes the
|
||||
* references as well as imposing the current output radix on the translations.
|
||||
*/
|
||||
console("IN: %s", inbuf);
|
||||
console(" IN: %s", inbuf);
|
||||
|
||||
colon = strstr(inbuf, ":");
|
||||
|
||||
@ -4814,7 +4814,14 @@ x86_64_dis_filter(ulong vaddr, char *inbuf, unsigned int output_radix)
|
||||
}
|
||||
}
|
||||
|
||||
console(" %s", inbuf);
|
||||
if (value_symbol(vaddr) &&
|
||||
(strstr(inbuf, "nopl 0x0(%rax,%rax,1)") ||
|
||||
strstr(inbuf, "data32 data32 data32 xchg %ax,%ax"))) {
|
||||
strip_line_end(inbuf);
|
||||
strcat(inbuf, " [FTRACE NOP]\n");
|
||||
}
|
||||
|
||||
console("OUT: %s", inbuf);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user