login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
20
Re: [PATCH 2/4] [-mm patch] Add nodemask_t's size and NR_FREE_PAGES's value to vmcoreinfo_data.
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Ken'ichi Ohmichi <oomichi@...>
To: David Rientjes <rientjes@...>
Cc: Andrew Morton <akpm@...>, Adrian Bunk <bunk@...>, kexec-ml <kexec@...>, lkml <linux-kernel@...>
Subject:
Re: [PATCH 2/4] [-mm patch] Add nodemask_t's size and NR_FREE_PAGES's value to vmcoreinfo_data.
Date: Thursday, September 20, 2007 - 1:16 am
Hi David, David Rientjes wrote:
quoted text
> On Fri, 14 Sep 2007, Ken'ichi Ohmichi wrote: > >> diff -rpuN a/include/linux/kexec.h b/include/linux/kexec.h >> --- a/include/linux/kexec.h 2007-09-10 23:28:42.000000000 +0900 >> +++ b/include/linux/kexec.h 2007-09-10 23:29:52.000000000 +0900 >> @@ -132,11 +132,16 @@ unsigned long paddr_vmcoreinfo_note(void >> #define SIZE(name) \ >> vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \ >> (unsigned long)sizeof(struct name)) >> +#define TYPEDEF_SIZE(name) \ >> + vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \ >> + (unsigned long)sizeof(name)) >> #define OFFSET(name, field) \ >> vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \ >> (unsigned long)&(((struct name *)0)->field)) >> #define LENGTH(name, value) \ >> vmcoreinfo_append_str("LENGTH(%s)=%lu\n", #name, (unsigned long)value) >> +#define NUMBER(name) \ >> + vmcoreinfo_append_str("NUMBER(%s)=%ld\n", #name, (long)name) >> #define CONFIG(name) \ >> vmcoreinfo_append_str("CONFIG_%s=y\n", #name) >> > > The #define SIZE() should be renamed STRUCT_SIZE() since it's always returning the size of the struct with a given name. This would allow TYPEDEF_SIZE() to simply become SIZE() since it need not be used exclusively for typedefs.
Thank you for the comment. That sounds good, I'll post a new patch including it. Thanks Ken'ichi Ohmichi -
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 0/4] [-mm patch] Cleanup add-vmcoreinfo.patch v2
, Ken'ichi Ohmichi
, (Thu Sep 13, 10:49 pm)
[PATCH 4/4] [-mm patch] Add a prefix "VMCOREINFO_" to the v...
, Ken'ichi Ohmichi
, (Thu Sep 13, 11:00 pm)
Re: [PATCH 4/4] [-mm patch] Add a prefix "VMCOREINFO_" to t...
, Andrew Morton
, (Fri Sep 14, 10:03 pm)
Re: [PATCH 4/4] [-mm patch] Add a prefix "VMCOREINFO_" to t...
, Ken'ichi Ohmichi
, (Tue Sep 25, 4:59 am)
Re: [PATCH 4/4] [-mm patch] Add a prefix "VMCOREINFO_" to t...
, Ken'ichi Ohmichi
, (Thu Sep 20, 1:28 am)
[PATCH 6/4] [-mm patch] use the existing offsetof().
, Ken'ichi Ohmichi
, (Thu Sep 20, 1:32 am)
Re: [PATCH 6/4] [-mm patch] use the existing offsetof().
, Satyam Sharma
, (Thu Sep 20, 8:28 am)
Re: [PATCH 6/4] [-mm patch] use the existing offsetof().
, Ken'ichi Ohmichi
, (Tue Sep 25, 4:50 am)
[PATCH 5/4] [-mm patch] Rename macros returning the size.
, Ken'ichi Ohmichi
, (Thu Sep 20, 1:30 am)
Re: [PATCH 5/4] [-mm patch] Rename macros returning the size.
, Satyam Sharma
, (Thu Sep 20, 8:21 am)
Re: [PATCH 5/4] [-mm patch] Rename macros returning the size.
, Ken'ichi Ohmichi
, (Tue Sep 25, 4:49 am)
Re: [PATCH 5/4] [-mm patch] Rename macros returning the size.
, David Rientjes
, (Thu Sep 20, 2:40 pm)
[PATCH 3/4] [-mm patch] Use the existing ia64_tpa() instead...
, Ken'ichi Ohmichi
, (Thu Sep 13, 10:58 pm)
[PATCH 2/4] [-mm patch] Add nodemask_t's size and NR_FREE_P...
, Ken'ichi Ohmichi
, (Thu Sep 13, 10:56 pm)
Re: [PATCH 2/4] [-mm patch] Add nodemask_t's size and NR_FR...
, David Rientjes
, (Thu Sep 13, 11:36 pm)
Re: [PATCH 2/4] [-mm patch] Add nodemask_t's size and NR_FR...
, Ken'ichi Ohmichi
, (Thu Sep 20, 1:16 am)
[PATCH 1/4] [-mm patch] Cleanup the coding style according ...
, Ken'ichi Ohmichi
, (Thu Sep 13, 10:53 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Cliffe
Re: [RFC 0/5] [TALPA] Intro to a linux interface for on access scanning
Amit K. Arora
[RFC] Heads up on sys_fallocate()
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Andrew Morton
Re: [RFC/PATCH] Documentation of kernel messages
linux-netdev
:
David Miller
[GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Radu Rendec
Endianness problem with u32 classifier hash masks
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
957 guests
online.
Syndicate