<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/kernel/trace/trace_boot.c, branch v2.6.30</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.30</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.30'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2009-02-06T00:01:41Z</updated>
<entry>
<title>tracing: Introduce trace_buffer_{lock_reserve,unlock_commit}</title>
<updated>2009-02-06T00:01:41Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
<email>acme@redhat.com</email>
</author>
<published>2009-02-05T18:14:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=51a763dd84253bab1d0a1e68e11a7753d1b702ca'/>
<id>urn:sha1:51a763dd84253bab1d0a1e68e11a7753d1b702ca</id>
<content type='text'>
Impact: new API

These new functions do what previously was being open coded, reducing
the number of details ftrace plugin writers have to worry about.

It also standardizes the handling of stacktrace, userstacktrace and
other trace options we may introduce in the future.

With this patch, for instance, the blk tracer (and some others already
in the tree) can use the "userstacktrace" /d/tracing/trace_options
facility.

$ codiff /tmp/vmlinux.before /tmp/vmlinux.after
linux-2.6-tip/kernel/trace/trace.c:
  trace_vprintk              |   -5
  trace_graph_return         |  -22
  trace_graph_entry          |  -26
  trace_function             |  -45
  __ftrace_trace_stack       |  -27
  ftrace_trace_userstack     |  -29
  tracing_sched_switch_trace |  -66
  tracing_stop               |   +1
  trace_seq_to_user          |   -1
  ftrace_trace_special       |  -63
  ftrace_special             |   +1
  tracing_sched_wakeup_trace |  -70
  tracing_reset_online_cpus  |   -1
 13 functions changed, 2 bytes added, 355 bytes removed, diff: -353

linux-2.6-tip/block/blktrace.c:
  __blk_add_trace |  -58
 1 function changed, 58 bytes removed, diff: -58

linux-2.6-tip/kernel/trace/trace.c:
  trace_buffer_lock_reserve  |  +88
  trace_buffer_unlock_commit |  +86
 2 functions changed, 174 bytes added, diff: +174

/tmp/vmlinux.after:
 16 functions changed, 176 bytes added, 413 bytes removed, diff: -237

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Acked-by: Frédéric Weisbecker &lt;fweisbec@gmail.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>ring_buffer: remove unused flags parameter</title>
<updated>2009-02-06T00:01:40Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
<email>acme@redhat.com</email>
</author>
<published>2009-02-05T18:12:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0a9877514c4fed10a70720293b37213dd172ee3e'/>
<id>urn:sha1:0a9877514c4fed10a70720293b37213dd172ee3e</id>
<content type='text'>
Impact: API change, cleanup

&gt;From ring_buffer_{lock_reserve,unlock_commit}.

$ codiff /tmp/vmlinux.before /tmp/vmlinux.after
linux-2.6-tip/kernel/trace/trace.c:
  trace_vprintk              |  -14
  trace_graph_return         |  -14
  trace_graph_entry          |  -10
  trace_function             |   -8
  __ftrace_trace_stack       |   -8
  ftrace_trace_userstack     |   -8
  tracing_sched_switch_trace |   -8
  ftrace_trace_special       |  -12
  tracing_sched_wakeup_trace |   -8
 9 functions changed, 90 bytes removed, diff: -90

linux-2.6-tip/block/blktrace.c:
  __blk_add_trace |   -1
 1 function changed, 1 bytes removed, diff: -1

/tmp/vmlinux.after:
 10 functions changed, 91 bytes removed, diff: -91

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Acked-by: Frédéric Weisbecker &lt;fweisbec@gmail.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>trace: let boot trace be chosen by command line</title>
<updated>2009-02-03T05:26:12Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2009-02-03T02:38:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=79fb0768fbd371f3b94d909f51f587b3a24ab272'/>
<id>urn:sha1:79fb0768fbd371f3b94d909f51f587b3a24ab272</id>
<content type='text'>
Now that we have a working ftrace=&lt;tracer&gt; function, make the boot
tracer get activated by it. This way we can turn it on or off without
recompiling the kernel, as well as keeping the selftests on. The
selftests are disabled whenever a default tracer starts running.

