login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Ken'ichi Ohmichi
Subject:
Re: [PATCH 2/4] [-mm patch] Add nodemask_t's size and NR_FREE_PAGES's value to vmcoreinfo_data.
Date: Wednesday, September 19, 2007 - 10:16 pm
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, 7:49 pm)
[PATCH 1/4] [-mm patch] Cleanup the coding style accordin ...
, Ken'ichi Ohmichi
, (Thu Sep 13, 7:53 pm)
[PATCH 2/4] [-mm patch] Add nodemask_t's size and NR_FREE ...
, Ken'ichi Ohmichi
, (Thu Sep 13, 7:56 pm)
[PATCH 3/4] [-mm patch] Use the existing ia64_tpa() inste ...
, Ken'ichi Ohmichi
, (Thu Sep 13, 7:58 pm)
[PATCH 4/4] [-mm patch] Add a prefix "VMCOREINFO_" to the ...
, Ken'ichi Ohmichi
, (Thu Sep 13, 8:00 pm)
Re: [PATCH 2/4] [-mm patch] Add nodemask_t's size and NR_ ...
, David Rientjes
, (Thu Sep 13, 8:36 pm)
Re: [PATCH 4/4] [-mm patch] Add a prefix "VMCOREINFO_" to ...
, Andrew Morton
, (Fri Sep 14, 7:03 pm)
Re: [PATCH 2/4] [-mm patch] Add nodemask_t's size and NR_ ...
, Ken'ichi Ohmichi
, (Wed Sep 19, 10:16 pm)
Re: [PATCH 4/4] [-mm patch] Add a prefix "VMCOREINFO_" to ...
, Ken'ichi Ohmichi
, (Wed Sep 19, 10:28 pm)
[PATCH 5/4] [-mm patch] Rename macros returning the size.
, Ken'ichi Ohmichi
, (Wed Sep 19, 10:30 pm)
[PATCH 6/4] [-mm patch] use the existing offsetof().
, Ken'ichi Ohmichi
, (Wed Sep 19, 10:32 pm)
Re: [PATCH 5/4] [-mm patch] Rename macros returning the size.
, Satyam Sharma
, (Thu Sep 20, 5:21 am)
Re: [PATCH 6/4] [-mm patch] use the existing offsetof().
, Satyam Sharma
, (Thu Sep 20, 5:28 am)
Re: [PATCH 5/4] [-mm patch] Rename macros returning the size.
, David Rientjes
, (Thu Sep 20, 11:40 am)
Re: [PATCH 5/4] [-mm patch] Rename macros returning the size.
, Ken'ichi Ohmichi
, (Tue Sep 25, 1:49 am)
Re: [PATCH 6/4] [-mm patch] use the existing offsetof().
, Ken'ichi Ohmichi
, (Tue Sep 25, 1:50 am)
Re: [PATCH 4/4] [-mm patch] Add a prefix "VMCOREINFO_" to ...
, Ken'ichi Ohmichi
, (Tue Sep 25, 1:59 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Benjamin Herrenschmidt
[git pull] Please pull powerpc.git merge branch
Ingo Molnar
Re: [GIT PULL] time.c - respin
Jens Axboe
Re: [PATCH 5/7] block: Find bio sector offset given idx and offset
git
:
Mike Miller
git message
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Christian MICHON
Re: VCS comparison table
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
Documentation/timers/hpet_example.c: only build on X86
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
Linux Kernel Mailing List
staging: android: binder: Fix use of euid
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
openbsd-misc
:
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Christian Weisgerber
Re: CARP with a single public IP address
Marco Peereboom
Re: OpenBSD culture?
KURS ENGLESKOG JEZIKA NA 10 CD-a
AUDIO-VIZUELNA METODA UCENJA ENGLESKOG JEZIKA na 10 CD-a
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Colocation donated by:
Syndicate