mirror of
https://github.com/crash-utility/crash
synced 2025-02-24 17:36: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
9
x86_64.c
9
x86_64.c
@ -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