Signed-off-by: Steven Rostedt &lt;srostedt@redhat.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>Merge branches 'tracing/kmemtrace2' and 'tracing/ftrace' into tracing/urgent</title>
<updated>2009-01-06T09:18:43Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2009-01-06T09:18:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=99793e3dbe39a50d871eedc361659a894601e2bf'/>
<id>urn:sha1:99793e3dbe39a50d871eedc361659a894601e2bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cpumask: convert kernel trace functions further</title>
<updated>2008-12-31T23:42:23Z</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2008-12-31T23:42:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4462344ee9ea9224d026801b877887f2f39774a3'/>
<id>urn:sha1:4462344ee9ea9224d026801b877887f2f39774a3</id>
<content type='text'>
Impact: Reduce future memory usage, use new cpumask API.

Since the last patch was created and acked, more old cpumask users
slipped into kernel/trace.

Mostly trivial conversions, except struct trace_iterator's "started"
member becomes a cpumask_var_t.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
</entry>
<entry>
<title>ftrace: set up trace event hash infrastructure</title>
<updated>2008-12-29T11:46:11Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2008-12-24T04:24:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f0868d1e23a8efec33beb3aa688aab7fdb1ae093'/>
<id>urn:sha1:f0868d1e23a8efec33beb3aa688aab7fdb1ae093</id>
<content type='text'>
Impact: simplify/generalize/refactor trace.c

The trace.c file is becoming more difficult to maintain due to the
growing number of events. There is several formats that an event may
be printed. This patch sets up the infrastructure of an event hash to
allow for events to register how they should be printed.

Signed-off-by: Steven Rostedt &lt;srostedt@redhat.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>ftrace: introduce tracing_reset_online_cpus() helper</title>
<updated>2008-12-19T15:29:34Z</updated>
<author>
<name>Pekka J Enberg</name>
<email>penberg@cs.helsinki.fi</email>
</author>
<published>2008-12-19T10:08:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=213cc060797378059a28ebc5c539f3e9a80160bd'/>
<id>urn:sha1:213cc060797378059a28ebc5c539f3e9a80160bd</id>
<content type='text'>
Impact: cleanup

This patch factors out common code from multiple tracers into a
tracing_reset_online_cpus() function and converts the tracers to use it.

Signed-off-by: Pekka Enberg &lt;penberg@cs.helsinki.fi&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>tracing/ftrace: change the type of the init() callback</title>
<updated>2008-11-16T06:55:23Z</updated>
<author>
<name>Frederic Weisbecker</name>
<email>fweisbec@gmail.com</email>
</author>
<published>2008-11-16T04:57:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1c80025a49855b12fa09bb6db71820e3367b1369'/>
<id>urn:sha1:1c80025a49855b12fa09bb6db71820e3367b1369</id>
<content type='text'>
Impact: extend the -&gt;init() method with the ability to fail

This bring a way to know if the initialization of a tracer successed.
A tracer must return 0 on success and a traditional error (ie:
-ENOMEM) if it fails.

If a tracer fails to init, it is free to print a detailed warn. The
tracing api will not and switch to a new tracer will just return the
error from the init callback.

Note: this will be used for the return tracer.

Signed-off-by: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>tracing/fastboot: Use the ring-buffer timestamp for initcall entries</title>
<updated>2008-11-12T09:17:19Z</updated>
<author>
<name>Frederic Weisbecker</name>
<email>fweisbec@gmail.com</email>
</author>
<published>2008-11-11T22:24:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=74239072830ef3f1398edeb1bc1076fc330fd4a2'/>
<id>urn:sha1:74239072830ef3f1398edeb1bc1076fc330fd4a2</id>
<content type='text'>
Impact: Split the boot tracer entries in two parts: call and return

Now that we are using the sched tracer from the boot tracer, we want
to use the same timestamp than the ring-buffer to have consistent time
captures between sched events and initcall events.

