* [PATCH] tracing: remove mentioning of legacy latency_trace file from documentation @ 2009-08-31 18:50 Albin Tonnerre 2009-08-31 19:08 ` Frederic Weisbecker 2009-08-31 19:19 ` [PATCH] tracing: remove " Frederic Weisbecker 0 siblings, 2 replies; 8+ messages in thread From: Albin Tonnerre @ 2009-08-31 18:50 UTC (permalink / raw) To: srostedt; +Cc: linux-kernel, mingo, Albin Tonnerre The latency_trace file got removed a while back by commit 886b5b73d71e4027d7dc6c14f5f7ab102201ea6b. This patch fixes the documentation to stop mentioning it. Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com> --- Documentation/trace/ftrace.txt | 55 +++++++++++++++++---------------------- 1 files changed, 24 insertions(+), 31 deletions(-) diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt index a39b3c7..3f058ab 100644 --- a/Documentation/trace/ftrace.txt +++ b/Documentation/trace/ftrace.txt @@ -85,26 +85,19 @@ of ftrace. Here is a list of some of the key files: This file holds the output of the trace in a human readable format (described below). - latency_trace: - - This file shows the same trace but the information - is organized more to display possible latencies - in the system (described below). - trace_pipe: The output is the same as the "trace" file but this file is meant to be streamed with live tracing. - Reads from this file will block until new data - is retrieved. Unlike the "trace" and "latency_trace" - files, this file is a consumer. This means reading - from this file causes sequential reads to display - more current data. Once data is read from this - file, it is consumed, and will not be read - again with a sequential read. The "trace" and - "latency_trace" files are static, and if the - tracer is not adding more data, they will display - the same information every time they are read. + Reads from this file will block until new data is + retrieved. Unlike the "trace" file, this file is a + consumer. This means reading from this file causes + sequential reads to display more current data. Once + data is read from this file, it is consumed, and + will not be read again with a sequential read. The + "trace" file is static, and if the tracer is not + adding more data,they will display the same + information every time they are read. trace_options: @@ -117,10 +110,10 @@ of ftrace. Here is a list of some of the key files: Some of the tracers record the max latency. For example, the time interrupts are disabled. This time is saved in this file. The max trace - will also be stored, and displayed by either - "trace" or "latency_trace". A new max trace will - only be recorded if the latency is greater than - the value in this file. (in microseconds) + will also be stored, and displayed by "trace". + A new max trace will only be recorded if the + latency is greater than the value in this + file. (in microseconds) buffer_size_kb: @@ -209,8 +202,7 @@ Here is the list of current tracers that may be configured. Traces the areas that disable interrupts and saves the trace with the longest max latency. See tracing_max_latency. When a new max is recorded, - it replaces the old trace. It is best to view this - trace via the latency_trace file. + it replaces the old trace. "preemptoff" @@ -307,8 +299,8 @@ the lowest priority thread (pid 0). Latency trace format -------------------- -For traces that display latency times, the latency_trace file -gives somewhat more information to see why a latency happened. +For traces that display latency times, the trace file gives +somewhat more information to see why a latency happened. Here is a typical trace. # tracer: irqsoff @@ -382,7 +374,7 @@ The above is mostly meaningful for kernel developers. time: This differs from the trace file output. The trace file output includes an absolute timestamp. The timestamp used by the - latency_trace file is relative to the start of the trace. + trace file is relative to the start of the trace. delay: This is just to help catch your eye a bit better. And needs to be fixed to be only relative to the same CPU. @@ -440,7 +432,8 @@ Here are the available options: sym-addr: bash-4000 [01] 1477.606694: simple_strtoul <c0339346> - verbose - This deals with the latency_trace file. + verbose - This deals with the trace file when it + displays lantecy times. bash 4000 1 0 00000000 00010a95 [58127d26] 1720.415ms \ (+0.000ms): simple_strtoul (strict_strtoul) @@ -472,7 +465,7 @@ Here are the available options: the app is no longer running The lookup is performed when you read - trace,trace_pipe,latency_trace. Example: + trace,trace_pipe. Example: a.out-1623 [000] 40874.465068: /root/a.out[+0x480] <-/root/a.out[+0 x494] <- /root/a.out[+0x4a8] <- /lib/libc-2.7.so[+0x1e1a6] @@ -601,7 +594,7 @@ an example: # ls -ltr [...] # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: irqsoff # irqsoff latency trace v1.1.5 on 2.6.26 @@ -708,7 +701,7 @@ is much like the irqsoff tracer. # ls -ltr [...] # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: preemptoff # preemptoff latency trace v1.1.5 on 2.6.26-rc8 @@ -855,7 +848,7 @@ tracers. # ls -ltr [...] # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: preemptirqsoff # preemptirqsoff latency trace v1.1.5 on 2.6.26-rc8 @@ -1016,7 +1009,7 @@ Instead of performing an 'ls', we will run 'sleep 1' under # echo 1 > tracing_enabled # chrt -f 5 sleep 1 # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: wakeup # wakeup latency trace v1.1.5 on 2.6.26-rc8 -- 1.6.3.3 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] tracing: remove mentioning of legacy latency_trace file from documentation 2009-08-31 18:50 [PATCH] tracing: remove mentioning of legacy latency_trace file from documentation Albin Tonnerre @ 2009-08-31 19:08 ` Frederic Weisbecker 2009-08-31 19:46 ` Albin Tonnerre 2009-08-31 20:40 ` [PATCH v2] " Albin Tonnerre 2009-08-31 19:19 ` [PATCH] tracing: remove " Frederic Weisbecker 1 sibling, 2 replies; 8+ messages in thread From: Frederic Weisbecker @ 2009-08-31 19:08 UTC (permalink / raw) To: Albin Tonnerre; +Cc: srostedt, linux-kernel, mingo On Mon, Aug 31, 2009 at 08:50:35PM +0200, Albin Tonnerre wrote: > The latency_trace file got removed a while back by commit > 886b5b73d71e4027d7dc6c14f5f7ab102201ea6b. This patch fixes the > documentation to stop mentioning it. > > Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com> > --- > Documentation/trace/ftrace.txt | 55 +++++++++++++++++---------------------- > 1 files changed, 24 insertions(+), 31 deletions(-) > > diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt > index a39b3c7..3f058ab 100644 > --- a/Documentation/trace/ftrace.txt > +++ b/Documentation/trace/ftrace.txt > @@ -85,26 +85,19 @@ of ftrace. Here is a list of some of the key files: > This file holds the output of the trace in a human > readable format (described below). > > - latency_trace: > - > - This file shows the same trace but the information > - is organized more to display possible latencies > - in the system (described below). > - > trace_pipe: > > The output is the same as the "trace" file but this > file is meant to be streamed with live tracing. > - Reads from this file will block until new data > - is retrieved. Unlike the "trace" and "latency_trace" > - files, this file is a consumer. This means reading > - from this file causes sequential reads to display > - more current data. Once data is read from this > - file, it is consumed, and will not be read > - again with a sequential read. The "trace" and > - "latency_trace" files are static, and if the > - tracer is not adding more data, they will display > - the same information every time they are read. > + Reads from this file will block until new data is > + retrieved. Unlike the "trace" file, this file is a > + consumer. This means reading from this file causes > + sequential reads to display more current data. Once > + data is read from this file, it is consumed, and > + will not be read again with a sequential read. The > + "trace" file is static, and if the tracer is not > + adding more data,they will display the same > + information every time they are read. > > trace_options: > > @@ -117,10 +110,10 @@ of ftrace. Here is a list of some of the key files: > Some of the tracers record the max latency. > For example, the time interrupts are disabled. > This time is saved in this file. The max trace > - will also be stored, and displayed by either > - "trace" or "latency_trace". A new max trace will > - only be recorded if the latency is greater than > - the value in this file. (in microseconds) > + will also be stored, and displayed by "trace". > + A new max trace will only be recorded if the > + latency is greater than the value in this > + file. (in microseconds) > > buffer_size_kb: > > @@ -209,8 +202,7 @@ Here is the list of current tracers that may be configured. > Traces the areas that disable interrupts and saves > the trace with the longest max latency. > See tracing_max_latency. When a new max is recorded, > - it replaces the old trace. It is best to view this > - trace via the latency_trace file. > + it replaces the old trace. > > "preemptoff" > > @@ -307,8 +299,8 @@ the lowest priority thread (pid 0). > Latency trace format > -------------------- > > -For traces that display latency times, the latency_trace file > -gives somewhat more information to see why a latency happened. > +For traces that display latency times, the trace file gives > +somewhat more information to see why a latency happened. Hmm, now that the latency_trace file has disappeared, this sentence doesn't make sens anymore. The trace file gives more information about latency than...? :-) Actually the latency format still exists. It's toggable through the latency-format trace option: echo latency-format > trace_options I guess this documentation should actually not make the latency format documentation disappear but actually mirror the moving from a file to an option. > Here is a typical trace. > > # tracer: irqsoff > @@ -382,7 +374,7 @@ The above is mostly meaningful for kernel developers. > > time: This differs from the trace file output. The trace file output > includes an absolute timestamp. The timestamp used by the > - latency_trace file is relative to the start of the trace. > + trace file is relative to the start of the trace. This is wrong. The timestamp in the trace file is absolute (relative to the boot). Please correct it according to the latency-format option. > delay: This is just to help catch your eye a bit better. And > needs to be fixed to be only relative to the same CPU. > @@ -440,7 +432,8 @@ Here are the available options: > sym-addr: > bash-4000 [01] 1477.606694: simple_strtoul <c0339346> > > - verbose - This deals with the latency_trace file. > + verbose - This deals with the trace file when it > + displays lantecy times. "latency" Is it true when latency-format is not selected? Thanks. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] tracing: remove mentioning of legacy latency_trace file from documentation 2009-08-31 19:08 ` Frederic Weisbecker @ 2009-08-31 19:46 ` Albin Tonnerre 2009-08-31 20:40 ` [PATCH v2] " Albin Tonnerre 1 sibling, 0 replies; 8+ messages in thread From: Albin Tonnerre @ 2009-08-31 19:46 UTC (permalink / raw) To: Frederic Weisbecker; +Cc: srostedt, linux-kernel, mingo On Mon, Aug 31, 2009 at 09:08:54PM +0200, Frederic Weisbecker wrote : > On Mon, Aug 31, 2009 at 08:50:35PM +0200, Albin Tonnerre wrote: > > > > @@ -307,8 +299,8 @@ the lowest priority thread (pid 0). > > Latency trace format > > -------------------- > > > > -For traces that display latency times, the latency_trace file > > -gives somewhat more information to see why a latency happened. > > +For traces that display latency times, the trace file gives > > +somewhat more information to see why a latency happened. > > > > Hmm, now that the latency_trace file has disappeared, this sentence > doesn't make sens anymore. > The trace file gives more information about latency than...? :-) > > Actually the latency format still exists. > It's toggable through the latency-format trace option: > > echo latency-format > trace_options > > I guess this documentation should actually not make the latency > format documentation disappear but actually mirror the moving from > a file to an option. Right, I'll do that. Actually this patch doesn't really make it disappear, as the format is still described here. I agree that the above paragraph should be rephrased to mention that i's available through the latency-format option. > > delay: This is just to help catch your eye a bit better. And > > needs to be fixed to be only relative to the same CPU. > > @@ -440,7 +432,8 @@ Here are the available options: > > sym-addr: > > bash-4000 [01] 1477.606694: simple_strtoul <c0339346> > > > > - verbose - This deals with the latency_trace file. > > + verbose - This deals with the trace file when it > > + displays lantecy times. > > > "latency" thanks > Is it true when latency-format is not selected? No, it only applies when latency-format is selected. Regards, -- Albin Tonnerre, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] tracing: remove mentioning of legacy latency_trace file from documentation 2009-08-31 19:08 ` Frederic Weisbecker 2009-08-31 19:46 ` Albin Tonnerre @ 2009-08-31 20:40 ` Albin Tonnerre 2009-09-04 15:41 ` Frederic Weisbecker 2009-09-06 4:36 ` [tip:tracing/core] tracing: Remove " tip-bot for Albin Tonnerre 1 sibling, 2 replies; 8+ messages in thread From: Albin Tonnerre @ 2009-08-31 20:40 UTC (permalink / raw) To: srostedt; +Cc: linux-kernel, mingo, Frederic Weisbecker The latency_trace file got removed a while back by commit 886b5b73d71e4027d7dc6c14f5f7ab102201ea6b. This patch fixes the documentation to stop mentioning it. Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com> --- Changes since v1: - mention that the trace format is configurable through the latency-format option - Fix a couple mistakes related to the timestamps Documentation/trace/ftrace.txt | 64 ++++++++++++++++++++-------------------- 1 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt index a39b3c7..5167814 100644 --- a/Documentation/trace/ftrace.txt +++ b/Documentation/trace/ftrace.txt @@ -85,26 +85,19 @@ of ftrace. Here is a list of some of the key files: This file holds the output of the trace in a human readable format (described below). - latency_trace: - - This file shows the same trace but the information - is organized more to display possible latencies - in the system (described below). - trace_pipe: The output is the same as the "trace" file but this file is meant to be streamed with live tracing. - Reads from this file will block until new data - is retrieved. Unlike the "trace" and "latency_trace" - files, this file is a consumer. This means reading - from this file causes sequential reads to display - more current data. Once data is read from this - file, it is consumed, and will not be read - again with a sequential read. The "trace" and - "latency_trace" files are static, and if the - tracer is not adding more data, they will display - the same information every time they are read. + Reads from this file will block until new data is + retrieved. Unlike the "trace" file, this file is a + consumer. This means reading from this file causes + sequential reads to display more current data. Once + data is read from this file, it is consumed, and + will not be read again with a sequential read. The + "trace" file is static, and if the tracer is not + adding more data,they will display the same + information every time they are read. trace_options: @@ -117,10 +110,10 @@ of ftrace. Here is a list of some of the key files: Some of the tracers record the max latency. For example, the time interrupts are disabled. This time is saved in this file. The max trace - will also be stored, and displayed by either - "trace" or "latency_trace". A new max trace will - only be recorded if the latency is greater than - the value in this file. (in microseconds) + will also be stored, and displayed by "trace". + A new max trace will only be recorded if the + latency is greater than the value in this + file. (in microseconds) buffer_size_kb: @@ -210,7 +203,7 @@ Here is the list of current tracers that may be configured. the trace with the longest max latency. See tracing_max_latency. When a new max is recorded, it replaces the old trace. It is best to view this - trace via the latency_trace file. + trace with the latency-format option enabled. "preemptoff" @@ -307,8 +300,8 @@ the lowest priority thread (pid 0). Latency trace format -------------------- -For traces that display latency times, the latency_trace file -gives somewhat more information to see why a latency happened. +When the latency-format option is enabled, the trace file gives +somewhat more information to see why a latency happened. Here is a typical trace. # tracer: irqsoff @@ -380,9 +373,10 @@ explains which is which. The above is mostly meaningful for kernel developers. - time: This differs from the trace file output. The trace file output - includes an absolute timestamp. The timestamp used by the - latency_trace file is relative to the start of the trace. + time: When the latency-format option is enabled, the trace file + output includes a timestamp relative to the start of the + trace. This differs from the output when latency-format + is disabled, which includes an absolute timestamp. delay: This is just to help catch your eye a bit better. And needs to be fixed to be only relative to the same CPU. @@ -440,7 +434,8 @@ Here are the available options: sym-addr: bash-4000 [01] 1477.606694: simple_strtoul <c0339346> - verbose - This deals with the latency_trace file. + verbose - This deals with the trace file when the + latency-format option is enabled. bash 4000 1 0 00000000 00010a95 [58127d26] 1720.415ms \ (+0.000ms): simple_strtoul (strict_strtoul) @@ -472,7 +467,7 @@ Here are the available options: the app is no longer running The lookup is performed when you read - trace,trace_pipe,latency_trace. Example: + trace,trace_pipe. Example: a.out-1623 [000] 40874.465068: /root/a.out[+0x480] <-/root/a.out[+0 x494] <- /root/a.out[+0x4a8] <- /lib/libc-2.7.so[+0x1e1a6] @@ -481,6 +476,11 @@ x494] <- /root/a.out[+0x4a8] <- /lib/libc-2.7.so[+0x1e1a6] every scheduling event. Will add overhead if there's a lot of tasks running at once. + latency-format - This option changes the trace. When + it is enabled, the trace displays + additional information about the + latencies, as described in "Latency + trace format". sched_switch ------------ @@ -601,7 +601,7 @@ an example: # ls -ltr [...] # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: irqsoff # irqsoff latency trace v1.1.5 on 2.6.26 @@ -708,7 +708,7 @@ is much like the irqsoff tracer. # ls -ltr [...] # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: preemptoff # preemptoff latency trace v1.1.5 on 2.6.26-rc8 @@ -855,7 +855,7 @@ tracers. # ls -ltr [...] # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: preemptirqsoff # preemptirqsoff latency trace v1.1.5 on 2.6.26-rc8 @@ -1016,7 +1016,7 @@ Instead of performing an 'ls', we will run 'sleep 1' under # echo 1 > tracing_enabled # chrt -f 5 sleep 1 # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: wakeup # wakeup latency trace v1.1.5 on 2.6.26-rc8 -- Albin Tonnerre, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2] tracing: remove mentioning of legacy latency_trace file from documentation 2009-08-31 20:40 ` [PATCH v2] " Albin Tonnerre @ 2009-09-04 15:41 ` Frederic Weisbecker 2009-09-06 4:36 ` [tip:tracing/core] tracing: Remove " tip-bot for Albin Tonnerre 1 sibling, 0 replies; 8+ messages in thread From: Frederic Weisbecker @ 2009-09-04 15:41 UTC (permalink / raw) To: Albin Tonnerre; +Cc: srostedt, linux-kernel, mingo On Mon, Aug 31, 2009 at 10:40:08PM +0200, Albin Tonnerre wrote: > The latency_trace file got removed a while back by commit > 886b5b73d71e4027d7dc6c14f5f7ab102201ea6b. This patch fixes the > documentation to stop mentioning it. > > Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com> > --- > Changes since v1: > - mention that the trace format is configurable through the latency-format > option > - Fix a couple mistakes related to the timestamps > > Documentation/trace/ftrace.txt | 64 ++++++++++++++++++++-------------------- > 1 files changed, 32 insertions(+), 32 deletions(-) > > diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt > index a39b3c7..5167814 100644 > --- a/Documentation/trace/ftrace.txt > +++ b/Documentation/trace/ftrace.txt > @@ -85,26 +85,19 @@ of ftrace. Here is a list of some of the key files: > This file holds the output of the trace in a human > readable format (described below). > > - latency_trace: > - > - This file shows the same trace but the information > - is organized more to display possible latencies > - in the system (described below). > - > trace_pipe: > > The output is the same as the "trace" file but this > file is meant to be streamed with live tracing. > - Reads from this file will block until new data > - is retrieved. Unlike the "trace" and "latency_trace" > - files, this file is a consumer. This means reading > - from this file causes sequential reads to display > - more current data. Once data is read from this > - file, it is consumed, and will not be read > - again with a sequential read. The "trace" and > - "latency_trace" files are static, and if the > - tracer is not adding more data, they will display > - the same information every time they are read. > + Reads from this file will block until new data is > + retrieved. Unlike the "trace" file, this file is a > + consumer. This means reading from this file causes > + sequential reads to display more current data. Once > + data is read from this file, it is consumed, and > + will not be read again with a sequential read. The > + "trace" file is static, and if the tracer is not > + adding more data,they will display the same > + information every time they are read. > > trace_options: > > @@ -117,10 +110,10 @@ of ftrace. Here is a list of some of the key files: > Some of the tracers record the max latency. > For example, the time interrupts are disabled. > This time is saved in this file. The max trace > - will also be stored, and displayed by either > - "trace" or "latency_trace". A new max trace will > - only be recorded if the latency is greater than > - the value in this file. (in microseconds) > + will also be stored, and displayed by "trace". > + A new max trace will only be recorded if the > + latency is greater than the value in this > + file. (in microseconds) > > buffer_size_kb: > > @@ -210,7 +203,7 @@ Here is the list of current tracers that may be configured. > the trace with the longest max latency. > See tracing_max_latency. When a new max is recorded, > it replaces the old trace. It is best to view this > - trace via the latency_trace file. > + trace with the latency-format option enabled. > > "preemptoff" > > @@ -307,8 +300,8 @@ the lowest priority thread (pid 0). > Latency trace format > -------------------- > > -For traces that display latency times, the latency_trace file > -gives somewhat more information to see why a latency happened. > +When the latency-format option is enabled, the trace file gives > +somewhat more information to see why a latency happened. > Here is a typical trace. > > # tracer: irqsoff > @@ -380,9 +373,10 @@ explains which is which. > > The above is mostly meaningful for kernel developers. > > - time: This differs from the trace file output. The trace file output > - includes an absolute timestamp. The timestamp used by the > - latency_trace file is relative to the start of the trace. > + time: When the latency-format option is enabled, the trace file > + output includes a timestamp relative to the start of the > + trace. This differs from the output when latency-format > + is disabled, which includes an absolute timestamp. > > delay: This is just to help catch your eye a bit better. And > needs to be fixed to be only relative to the same CPU. > @@ -440,7 +434,8 @@ Here are the available options: > sym-addr: > bash-4000 [01] 1477.606694: simple_strtoul <c0339346> > > - verbose - This deals with the latency_trace file. > + verbose - This deals with the trace file when the > + latency-format option is enabled. > > bash 4000 1 0 00000000 00010a95 [58127d26] 1720.415ms \ > (+0.000ms): simple_strtoul (strict_strtoul) > @@ -472,7 +467,7 @@ Here are the available options: > the app is no longer running > > The lookup is performed when you read > - trace,trace_pipe,latency_trace. Example: > + trace,trace_pipe. Example: > > a.out-1623 [000] 40874.465068: /root/a.out[+0x480] <-/root/a.out[+0 > x494] <- /root/a.out[+0x4a8] <- /lib/libc-2.7.so[+0x1e1a6] > @@ -481,6 +476,11 @@ x494] <- /root/a.out[+0x4a8] <- /lib/libc-2.7.so[+0x1e1a6] > every scheduling event. Will add overhead if > there's a lot of tasks running at once. > > + latency-format - This option changes the trace. When > + it is enabled, the trace displays > + additional information about the > + latencies, as described in "Latency > + trace format". > > sched_switch > ------------ > @@ -601,7 +601,7 @@ an example: > # ls -ltr > [...] > # echo 0 > tracing_enabled > - # cat latency_trace > + # cat trace > # tracer: irqsoff > # > irqsoff latency trace v1.1.5 on 2.6.26 > @@ -708,7 +708,7 @@ is much like the irqsoff tracer. > # ls -ltr > [...] > # echo 0 > tracing_enabled > - # cat latency_trace > + # cat trace > # tracer: preemptoff > # > preemptoff latency trace v1.1.5 on 2.6.26-rc8 > @@ -855,7 +855,7 @@ tracers. > # ls -ltr > [...] > # echo 0 > tracing_enabled > - # cat latency_trace > + # cat trace > # tracer: preemptirqsoff > # > preemptirqsoff latency trace v1.1.5 on 2.6.26-rc8 > @@ -1016,7 +1016,7 @@ Instead of performing an 'ls', we will run 'sleep 1' under > # echo 1 > tracing_enabled > # chrt -f 5 sleep 1 > # echo 0 > tracing_enabled > - # cat latency_trace > + # cat trace > # tracer: wakeup > # > wakeup latency trace v1.1.5 on 2.6.26-rc8 Hmm, you may want to add the following line: echo latency-format > trace_option to the 4 above to keep the examples relevants. That's fine, I'll add them and queue up this patch, thanks! ^ permalink raw reply [flat|nested] 8+ messages in thread
* [tip:tracing/core] tracing: Remove mentioning of legacy latency_trace file from documentation 2009-08-31 20:40 ` [PATCH v2] " Albin Tonnerre 2009-09-04 15:41 ` Frederic Weisbecker @ 2009-09-06 4:36 ` tip-bot for Albin Tonnerre 1 sibling, 0 replies; 8+ messages in thread From: tip-bot for Albin Tonnerre @ 2009-09-06 4:36 UTC (permalink / raw) To: linux-tip-commits Cc: linux-kernel, hpa, mingo, fweisbec, rostedt, albin.tonnerre, tglx Commit-ID: 4a88d44ab17da5f8a238050d1b43dfd2e204bc2f Gitweb: http://git.kernel.org/tip/4a88d44ab17da5f8a238050d1b43dfd2e204bc2f Author: Albin Tonnerre <albin.tonnerre@free-electrons.com> AuthorDate: Mon, 31 Aug 2009 22:40:08 +0200 Committer: Frederic Weisbecker <fweisbec@gmail.com> CommitDate: Fri, 4 Sep 2009 23:30:38 +0200 tracing: Remove mentioning of legacy latency_trace file from documentation The latency_trace file got removed a while back by commit 886b5b73d71e4027d7dc6c14f5f7ab102201ea6b and has been replaced by the latency-format option. This patch fixes the documentation by reflecting this change. Changes since v1: - mention that the trace format is configurable through the latency-format option - Fix a couple mistakes related to the timestamps Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <20090831204007.GE4237@pc-ras4041.res.insa> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> --- Documentation/trace/ftrace.txt | 68 +++++++++++++++++++++------------------- 1 files changed, 36 insertions(+), 32 deletions(-) diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt index a39b3c7..355d0f1 100644 --- a/Documentation/trace/ftrace.txt +++ b/Documentation/trace/ftrace.txt @@ -85,26 +85,19 @@ of ftrace. Here is a list of some of the key files: This file holds the output of the trace in a human readable format (described below). - latency_trace: - - This file shows the same trace but the information - is organized more to display possible latencies - in the system (described below). - trace_pipe: The output is the same as the "trace" file but this file is meant to be streamed with live tracing. - Reads from this file will block until new data - is retrieved. Unlike the "trace" and "latency_trace" - files, this file is a consumer. This means reading - from this file causes sequential reads to display - more current data. Once data is read from this - file, it is consumed, and will not be read - again with a sequential read. The "trace" and - "latency_trace" files are static, and if the - tracer is not adding more data, they will display - the same information every time they are read. + Reads from this file will block until new data is + retrieved. Unlike the "trace" file, this file is a + consumer. This means reading from this file causes + sequential reads to display more current data. Once + data is read from this file, it is consumed, and + will not be read again with a sequential read. The + "trace" file is static, and if the tracer is not + adding more data,they will display the same + information every time they are read. trace_options: @@ -117,10 +110,10 @@ of ftrace. Here is a list of some of the key files: Some of the tracers record the max latency. For example, the time interrupts are disabled. This time is saved in this file. The max trace - will also be stored, and displayed by either - "trace" or "latency_trace". A new max trace will - only be recorded if the latency is greater than - the value in this file. (in microseconds) + will also be stored, and displayed by "trace". + A new max trace will only be recorded if the + latency is greater than the value in this + file. (in microseconds) buffer_size_kb: @@ -210,7 +203,7 @@ Here is the list of current tracers that may be configured. the trace with the longest max latency. See tracing_max_latency. When a new max is recorded, it replaces the old trace. It is best to view this - trace via the latency_trace file. + trace with the latency-format option enabled. "preemptoff" @@ -307,8 +300,8 @@ the lowest priority thread (pid 0). Latency trace format -------------------- -For traces that display latency times, the latency_trace file -gives somewhat more information to see why a latency happened. +When the latency-format option is enabled, the trace file gives +somewhat more information to see why a latency happened. Here is a typical trace. # tracer: irqsoff @@ -380,9 +373,10 @@ explains which is which. The above is mostly meaningful for kernel developers. - time: This differs from the trace file output. The trace file output - includes an absolute timestamp. The timestamp used by the - latency_trace file is relative to the start of the trace. + time: When the latency-format option is enabled, the trace file + output includes a timestamp relative to the start of the + trace. This differs from the output when latency-format + is disabled, which includes an absolute timestamp. delay: This is just to help catch your eye a bit better. And needs to be fixed to be only relative to the same CPU. @@ -440,7 +434,8 @@ Here are the available options: sym-addr: bash-4000 [01] 1477.606694: simple_strtoul <c0339346> - verbose - This deals with the latency_trace file. + verbose - This deals with the trace file when the + latency-format option is enabled. bash 4000 1 0 00000000 00010a95 [58127d26] 1720.415ms \ (+0.000ms): simple_strtoul (strict_strtoul) @@ -472,7 +467,7 @@ Here are the available options: the app is no longer running The lookup is performed when you read - trace,trace_pipe,latency_trace. Example: + trace,trace_pipe. Example: a.out-1623 [000] 40874.465068: /root/a.out[+0x480] <-/root/a.out[+0 x494] <- /root/a.out[+0x4a8] <- /lib/libc-2.7.so[+0x1e1a6] @@ -481,6 +476,11 @@ x494] <- /root/a.out[+0x4a8] <- /lib/libc-2.7.so[+0x1e1a6] every scheduling event. Will add overhead if there's a lot of tasks running at once. + latency-format - This option changes the trace. When + it is enabled, the trace displays + additional information about the + latencies, as described in "Latency + trace format". sched_switch ------------ @@ -596,12 +596,13 @@ To reset the maximum, echo 0 into tracing_max_latency. Here is an example: # echo irqsoff > current_tracer + # echo latency-format > trace_options # echo 0 > tracing_max_latency # echo 1 > tracing_enabled # ls -ltr [...] # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: irqsoff # irqsoff latency trace v1.1.5 on 2.6.26 @@ -703,12 +704,13 @@ which preemption was disabled. The control of preemptoff tracer is much like the irqsoff tracer. # echo preemptoff > current_tracer + # echo latency-format > trace_options # echo 0 > tracing_max_latency # echo 1 > tracing_enabled # ls -ltr [...] # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: preemptoff # preemptoff latency trace v1.1.5 on 2.6.26-rc8 @@ -850,12 +852,13 @@ Again, using this trace is much like the irqsoff and preemptoff tracers. # echo preemptirqsoff > current_tracer + # echo latency-format > trace_options # echo 0 > tracing_max_latency # echo 1 > tracing_enabled # ls -ltr [...] # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: preemptirqsoff # preemptirqsoff latency trace v1.1.5 on 2.6.26-rc8 @@ -1012,11 +1015,12 @@ Instead of performing an 'ls', we will run 'sleep 1' under 'chrt' which changes the priority of the task. # echo wakeup > current_tracer + # echo latency-format > trace_options # echo 0 > tracing_max_latency # echo 1 > tracing_enabled # chrt -f 5 sleep 1 # echo 0 > tracing_enabled - # cat latency_trace + # cat trace # tracer: wakeup # wakeup latency trace v1.1.5 on 2.6.26-rc8 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] tracing: remove mentioning of legacy latency_trace file from documentation 2009-08-31 18:50 [PATCH] tracing: remove mentioning of legacy latency_trace file from documentation Albin Tonnerre 2009-08-31 19:08 ` Frederic Weisbecker @ 2009-08-31 19:19 ` Frederic Weisbecker 2009-08-31 19:40 ` Albin Tonnerre 1 sibling, 1 reply; 8+ messages in thread From: Frederic Weisbecker @ 2009-08-31 19:19 UTC (permalink / raw) To: Albin Tonnerre; +Cc: srostedt, linux-kernel, mingo On Mon, Aug 31, 2009 at 08:50:35PM +0200, Albin Tonnerre wrote: > The latency_trace file got removed a while back by commit > 886b5b73d71e4027d7dc6c14f5f7ab102201ea6b. This patch fixes the > documentation to stop mentioning it. > > Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com> > --- > Documentation/trace/ftrace.txt | 55 +++++++++++++++++---------------------- > 1 files changed, 24 insertions(+), 31 deletions(-) > > diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt > index a39b3c7..3f058ab 100644 > --- a/Documentation/trace/ftrace.txt > +++ b/Documentation/trace/ftrace.txt > @@ -85,26 +85,19 @@ of ftrace. Here is a list of some of the key files: > This file holds the output of the trace in a human > readable format (described below). > > - latency_trace: > - > - This file shows the same trace but the information > - is organized more to display possible latencies > - in the system (described below). > - > trace_pipe: > > The output is the same as the "trace" file but this > file is meant to be streamed with live tracing. > - Reads from this file will block until new data > - is retrieved. Unlike the "trace" and "latency_trace" > - files, this file is a consumer. This means reading > - from this file causes sequential reads to display > - more current data. Once data is read from this > - file, it is consumed, and will not be read > - again with a sequential read. The "trace" and > - "latency_trace" files are static, and if the > - tracer is not adding more data, they will display > - the same information every time they are read. > + Reads from this file will block until new data is > + retrieved. Unlike the "trace" file, this file is a > + consumer. This means reading from this file causes > + sequential reads to display more current data. Once > + data is read from this file, it is consumed, and > + will not be read again with a sequential read. The > + "trace" file is static, and if the tracer is not > + adding more data,they will display the same > + information every time they are read. > > trace_options: > > @@ -117,10 +110,10 @@ of ftrace. Here is a list of some of the key files: > Some of the tracers record the max latency. > For example, the time interrupts are disabled. > This time is saved in this file. The max trace > - will also be stored, and displayed by either > - "trace" or "latency_trace". A new max trace will > - only be recorded if the latency is greater than > - the value in this file. (in microseconds) > + will also be stored, and displayed by "trace". > + A new max trace will only be recorded if the > + latency is greater than the value in this > + file. (in microseconds) > > buffer_size_kb: > > @@ -209,8 +202,7 @@ Here is the list of current tracers that may be configured. > Traces the areas that disable interrupts and saves > the trace with the longest max latency. > See tracing_max_latency. When a new max is recorded, > - it replaces the old trace. It is best to view this > - trace via the latency_trace file. > + it replaces the old trace. > > "preemptoff" > > @@ -307,8 +299,8 @@ the lowest priority thread (pid 0). > Latency trace format > -------------------- > > -For traces that display latency times, the latency_trace file > -gives somewhat more information to see why a latency happened. > +For traces that display latency times, the trace file gives > +somewhat more information to see why a latency happened. > Here is a typical trace. > > # tracer: irqsoff > @@ -382,7 +374,7 @@ The above is mostly meaningful for kernel developers. > > time: This differs from the trace file output. The trace file output > includes an absolute timestamp. The timestamp used by the > - latency_trace file is relative to the start of the trace. > + trace file is relative to the start of the trace. Not only is it wrong, but the sentence is now completely antithetic. You can't update this documentation by just doing an s/latency_trace/trace Especially since the latency_trace specifics are in essence different from the trace file. It's really nice to update the documentation according to the latest change, but please take care about the end result. Thanks, Frederic. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] tracing: remove mentioning of legacy latency_trace file from documentation 2009-08-31 19:19 ` [PATCH] tracing: remove " Frederic Weisbecker @ 2009-08-31 19:40 ` Albin Tonnerre 0 siblings, 0 replies; 8+ messages in thread From: Albin Tonnerre @ 2009-08-31 19:40 UTC (permalink / raw) To: Frederic Weisbecker; +Cc: srostedt, linux-kernel, mingo On Mon, Aug 31, 2009 at 09:19:38PM +0200, Frederic Weisbecker wrote : > On Mon, Aug 31, 2009 at 08:50:35PM +0200, Albin Tonnerre wrote: > > # tracer: irqsoff > > @@ -382,7 +374,7 @@ The above is mostly meaningful for kernel developers. > > > > time: This differs from the trace file output. The trace file output > > includes an absolute timestamp. The timestamp used by the > > - latency_trace file is relative to the start of the trace. > > + trace file is relative to the start of the trace. > > > Not only is it wrong, but the sentence is now completely antithetic. Oops. this wasn't meant to be there. I'll fix that. Regards, -- Albin Tonnerre, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-09-06 4:37 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-08-31 18:50 [PATCH] tracing: remove mentioning of legacy latency_trace file from documentation Albin Tonnerre 2009-08-31 19:08 ` Frederic Weisbecker 2009-08-31 19:46 ` Albin Tonnerre 2009-08-31 20:40 ` [PATCH v2] " Albin Tonnerre 2009-09-04 15:41 ` Frederic Weisbecker 2009-09-06 4:36 ` [tip:tracing/core] tracing: Remove " tip-bot for Albin Tonnerre 2009-08-31 19:19 ` [PATCH] tracing: remove " Frederic Weisbecker 2009-08-31 19:40 ` Albin Tonnerre
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox