login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
19
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) with _RET_IP_.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Pekka Enberg
Subject:
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) with _RET_IP_.
Date: Tuesday, August 19, 2008 - 11:59 am
Christoph Lameter wrote:
quoted text
> Eduard - Gabriel Munteanu wrote: >> On Tue, Aug 19, 2008 at 01:14:01PM -0500, Christoph Lameter wrote: >>> Eduard - Gabriel Munteanu wrote: >>> >>>> void *kmem_cache_alloc(struct kmem_cache *s, gfp_t gfpflags) >>>> { >>>> - return slab_alloc(s, gfpflags, -1, __builtin_return_address(0)); >>>> + return slab_alloc(s, gfpflags, -1, (void *) _RET_IP_); >>>> } >>> Could you get rid of the casts by changing the type of parameter of slab_alloc()? >> I just looked at it and it isn't a trivial change. slab_alloc() calls >> other functions which expect a void ptr. Even if slab_alloc() were to >> take an unsigned long and then cast it to a void ptr, other functions do >> call slab_alloc() with void ptr arguments (so the casts would move >> there). >> >> I'd rather have this merged as it is and change things later, so that >> kmemtrace gets some testing from Pekka and others. >> > > Well maybe this patch will do it then: > > Subject: slub: Use _RET_IP and use "unsigned long" for kernel text addresses > > Use _RET_IP_ instead of buildint_return_address() and make slub use unsigned long > instead of void * for addresses. > > Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Heh, heh. I'm happy to take your patch or alternatively you can ACK mine (which is slightly different):
http://lkml.org/lkml/2008/8/19/336
--
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 1/5] Revert "kmemtrace: fix printk format warnings"
, Eduard - Gabriel Mun ...
, (Tue Aug 19, 10:43 am)
[PATCH 2/5] kmemtrace: Better alternative to "kmemtrace: f ...
, Eduard - Gabriel Mun ...
, (Tue Aug 19, 10:43 am)
[PATCH 3/5] SLUB: Replace __builtin_return_address(0) with ...
, Eduard - Gabriel Mun ...
, (Tue Aug 19, 10:43 am)
[PATCH 4/5] kmemtrace: SLUB hooks.
, Eduard - Gabriel Mun ...
, (Tue Aug 19, 10:43 am)
[PATCH 5/5] kmemtrace: Fix 2 typos in documentation.
, Eduard - Gabriel Mun ...
, (Tue Aug 19, 10:43 am)
Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings"
, Randy.Dunlap
, (Tue Aug 19, 10:51 am)
Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings"
, Eduard - Gabriel Mun ...
, (Tue Aug 19, 10:54 am)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Christoph Lameter
, (Tue Aug 19, 11:14 am)
Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings"
, Mathieu Desnoyers
, (Tue Aug 19, 11:16 am)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Eduard - Gabriel Mun ...
, (Tue Aug 19, 11:24 am)
Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings"
, Eduard - Gabriel Mun ...
, (Tue Aug 19, 11:32 am)
Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings"
, Frank Ch. Eigler
, (Tue Aug 19, 11:47 am)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Pekka J Enberg
, (Tue Aug 19, 11:50 am)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Christoph Lameter
, (Tue Aug 19, 11:56 am)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Pekka Enberg
, (Tue Aug 19, 11:59 am)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Eduard - Gabriel Mun ...
, (Tue Aug 19, 12:05 pm)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Pekka Enberg
, (Tue Aug 19, 12:09 pm)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Pekka Enberg
, (Tue Aug 19, 12:09 pm)
Re: [PATCH 4/5] kmemtrace: SLUB hooks.
, Pekka Enberg
, (Tue Aug 19, 12:10 pm)
Re: [PATCH 5/5] kmemtrace: Fix 2 typos in documentation.
, Pekka Enberg
, (Tue Aug 19, 12:10 pm)
Re: [PATCH 2/5] kmemtrace: Better alternative to "kmemtrac ...
, Pekka Enberg
, (Tue Aug 19, 12:24 pm)
Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings"
, Pekka Enberg
, (Tue Aug 19, 12:25 pm)
Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings"
, Pekka Enberg
, (Tue Aug 19, 12:27 pm)
Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings"
, Randy.Dunlap
, (Tue Aug 19, 12:32 pm)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Pekka Enberg
, (Tue Aug 19, 1:16 pm)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Christoph Lameter
, (Tue Aug 19, 1:17 pm)
Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings"
, Mathieu Desnoyers
, (Tue Aug 19, 1:23 pm)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Christoph Lameter
, (Tue Aug 19, 1:23 pm)
Re: [PATCH 3/5] SLUB: Replace __builtin_return_address(0) ...
, Pekka Enberg
, (Tue Aug 19, 1:47 pm)
Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings"
, Eduard - Gabriel Mun ...
, (Tue Aug 19, 2:37 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Eric Sandeen
Re: [PATCH] xfs: do not pass unused params to xfs_flush_pages
Daniel Hazelton
Re: x86: 4kstacks default
Rusty Russell
Re: 2.6.22-rc3-mm1
Jeffrey V. Merkey
Re: Versioning file system
Matt Mackall
Re: [RFD] Documentation/HOWTO translated into Japanese
linux-netdev
:
gregkh
Patch "IPv6: keep route for tentative address" has been added to the 2.6.34-stable...
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
Paul Gortmaker
[PATCH net-next 09/16] tipc: Relocate trivial link status functions to header file
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
git
:
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Junio C Hamano
Re: [PATCH] http-push: making HTTP push more robust and more user-friendly
Oliver Kullmann
Re: how to move with history?
Alex Riesen
Re: git exclude patterns for directory
Andreas Ericsson
Re: why not TortoiseGit
openbsd-misc
:
Damien Miller
Re: Patching a SSH 'Weakness'
Stuart Henderson
Re: Apache Seg Fault after upgrade to 4.6 stable
Úlfar M. E. Johnson
installing openbsd in xen
Brian
CARP multicast and ADSL bridge
Eric Furman
Re: Defending OpenBSD Performance
git-commits-head
:
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
Staging: et131x: prune all the debug code
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
USB: g_multi: Multifunction Composite Gadget added
Colocation donated by:
Syndicate