btrace: Enable auxiliary instructions in record function-call-history.

Print the auxiliary data when a btrace_insn of type BTRACE_INSN_AUX
is encountered in the function-call-history.  Printing is
active by default, it can be silenced with the /a modifier.

This patch is in preparation for the new ptwrite feature, which is based on
auxiliary instructions.

Approved-By: Markus Metzger <markus.t.metzger@intel.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
This commit is contained in:
Felix Willgerodt
2018-06-07 10:38:10 +02:00
parent 72bb34e655
commit 4195751c5c
6 changed files with 52 additions and 6 deletions

View File

@@ -664,6 +664,9 @@ ftrace_update_insns (struct btrace_function *bfun, const btrace_insn &insn)
{
bfun->insn.push_back (insn);
if (insn.iclass == BTRACE_INSN_AUX)
bfun->flags |= BFUN_CONTAINS_AUX;
if (record_debug > 1)
ftrace_debug (bfun, "update insn");
}