From e1b9c278f88a1bbf0046d7487135fc4a3e194d0f Mon Sep 17 00:00:00 2001 From: "Nakamura, Yuuichi" Date: Sun, 18 Oct 2020 23:16:39 +0900 Subject: [PATCH] Update trace command document --- Documentation/guides/tasktraceuser.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/guides/tasktraceuser.rst b/Documentation/guides/tasktraceuser.rst index 5dad737ab8..f80cfc192e 100644 --- a/Documentation/guides/tasktraceuser.rst +++ b/Documentation/guides/tasktraceuser.rst @@ -41,6 +41,7 @@ The following configurations are configurable parameters for trace. - Bit 0 = Enable instrumentation - Bit 1 = Enable syscall instrumentation - Bit 2 = Enable IRQ instrumentation + - Bit 3 = Enable collecting syscall arguments - ``CONFIG_SCHED_INSTRUMENTATION_NOTERAM_BUFSIZE`` @@ -232,7 +233,7 @@ The default value is given by the kernel configuration ``CONFIG_SCHED_INSTRUMENT .. code-block:: - trace mode [{+|-}{o|s|i}...] + trace mode [{+|-}{o|s|a|i}...] - ``+o`` : Enable overwrite mode. The trace buffer is a ring buffer and it can overwrite old data if no free space is available in the buffer. @@ -248,6 +249,11 @@ The default value is given by the kernel configuration ``CONFIG_SCHED_INSTRUMENT - ``-s`` : Disable system call trace. +- ``+a`` : Enable recording the system call arguments. + It records the arguments passed to the issued system call to the trace data. + +- ``-a`` : Disable recording the system call arguments. + - ``+i`` : Enable interrupt trace. It records the event of enter/leave interrupt handler which is occured while the tracing. All IRQs are recorded by default. ``trace irq`` command can filter the IRQs to be recorded. @@ -266,6 +272,7 @@ If no command parameters are specified, display the current mode as the follows. Overwrite : on (+o) Syscall trace : on (+s) Filtered Syscalls : 16 + Syscall trace with args : on (+a) IRQ trace : on (+i) Filtered IRQs : 2