So we get rid of the old time capture by the boot tracer and split the
initcall events in two parts: call and return. This way we have the
ring buffer timestamp of both.

An example trace:

[   27.904149584] calling  net_ns_init+0x0/0x1c0 @ 1
[   27.904429624] initcall net_ns_init+0x0/0x1c0 returned 0 after 0 msecs
[   27.904575926] calling  reboot_init+0x0/0x20 @ 1
[   27.904655399] initcall reboot_init+0x0/0x20 returned 0 after 0 msecs
[   27.904800228] calling  sysctl_init+0x0/0x30 @ 1
[   27.905142914] initcall sysctl_init+0x0/0x30 returned 0 after 0 msecs
[   27.905287211] calling  ksysfs_init+0x0/0xb0 @ 1
 ##### CPU 0 buffer started ####
            init-1     [000]    27.905395:      1:120:R   + [001]    11:115:S
 ##### CPU 1 buffer started ####
          &lt;idle&gt;-0     [001]    27.905425:      0:140:R ==&gt; [001]    11:115:R
            init-1     [000]    27.905426:      1:120:D ==&gt; [000]     0:140:R
          &lt;idle&gt;-0     [000]    27.905431:      0:140:R   + [000]     4:115:S
          &lt;idle&gt;-0     [000]    27.905451:      0:140:R ==&gt; [000]     4:115:R
     ksoftirqd/0-4     [000]    27.905456:      4:115:S ==&gt; [000]     0:140:R
           udevd-11    [001]    27.905458:     11:115:R   + [001]    14:115:R
          &lt;idle&gt;-0     [000]    27.905459:      0:140:R   + [000]     4:115:S
          &lt;idle&gt;-0     [000]    27.905462:      0:140:R ==&gt; [000]     4:115:R
           udevd-11    [001]    27.905462:     11:115:R ==&gt; [001]    14:115:R
     ksoftirqd/0-4     [000]    27.905467:      4:115:S ==&gt; [000]     0:140:R
          &lt;idle&gt;-0     [000]    27.905470:      0:140:R   + [000]     4:115:S
          &lt;idle&gt;-0     [000]    27.905473:      0:140:R ==&gt; [000]     4:115:R
     ksoftirqd/0-4     [000]    27.905476:      4:115:S ==&gt; [000]     0:140:R
          &lt;idle&gt;-0     [000]    27.905479:      0:140:R   + [000]     4:115:S
          &lt;idle&gt;-0     [000]    27.905482:      0:140:R ==&gt; [000]     4:115:R
     ksoftirqd/0-4     [000]    27.905486:      4:115:S ==&gt; [000]     0:140:R
           udevd-14    [001]    27.905499:     14:120:X ==&gt; [001]    11:115:R
           udevd-11    [001]    27.905506:     11:115:R   + [000]     1:120:D
          &lt;idle&gt;-0     [000]    27.905515:      0:140:R ==&gt; [000]     1:120:R
           udevd-11    [001]    27.905517:     11:115:S ==&gt; [001]     0:140:R
