<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://elinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://elinux.org/index.php?title=Support_same_log_buffer_or_tracing_buffer_in_both_bootloader_and_kernel&amp;feed=atom&amp;action=history</id>
		<title>Support same log buffer or tracing buffer in both bootloader and kernel - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=Support_same_log_buffer_or_tracing_buffer_in_both_bootloader_and_kernel&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Support_same_log_buffer_or_tracing_buffer_in_both_bootloader_and_kernel&amp;action=history"/>
		<updated>2013-05-23T03:41:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21alpha</generator>

	<entry>
		<id>http://elinux.org/index.php?title=Support_same_log_buffer_or_tracing_buffer_in_both_bootloader_and_kernel&amp;diff=129938&amp;oldid=prev</id>
		<title>Hisaomunakata at 05:19, 17 May 2012</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Support_same_log_buffer_or_tracing_buffer_in_both_bootloader_and_kernel&amp;diff=129938&amp;oldid=prev"/>
				<updated>2012-05-17T05:19:15Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 05:19, 17 May 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Comments ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Comments ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Project proposals 2012]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Project proposals 2012]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key elinux:diff:version:1.11a:oldid:129932:newid:129938 --&gt;
&lt;/table&gt;</summary>
		<author><name>Hisaomunakata</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=Support_same_log_buffer_or_tracing_buffer_in_both_bootloader_and_kernel&amp;diff=129932&amp;oldid=prev</id>
		<title>Hisaomunakata: Created page with &quot;; Summary: Support same log buffer or tracing buffer in both bootloader and kernel ; Proposer: Tim Bird - Sony Network Entertainment  == Description == It would be nice to share ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Support_same_log_buffer_or_tracing_buffer_in_both_bootloader_and_kernel&amp;diff=129932&amp;oldid=prev"/>
				<updated>2012-05-17T05:18:42Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;; Summary: Support same log buffer or tracing buffer in both bootloader and kernel ; Proposer: Tim Bird - Sony Network Entertainment  == Description == It would be nice to share ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;; Summary: Support same log buffer or tracing buffer in both bootloader and kernel&lt;br /&gt;
; Proposer: Tim Bird - Sony Network Entertainment&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
It would be nice to share log buffer or trace buffers between the bootloader and the kernel,&lt;br /&gt;
so that either log messages or trace events (respectively) could be coalesced from both sources in a&lt;br /&gt;
unified view.&lt;br /&gt;
&lt;br /&gt;
This work might be related to work involving using fixed memory locations for kernel&lt;br /&gt;
buffers.  This is done implicitly by Android's RAM-console feature, and by PRAMFS.&lt;br /&gt;
Alternatively, if performance is not an issue, the kernel could copy messages&lt;br /&gt;
from the bootloader log buffer into the kernel log buffer at startup.&lt;br /&gt;
&lt;br /&gt;
It appears that U-boot uses a log-buffer format similar to the Linux kernel.&lt;br /&gt;
(See http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=blob;f=common/cmd_log.c&lt;br /&gt;
&lt;br /&gt;
Note that this is useful for on-box analysis (using 'dmesg' locally, and getting both&lt;br /&gt;
bootloader and kernel messages).  It  is obvious that someone with a serial console&lt;br /&gt;
can see both sets of text messages coalesced, and could use a tool like&lt;br /&gt;
http://elinux.org/Grabserial to get timing information for the text messages.&lt;br /&gt;
(Although, due to delays in setting up the kernel console device, the timings&lt;br /&gt;
are inaccurate for a portion of the bootup.)&lt;br /&gt;
&lt;br /&gt;
Handling trace events in a coalesced fashion is a whole other issue.&lt;br /&gt;
&lt;br /&gt;
== Related work ==&lt;br /&gt;
* In 2009 there was a proposal to add an &amp;quot;alternative log buffer&amp;quot; for printk messages&lt;br /&gt;
** See http://lwn.net/Articles/315943/&lt;br /&gt;
* Does u-boot support any tracing code similar to ftrace?&lt;br /&gt;
&lt;br /&gt;
== Scope ==&lt;br /&gt;
Unknown&lt;br /&gt;
&lt;br /&gt;
== Contractor Candidates ==&lt;br /&gt;
No one so far.&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Project proposals 2012]]&lt;/div&gt;</summary>
		<author><name>Hisaomunakata</name></author>	</entry>

	</feed>