From: David Witbrodt <dawitbro@sbcglobal.net>
To: linux-kernel@vger.kernel.org
Cc: Yinghai Lu <yhlu.kernel@gmail.com>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>
Subject: Re: HPET regression in 2.6.26 versus 2.6.25
Date: Fri, 8 Aug 2008 03:32:19 -0700 (PDT) [thread overview]
Message-ID: <890839.70039.qm@web82106.mail.mud.yahoo.com> (raw)
OK, even though I am not a developer, I _hate_ feeling powerless to help...
so I went looking for more details about where the freeze is occuring.
First, I updated my git tree:
===== BEGIN INFO ========================
$ head Makefile
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 27
EXTRAVERSION = -rc2
NAME = Rotary Wombat
# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
# More info can be located in ./README
# Comments in this file are targeted only to the developer, do not
$ git show |head
commit 685d87f7ccc649ab92b55e18e507a65d0e694eb9
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Aug 6 19:24:47 2008 -0700
Revert "pcm_native.c: remove unused label"
This reverts commit 680db0136e0778a0d7e025af7572c6a8d82279e2. The label
is actually used, but hidden behind CONFIG_SND_DEBUG and the horrible
snd_assert() macro.
===== END INFO ========================
Since the last initcall function listed before the freeze was inet_init(),
I decided to try to locate the files involved using 'grep -R'. I found
that inet_init() is defined in 'net/ipv4/af_inet.c'. So, I thought it
wouldn't hurt to print some more info during the kernel boot process, and
I added some debugging printk() calls to af_inetc.:
===== BEGIN DIFF ========================
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 8a3ac1f..8e98094 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1421,14 +1421,17 @@ static int __init inet_init(void)
BUILD_BUG_ON(sizeof(struct inet_skb_parm) > sizeof(dummy_skb->cb));
+ printk(" Calling proto_register(&tcp_prot, 1)\n");
rc = proto_register(&tcp_prot, 1);
if (rc)
goto out;
+ printk(" Calling proto_register(&udp_prot, 1)\n");
rc = proto_register(&udp_prot, 1);
if (rc)
goto out_unregister_tcp_proto;
+ printk(" Calling proto_register(&raw_prot, 1)\n");
rc = proto_register(&raw_prot, 1);
if (rc)
goto out_unregister_udp_proto;
@@ -1437,15 +1440,18 @@ static int __init inet_init(void)
* Tell SOCKET that we are alive...
*/
+ printk(" Calling sock_register()\n");
(void)sock_register(&inet_family_ops);
#ifdef CONFIG_SYSCTL
+ printk(" Calling ip_static_sysctl_init()\n");
ip_static_sysctl_init();
#endif
/*
* Add all the base protocols.
*/
+ printk(" Adding base protocols\n");
if (inet_add_protocol(&icmp_protocol, IPPROTO_ICMP) < 0)
printk(KERN_CRIT "inet_init: Cannot add ICMP protocol\n");
@@ -1459,6 +1465,7 @@ static int __init inet_init(void)
#endif
/* Register the socket-side information for inet_create. */
+ printk(" Initializing lists for inet_create\n");
for (r = &inetsw[0]; r < &inetsw[SOCK_MAX]; ++r)
INIT_LIST_HEAD(r);
@@ -1469,23 +1476,31 @@ static int __init inet_init(void)
* Set the ARP module up
*/
+ printk(" Calling arp_init()\n");
arp_init();
/*
* Set the IP module up
*/
+ printk(" Calling\n");
+
+ printk(" Calling ip_init()\n");
ip_init();
+ printk(" Calling tcp_v4_init()\n");
tcp_v4_init();
/* Setup TCP slab cache for open requests. */
+ printk(" Calling tcp_init()\n");
tcp_init();
/* Setup UDP memory threshold */
+ printk(" Calling udp_init()\n");
udp_init();
/* Add UDP-Lite (RFC 3828) */
+ printk(" Calling udplit4_register()\n");
udplite4_register();
/*
@@ -1509,10 +1524,13 @@ static int __init inet_init(void)
if (init_ipv4_mibs())
printk(KERN_CRIT "inet_init: Cannot init ipv4 mibs\n");
+ printk(" Calling ipv4_proc_init()\n");
ipv4_proc_init();
+ printk(" Calling ipfrag_init()\n");
ipfrag_init();
+ printk(" Calling dev_add_pack(&ip_packet_type)\n");
dev_add_pack(&ip_packet_type);
rc = 0;
===== END DIFF ========================
[Hopefully the text formatting is preserved in the emails. The
archived messages via the web interface have their whitespace
formatting totally destroyed!]
After building and running the kernel, the last line on the terminal was:
Initializing lists for inet_create
So the freeze occurs in this "for" loop (or the loop immediately
following it):
for (r = &inetsw[0]; r < &inetsw[SOCK_MAX]; ++r)
INIT_LIST_HEAD(r);
HTH,
Dave W.
next reply other threads:[~2008-08-08 10:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-08 10:32 David Witbrodt [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-08-08 22:48 David Witbrodt
2008-08-06 4:45 David Witbrodt
2008-08-05 22:16 David Witbrodt
2008-08-05 21:12 David Witbrodt
2008-08-05 14:14 David Witbrodt
2008-08-05 19:19 ` Yinghai Lu
2008-08-04 23:57 David Witbrodt
2008-08-05 13:58 ` Peter Zijlstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=890839.70039.qm@web82106.mail.mud.yahoo.com \
--to=dawitbro@sbcglobal.net \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=yhlu.kernel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome