login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
19
Re: [PATCH] printk: Print cpuid along with the timestamp with CONFIG_PRINTK_TIME
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Marcin Slusarz
Subject:
Re: [PATCH] printk: Print cpuid along with the timestamp with CONFIG_PRINTK_TIME
Date: Friday, September 19, 2008 - 10:15 am
On Thu, Sep 18, 2008 at 05:35:09PM -0700, Ravikiran G Thirumalai wrote:
quoted text
> On Thu, Sep 18, 2008 at 12:51:23PM -0700, Andrew Morton wrote: > >On Thu, 18 Sep 2008 12:37:20 -0700 > >Ravikiran G Thirumalai <kiran@scalex86.org> wrote: > >> > >> Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org> > >> > >> Index: linux-git/kernel/printk.c > >> =================================================================== > >> --- linux-git.orig/kernel/printk.c 2008-09-16 15:37:48.000000000 -0700 > >> +++ linux-git/kernel/printk.c 2008-09-18 12:27:10.489662938 -0700 > >> @@ -739,9 +739,10 @@ asmlinkage int vprintk(const char *fmt, > >> > >> t = cpu_clock(printk_cpu); > >> nanosec_rem = do_div(t, 1000000000); > >> - tlen = sprintf(tbuf, "[%5lu.%06lu] ", > >> + tlen = sprintf(tbuf, "[%5lu.%06lu:%d] ", > >> (unsigned long) t, > >> - nanosec_rem / 1000); > >> + nanosec_rem / 1000, > >> + printk_cpu); > >> > >> for (tp = tbuf; tp < tbuf + tlen; tp++) > >> emit_log_char(*tp); > > > > > >Your patch illogically ties the cpu-id-printing feature to the > >printk.time feature. I guess that's liveable with, but > >Documentation/kernel-parameters.txt should be updated. > > > > Didn't realize Documentation/kernel-parameters.txt had reference and even a > runtime parameter to control this! I always enabled CONFIG_PRINTK_TIME > to get timestamps. Here's an updated patch. > > As for the cpuid with the timestamp, the timestamp that is being > is the printed the cpu's time stamp.
Do we really need this information on UP kernels? Why don't you add another option for this feature? Marcin --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] printk: Print cpuid along with the timestamp with ...
, Ravikiran G Thirumalai
, (Thu Sep 18, 12:37 pm)
Re: [PATCH] printk: Print cpuid along with the timestamp w ...
, Andrew Morton
, (Thu Sep 18, 12:51 pm)
Re: [PATCH] printk: Print cpuid along with the timestamp w ...
, Ravikiran G Thirumalai
, (Thu Sep 18, 5:35 pm)
Re: [PATCH] printk: Print cpuid along with the timestamp w ...
, Marcin Slusarz
, (Fri Sep 19, 10:15 am)
Re: [PATCH] printk: Print cpuid along with the timestamp w ...
, Ravikiran G Thirumalai
, (Fri Sep 19, 11:39 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v2 11/11] sched: update tg->shares after cpu.shares write
Ingo Molnar
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Eric W. Biederman
Re: init's children list is long and slows reaping children.
Jeffrey V. Merkey
Re: Versioning file system
git
:
Matthieu Moy
Re: Bugs in Gitosis
Daniel Barkalow
Re: About git and the use of SHA-1
David Lang
Re: mingw, windows, crlf/lf, and git
Shawn O. Pearce
Re: Bugs in Gitosis
Junio C Hamano
Re: [PATCH 14/21] Convert ce_path_match() to use struct pathspec
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
David Miller
Re: [PATCH] ipv6: fix display of local and remote sit endpoints
Cong Wang
Re: [PATCH] s2io: add dynamic LRO disable support
Tobacco New Year Promo
Eric Dumazet
Re: [PATCH] net: implement emergency route cache rebulds when gc_elasticity is exc...
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
of/flattree: merge early_init_dt_scan_memory() common code
Linux Kernel Mailing List
b43: N-PHY: add some registers and structs definitions
Linux Kernel Mailing List
powerpc: Move /proc/ppc64 to /proc/powerpc and add symlink
Linux Kernel Mailing List
drivers/acpi: use kasprintf
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
Tony Abernethy
Re: The Atheros story in much fewer words
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate