login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
24
Re: [PATCH] Uninline kcalloc()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jan Engelhardt <jengelh@...>
To: <Valdis.Kletnieks@...>
Cc: Alexey Dobriyan <adobriyan@...>, <akpm@...>, <linux-kernel@...>
Subject:
Re: [PATCH] Uninline kcalloc()
Date: Monday, September 24, 2007 - 2:22 am
On Sep 24 2007 01:35,
Valdis.Kletnieks@vt.edu
wrote:
quoted text
>On Sun, 23 Sep 2007 00:03:49 +0400, Alexey Dobriyan said: > >> -static inline void *kcalloc(size_t n, size_t size, gfp_t flags) >> -{ >> - if (n != 0 && size > ULONG_MAX / n) >> - return NULL; >> - return __kmalloc(n * size, flags | __GFP_ZERO); >> -} >> +void *kcalloc(size_t n, size_t size, gfp_t flags); > >NAK. > >This busticates some pretty subtle code in mm/slab.c that uses >uses __builtin_return_address() for debugging - if you do this, then >the "calling function" gets listed as "kcalloc()" rather than the much more >useful "function that called kcalloc()" (which is what you care about). > >(I remember going around and around multiple times getting those stupid >inlines set up right, so that feature actually did something useful, otherwise >kcalloc and kzalloc didn't report where they were called from).
Since 'inline' is only a hint , should not it be __always_inline, so that __builtin_return_address() always works? -
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
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
David Newall
Re: Slow DOWN, please!!!
Peter Zijlstra
[PATCH 00/23] per device dirty throttling -v8
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
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
git
:
Colocation donated by:
Who's online
There are currently
1 user
and
641 guests
online.
Online users
roundthejollyro
Syndicate