login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
25
Re: [PATCH] Uninline kcalloc()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Christoph Lameter <clameter@...>
To: <Valdis.Kletnieks@...>
Cc: Kyle Moffett <mrmacman_g4@...>, Alexey Dobriyan <adobriyan@...>, <akpm@...>, <linux-kernel@...>
Subject:
Re: [PATCH] Uninline kcalloc()
Date: Tuesday, September 25, 2007 - 5:21 pm
On Mon, 24 Sep 2007,
Valdis.Kletnieks@vt.edu
wrote:
quoted text
> I think I looked at that, and it wasn't as easy as it looked, because there > were ugly corner cases for what __builtin_return_address() returned depending > on exactly what did or didn't get inlined. Basically, it's ugly stuff - if you > try to use __builtin_retur_address inside kcalloc to pass to __kmalloc, and > then kcalloc gets inlined, you end up passing not the routine you wanted (the > caller of kcalloc), but the *parent* of that...
Note that this can be done in a clean way in SLUB using slab_alloc() which takes a address parameter as obtained from __builtin_return_address(). -
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] Uninline kcalloc()
, Alexey Dobriyan
, (Sat Sep 22, 4:03 pm)
Re: [PATCH] Uninline kcalloc()
,
, (Mon Sep 24, 1:35 am)
Re: [PATCH] Uninline kcalloc()
, Kyle Moffett
, (Mon Sep 24, 8:59 am)
Re: [PATCH] Uninline kcalloc()
,
, (Mon Sep 24, 9:17 am)
Re: [PATCH] Uninline kcalloc()
, Christoph Lameter
, (Tue Sep 25, 5:21 pm)
Re: [PATCH] Uninline kcalloc()
, Alexey Dobriyan
, (Mon Sep 24, 3:44 am)
Re: [PATCH] Uninline kcalloc()
,
, (Mon Sep 24, 4:13 am)
Re: [PATCH] Uninline kcalloc()
,
, (Mon Sep 24, 3:55 am)
Re: [PATCH] Uninline kcalloc()
, Jan Engelhardt
, (Mon Sep 24, 2:22 am)
Re: [PATCH] Uninline kcalloc()
,
, (Mon Sep 24, 3:24 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
monstr
[PATCH 27/56] microblaze_v2: support for a.out
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Rafael J. Wysocki
[Bug #10493] mips BCM47XX compile error
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
11 users
and
948 guests
online.
Online users
aquasanaxeosc
wowmobileservi
zeekec
strcmp
biologymajorew
caloriecountin
carinsuranceknj
articlemarketi
freebabydiaper
wordpressdirec
deskmatzhgw
Syndicate