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:
Dave Anderson 2014-03-18 16:31:02 -04:00
parent 32aa6bbbf7
commit 2312a65fcb

View File

@ -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;
}