RE: [RFC PATCH] Add TRACE_IRQFLAGS_SUPPORT, LOCKDEP_SUPPORT then enable ftrace for ia64
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
- Subject: RE: [RFC PATCH] Add TRACE_IRQFLAGS_SUPPORT, LOCKDEP_SUPPORT then enable ftrace for ia64
- From: "Luck, Tony" <tony.luck@xxxxxxxxx>
- Date: Thu, 3 Sep 2009 09:02:52 -0700
- Accept-language: en-US
- Acceptlanguage: en-US
- Cc: Ingo Molnar <mingo@xxxxxxx>, Luming Yu <luming.yu@xxxxxxxxx>, Christoph Hellwig <hch@xxxxxxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, "linux-ia64@xxxxxxxxxxxxxxx" <linux-ia64@xxxxxxxxxxxxxxx>, "Yu, Fenghua" <fenghua.yu@xxxxxxxxx>, Felix Blyakher <felixb@xxxxxxx>, "Li, Shaohua" <shaohua.li@xxxxxxxxx>, Bob Picco <bob.picco@xxxxxx>
- In-reply-to: <1251967590.7447.0.camel@twins>
- List-id: <linux-ia64.vger.kernel.org>
- References: <3877989d0908272018va6ee8f7n7ab2838fdf1b26e6@xxxxxxxxxxxxxx> <20090828062212.GB11552@xxxxxxx> <57C9024A16AD2D4C97DC78E552063EA3E038DE7E@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1251967590.7447.0.camel@twins>
- Thread-index: AcoscxAX4xrUMNQwRNqXR+ofRclicwAPCJmw
- Thread-topic: [RFC PATCH] Add TRACE_IRQFLAGS_SUPPORT, LOCKDEP_SUPPORT then enable ftrace for ia64
> > #ifdef CONFIG_LOCKDEP
> > #define PERCPU_PAGE_SHIFT 20 /* Need a Megabyte for lockdep */
> > #else
> > #define PERCPU_PAGE_SHIFT 16 /* 64K should be enough for normal use */
> > #endif
>
> Hmm, isn't all that percpu stuff in a special section, who's size you
> can query at boot time and set-up accordingly?
The size is a build time parameter (must match with a supported TLB page
size for ia64 ... i.e. even power of two ... so 64K, 256K, 1M, 4M are all
possible, but 128K, 512K, 2M, ... are not).
Any code that includes the right header files can look at PERCPU_PAGE_SHIFT
(or PERCPU_PAGE_SIZE) and make decisions about things. But in the
lockdep case the extra percpu space is statically allocated, so the special
section overflows and results in a build failure.
-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]