[   27.905557107] initcall ksysfs_init+0x0/0xb0 returned 0 after 3906 msecs
[   27.905705736] calling  init_jiffies_clocksource+0x0/0x10 @ 1
[   27.905779239] initcall init_jiffies_clocksource+0x0/0x10 returned 0 after 0 msecs
[   27.906769814] calling  pm_init+0x0/0x30 @ 1
[   27.906853627] initcall pm_init+0x0/0x30 returned 0 after 0 msecs
[   27.906997803] calling  pm_disk_init+0x0/0x20 @ 1
[   27.907076946] initcall pm_disk_init+0x0/0x20 returned 0 after 0 msecs
[   27.907222556] calling  swsusp_header_init+0x0/0x30 @ 1
[   27.907294325] initcall swsusp_header_init+0x0/0x30 returned 0 after 0 msecs
[   27.907439620] calling  stop_machine_init+0x0/0x50 @ 1
            init-1     [000]    27.907485:      1:120:R   + [000]     2:115:S
            init-1     [000]    27.907490:      1:120:D ==&gt; [000]     2:115:R
        kthreadd-2     [000]    27.907507:      2:115:R   + [001]    15:115:R
          &lt;idle&gt;-0     [001]    27.907517:      0:140:R ==&gt; [001]    15:115:R
        kthreadd-2     [000]    27.907517:      2:115:D ==&gt; [000]     0:140:R
          &lt;idle&gt;-0     [000]    27.907521:      0:140:R   + [000]     4:115:S
          &lt;idle&gt;-0     [000]    27.907524:      0:140:R ==&gt; [000]     4:115:R
           udevd-15    [001]    27.907527:     15:115:D   + [000]     2:115:D
     ksoftirqd/0-4     [000]    27.907537:      4:115:S ==&gt; [000]     2:115:R
           udevd-15    [001]    27.907537:     15:115:D ==&gt; [001]     0:140:R
        kthreadd-2     [000]    27.907546:      2:115:R   + [000]     1:120:D
        kthreadd-2     [000]    27.907550:      2:115:S ==&gt; [000]     1:120:R
            init-1     [000]    27.907584:      1:120:R   + [000]    15:  0:D
            init-1     [000]    27.907589:      1:120:R   + [000]     2:115:S
            init-1     [000]    27.907593:      1:120:D ==&gt; [000]    15:  0:R
           udevd-15    [000]    27.907601:     15:  0:S ==&gt; [000]     2:115:R
 ##### CPU 0 buffer started ####
        kthreadd-2     [000]    27.907616:      2:115:R   + [001]    16:115:R
 ##### CPU 1 buffer started ####
          &lt;idle&gt;-0     [001]    27.907620:      0:140:R ==&gt; [001]    16:115:R
        kthreadd-2     [000]    27.907621:      2:115:D ==&gt; [000]     0:140:R
           udevd-16    [001]    27.907625:     16:115:D   + [000]     2:115:D
          &lt;idle&gt;-0     [000]    27.907628:      0:140:R   + [000]     4:115:S
           udevd-16    [001]    27.907629:     16:115:D ==&gt; [001]     0:140:R
          &lt;idle&gt;-0     [000]    27.907631:      0:140:R ==&gt; [000]     4:115:R
     ksoftirqd/0-4     [000]    27.907636:      4:115:S ==&gt; [000]     2:115:R
        kthreadd-2     [000]    27.907644:      2:115:R   + [000]     1:120:D
        kthreadd-2     [000]    27.907647:      2:115:S ==&gt; [000]     1:120:R
            init-1     [000]    27.907657:      1:120:R   + [001]    16:  0:D
          &lt;idle&gt;-0     [001]    27.907666:      0:140:R ==&gt; [001]    16:  0:R
[   27.907703862] initcall stop_machine_init+0x0/0x50 returned 0 after 0 msecs
[   27.907850704] calling  filelock_init+0x0/0x30 @ 1
[   27.907926573] initcall filelock_init+0x0/0x30 returned 0 after 0 msecs
[   27.908071327] calling  init_script_binfmt+0x0/0x10 @ 1
[   27.908165195] initcall init_script_binfmt+0x0/0x10 returned 0 after 0 msecs
[   27.908309461] calling  init_elf_binfmt+0x0/0x10 @ 1

Signed-off-by: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
Acked-by: Steven Rostedt &lt;rostedt@goodmis.org&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>ftrace: remove ctrl_update method</title>
<updated>2008-11-08T08:51:34Z</updated>
<author>
<name>Steven Rostedt</name>
<email>srostedt@redhat.com</email>
</author>
<published>2008-11-08T03:36:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bbf5b1a0cecb56de6236db8b01c5bfb7ab8ba8b2'/>
<id>urn:sha1:bbf5b1a0cecb56de6236db8b01c5bfb7ab8ba8b2</id>
<content type='text'>
Impact: Remove the ctrl_update tracer method

With the new quick start/stop method of tracing, the ctrl_update
method is out of date.

Signed-off-by: Steven Rostedt &lt;srostedt@redhat.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
</feed>
