Thread (14 messages) 14 messages, 3 authors, 2012-08-23

Re: [PATCH 2/5] trace-cmd: Use tracing directory to count CPUs

From: Masami Hiramatsu <hidden>
Date: 2012-08-23 02:02:02
Also in: lkml, qemu-devel

(2012/08/22 22:41), Steven Rostedt wrote:
On Wed, 2012-08-22 at 17:43 +0900, Yoshihiro YUNOMAE wrote:
quoted
From: Masami Hiramatsu <redacted>

Count debugfs/tracing/per_cpu/cpu* to determine the
number of CPUs.
I'm curious, do you find that sysconf doesn't return the # of CPUs the
system has?
No, sysconf returns the number of hosts CPUs, not guests.
I've had boxes where the per_cpu/cpu* had more cpus than the
box actually holds. But this was a bug in the kernel, not the tool. This
change log needs to have rational instead of just explaining what the
patch does.
Ah, I see. Hmm, then this should be enabled by a command line
option or an environment variable.

Thank you,


-- 
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: masami.hiramatsu.pt@hitachi.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help