From gregkh@suse.de Sat Jan 22 18:44:54 2011 From: Greg KH To: kernel@lists.opensuse.org Subject: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sat, 22 Jan 2011 10:45:39 -0800 Message-ID: <20110122184539.GA2979@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3027824074661704678==" --===============3027824074661704678== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi all, The preload kmp is failing again in Kernel:stable. I can't seem to figure out where the "canonical" version of this code is at in order to fix it. Anyone know which repo is the "real" one? Is it the one in Kernel:HEAD? If so, it's failing there as well :) Actually, why do we require this kmp in the first place? I'm getting tired of having it keep the Tumbleweed kernel updates from pushing out to users properly. If it's so necessary, shouldn't we merge the thing upstream? thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============3027824074661704678==-- From gregkh@suse.de Sat Jan 22 18:56:43 2011 From: Greg KH To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sat, 22 Jan 2011 10:57:31 -0800 Message-ID: <20110122185731.GA3349@suse.de> In-Reply-To: <20110122184539.GA2979@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0984486644524349277==" --===============0984486644524349277== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Sat, Jan 22, 2011 at 10:45:39AM -0800, Greg KH wrote: > Hi all, > > The preload kmp is failing again in Kernel:stable. I can't seem to > figure out where the "canonical" version of this code is at in order to > fix it. > > Anyone know which repo is the "real" one? Is it the one in Kernel:HEAD? > If so, it's failing there as well :) And please don't tell me that the only "tree" for the preload.tar.gz file is in the build system packages, surely it's kept in a tree somewhere else so we can track modifications for it and the like, right? thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============0984486644524349277==-- From bjorn.lie@gmail.com Sat Jan 22 19:16:02 2011 From: =?utf-8?q?Bj=C3=B8rn?= Lie To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sat, 22 Jan 2011 20:15:55 +0100 Message-ID: <1295723755.2465.2.camel@embla.jkn> In-Reply-To: <20110122185731.GA3349@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5200084959410112171==" --===============5200084959410112171== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit lø., 22.01.2011 kl. 10.57 -0800, skrev Greg KH: > On Sat, Jan 22, 2011 at 10:45:39AM -0800, Greg KH wrote: > > Hi all, > > > > The preload kmp is failing again in Kernel:stable. I can't seem to > > figure out where the "canonical" version of this code is at in order to > > fix it. > > > > Anyone know which repo is the "real" one? Is it the one in Kernel:HEAD? > > If so, it's failing there as well :) > > And please don't tell me that the only "tree" for the preload.tar.gz > file is in the build system packages, surely it's kept in a tree > somewhere else so we can track modifications for it and the like, right? > > thanks, > > greg k-h Does this help? bjolie(a)embla:~/Skrivebord> osc meta pkg openSUSE:Factory/preload Preloads Files into System Cache for Faster Booting Preload lists files to load into the system cache. This shortens system boot time if used correctly. //Bjørn -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============5200084959410112171==-- From matz@suse.de Sat Jan 22 19:16:49 2011 From: Michael Matz To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sat, 22 Jan 2011 20:16:47 +0100 Message-ID: In-Reply-To: <20110122185731.GA3349@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1593121625767390758==" --===============1593121625767390758== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, On Sat, 22 Jan 2011, Greg KH wrote: > > The preload kmp is failing again in Kernel:stable. I can't seem to > > figure out where the "canonical" version of this code is at in order > > to fix it. > > > > Anyone know which repo is the "real" one? Is it the one in > > Kernel:HEAD? If so, it's failing there as well :) > > And please don't tell me that the only "tree" for the preload.tar.gz > file is in the build system packages, surely it's kept in a tree > somewhere else so we can track modifications for it and the like, right? Right. Now, look at preload.spec and you'll see. Hint: https://svn.suse.de/svn/desktop/trunk/preload Ciao, Michael. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============1593121625767390758==-- From gregkh@suse.de Sat Jan 22 19:31:54 2011 From: Greg KH To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sat, 22 Jan 2011 11:31:29 -0800 Message-ID: <20110122193129.GA3715@suse.de> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6381368356011083186==" --===============6381368356011083186== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Sat, Jan 22, 2011 at 08:16:47PM +0100, Michael Matz wrote: > Hi, > > On Sat, 22 Jan 2011, Greg KH wrote: > > > > The preload kmp is failing again in Kernel:stable. I can't seem to > > > figure out where the "canonical" version of this code is at in order > > > to fix it. > > > > > > Anyone know which repo is the "real" one? Is it the one in > > > Kernel:HEAD? If so, it's failing there as well :) > > > > And please don't tell me that the only "tree" for the preload.tar.gz > > file is in the build system packages, surely it's kept in a tree > > somewhere else so we can track modifications for it and the like, right? > > Right. Now, look at preload.spec and you'll see. > Hint: https://svn.suse.de/svn/desktop/trunk/preload Ah, thanks, sorry, missed that. {sigh} Subversion, it's as if someone wants to keep me from making any changes to this code... greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============6381368356011083186==-- From gregkh@suse.de Sat Jan 22 19:32:15 2011 From: Greg KH To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sat, 22 Jan 2011 11:32:33 -0800 Message-ID: <20110122193233.GB3715@suse.de> In-Reply-To: <1295723755.2465.2.camel@embla.jkn> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0103065565074670221==" --===============0103065565074670221== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Sat, Jan 22, 2011 at 08:15:55PM +0100, Bjørn Lie wrote: > lø., 22.01.2011 kl. 10.57 -0800, skrev Greg KH: > > On Sat, Jan 22, 2011 at 10:45:39AM -0800, Greg KH wrote: > > > Hi all, > > > > > > The preload kmp is failing again in Kernel:stable. I can't seem to > > > figure out where the "canonical" version of this code is at in order to > > > fix it. > > > > > > Anyone know which repo is the "real" one? Is it the one in Kernel:HEAD? > > > If so, it's failing there as well :) > > > > And please don't tell me that the only "tree" for the preload.tar.gz > > file is in the build system packages, surely it's kept in a tree > > somewhere else so we can track modifications for it and the like, right? > > > > thanks, > > > > greg k-h > > Does this help? > > > bjolie(a)embla:~/Skrivebord> osc meta pkg openSUSE:Factory/preload > > Preloads Files into System Cache for Faster Booting > Preload lists files to load into the system cache. This > shortens system > boot time if used correctly. > Yeah, I saw that but based on all of the other versions floating around, I didn't know to believe it or not... thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============0103065565074670221==-- From gregkh@suse.de Sat Jan 22 19:39:35 2011 From: Greg KH To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sat, 22 Jan 2011 11:40:21 -0800 Message-ID: <20110122194021.GA4224@suse.de> In-Reply-To: <20110122193129.GA3715@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7542144491806420126==" --===============7542144491806420126== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Sat, Jan 22, 2011 at 11:31:29AM -0800, Greg KH wrote: > On Sat, Jan 22, 2011 at 08:16:47PM +0100, Michael Matz wrote: > > Hi, > > > > On Sat, 22 Jan 2011, Greg KH wrote: > > > > > > The preload kmp is failing again in Kernel:stable. I can't seem to > > > > figure out where the "canonical" version of this code is at in order > > > > to fix it. > > > > > > > > Anyone know which repo is the "real" one? Is it the one in > > > > Kernel:HEAD? If so, it's failing there as well :) > > > > > > And please don't tell me that the only "tree" for the preload.tar.gz > > > file is in the build system packages, surely it's kept in a tree > > > somewhere else so we can track modifications for it and the like, right? > > > > Right. Now, look at preload.spec and you'll see. > > Hint: https://svn.suse.de/svn/desktop/trunk/preload > > Ah, thanks, sorry, missed that. > > {sigh} > > Subversion, it's as if someone wants to keep me from making any changes > to this code... And I can't seem to find the kernel portion of the code in that repo, but I might be missing something... confused, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============7542144491806420126==-- From meissner@suse.de Sun Jan 23 08:28:35 2011 From: Marcus Meissner To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sun, 23 Jan 2011 09:28:33 +0100 Message-ID: <20110123082833.GB14857@suse.de> In-Reply-To: <20110122194021.GA4224@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3084301168175270997==" --===============3084301168175270997== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sat, Jan 22, 2011 at 11:40:21AM -0800, Greg KH wrote: > On Sat, Jan 22, 2011 at 11:31:29AM -0800, Greg KH wrote: > > On Sat, Jan 22, 2011 at 08:16:47PM +0100, Michael Matz wrote: > > > Hi, > > >=20 > > > On Sat, 22 Jan 2011, Greg KH wrote: > > >=20 > > > > > The preload kmp is failing again in Kernel:stable. I can't seem to= =20 > > > > > figure out where the "canonical" version of this code is at in orde= r=20 > > > > > to fix it. > > > > >=20 > > > > > Anyone know which repo is the "real" one? Is it the one in=20 > > > > > Kernel:HEAD? If so, it's failing there as well :) > > > >=20 > > > > And please don't tell me that the only "tree" for the preload.tar.gz = > > > > file is in the build system packages, surely it's kept in a tree=20 > > > > somewhere else so we can track modifications for it and the like, rig= ht? > > >=20 > > > Right. Now, look at preload.spec and you'll see. > > > Hint: https://svn.suse.de/svn/desktop/trunk/preload > >=20 > > Ah, thanks, sorry, missed that. > >=20 > > {sigh} > >=20 > > Subversion, it's as if someone wants to keep me from making any changes > > to this code... >=20 > And I can't seem to find the kernel portion of the code in that repo, > but I might be missing something... >=20 > confused, The build does: mkdir source cp stap/preloadtrace.stp stap/Kbuild source touch source/preloadtrace.c kernels=3D`cd /usr/lib/debug/lib/modules && ls -1d *-$flavor ` cp -r source obj/$flavor make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=3D$PWD/obj/$flavor stap -p 4 -DMAXSTRINGSIZE=3D300 -DMAXSKIPPED=3D2000 -r $kernels -m preloadtr= ace obj/$flavor/preloadtrace.stp mv preloadtrace.ko obj/$flavor So I guess it is basically building on an empty .c file but with stap script = in. Ciao, Marcus --=20 To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============3084301168175270997==-- From stefan.seyfried@googlemail.com Sun Jan 23 18:34:07 2011 From: Stefan Seyfried To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sun, 23 Jan 2011 19:09:34 +0100 Message-ID: <20110123190934.6e2f4b5f@susi.home.s3e.de> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3864319122978660331==" --===============3864319122978660331== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Sat, 22 Jan 2011 20:16:47 +0100 (CET) Michael Matz wrote: > Right. Now, look at preload.spec and you'll see. > Hint: https://svn.suse.de/svn/desktop/trunk/preload Connection timed out. -- Stefan Seyfried "Dispatch war rocket Ajax to bring back his body!" -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============3864319122978660331==-- From gregkh@suse.de Sun Jan 23 19:20:26 2011 From: Greg KH To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Mon, 24 Jan 2011 04:20:38 +0900 Message-ID: <20110123192038.GA8663@suse.de> In-Reply-To: <20110123082833.GB14857@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8121109440120803356==" --===============8121109440120803356== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sun, Jan 23, 2011 at 09:28:33AM +0100, Marcus Meissner wrote: > The build does: > mkdir source > cp stap/preloadtrace.stp stap/Kbuild source > touch source/preloadtrace.c > kernels=3D`cd /usr/lib/debug/lib/modules && ls -1d *-$flavor ` > cp -r source obj/$flavor > make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=3D$PWD/obj/$flav= or > stap -p 4 -DMAXSTRINGSIZE=3D300 -DMAXSKIPPED=3D2000 -r $kernels -m preload= trace obj/$flavor/preloadtrace.stp > mv preloadtrace.ko obj/$flavor >=20 > So I guess it is basically building on an empty .c file but with stap scrip= t in. Thanks for the help. As I'm stuck in Tokyo due to plane problems, I tried to take some time to look into fixing it. Building the preload module from the svn tree seems to work fine, but from the spec file, it dies with the following errors: /tmp/stapr2YkJ8/preloadtrace.c: In function 'function_gettimeofday_ns': /tmp/stapr2YkJ8/preloadtrace.c:2291:3: error: implicit declaration of functi= on '_stp_gettimeofday_ns' /tmp/stapr2YkJ8/preloadtrace.c: In function 'systemtap_module_init': /tmp/stapr2YkJ8/preloadtrace.c:5448:3: error: implicit declaration of functi= on '_stp_init_time' /tmp/stapr2YkJ8/preloadtrace.c:5703:4: error: implicit declaration of functi= on '_stp_kill_time' make[3]: *** [/tmp/stapr2YkJ8/preloadtrace.o] Error 1 Which kind of implies that it's a system tap issue somewhere. Do we need to update the system tap version in Kernel:HEAD somehow? Anyone have any ideas? thanks, greg k-h --=20 To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============8121109440120803356==-- From gregkh@suse.de Sun Jan 23 19:20:31 2011 From: Greg KH To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Mon, 24 Jan 2011 04:20:54 +0900 Message-ID: <20110123192054.GB8663@suse.de> In-Reply-To: <20110123190934.6e2f4b5f@susi.home.s3e.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8946780876410836746==" --===============8946780876410836746== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Sun, Jan 23, 2011 at 07:09:34PM +0100, Stefan Seyfried wrote: > On Sat, 22 Jan 2011 20:16:47 +0100 (CET) > Michael Matz wrote: > > > Right. Now, look at preload.spec and you'll see. > > Hint: https://svn.suse.de/svn/desktop/trunk/preload > > Connection timed out. It's behind the suse firewall :( -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============8946780876410836746==-- From matz@suse.de Sun Jan 23 19:42:36 2011 From: Michael Matz To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sun, 23 Jan 2011 20:42:35 +0100 Message-ID: In-Reply-To: <20110122194021.GA4224@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2068155327096853593==" --===============2068155327096853593== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, On Sat, 22 Jan 2011, Greg KH wrote: > > > Right. Now, look at preload.spec and you'll see. Hint: > > > https://svn.suse.de/svn/desktop/trunk/preload > > > > Ah, thanks, sorry, missed that. > > > > {sigh} > > > > Subversion, it's as if someone wants to keep me from making any > > changes to this code... > > And I can't seem to find the kernel portion of the code in that repo, > but I might be missing something... Well, preload doesn't contain any kernel code, modules or otherwise. It contains a systemtap script. And the latter happens to be implemented via kernel modules. Not my fault. Ciao, Michael. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============2068155327096853593==-- From gregkh@suse.de Sun Jan 23 20:15:22 2011 From: Greg KH To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Mon, 24 Jan 2011 05:16:24 +0900 Message-ID: <20110123201624.GA9546@suse.de> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3893814944622415714==" --===============3893814944622415714== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Sun, Jan 23, 2011 at 08:42:35PM +0100, Michael Matz wrote: > Hi, > > On Sat, 22 Jan 2011, Greg KH wrote: > > > > > Right. Now, look at preload.spec and you'll see. Hint: > > > > https://svn.suse.de/svn/desktop/trunk/preload > > > > > > Ah, thanks, sorry, missed that. > > > > > > {sigh} > > > > > > Subversion, it's as if someone wants to keep me from making any > > > changes to this code... > > > > And I can't seem to find the kernel portion of the code in that repo, > > but I might be missing something... > > Well, preload doesn't contain any kernel code, modules or otherwise. It > contains a systemtap script. And the latter happens to be implemented via > kernel modules. Not my fault. Yeah, in looking at this further, I think I agree, but unwinding the systemtap stuff is a mess... thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============3893814944622415714==-- From jeffm@suse.com Sun Jan 23 22:02:15 2011 From: Jeff Mahoney To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Sun, 23 Jan 2011 17:02:11 -0500 Message-ID: <4D3CA563.3060705@suse.com> In-Reply-To: <20110123192054.GB8663@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7505593495621075880==" --===============7505593495621075880== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/23/2011 02:20 PM, Greg KH wrote: > On Sun, Jan 23, 2011 at 07:09:34PM +0100, Stefan Seyfried wrote: >> On Sat, 22 Jan 2011 20:16:47 +0100 (CET) >> Michael Matz wrote: >> >>> Right. Now, look at preload.spec and you'll see. >>> Hint: https://svn.suse.de/svn/desktop/trunk/preload >> >> Connection timed out. > > It's behind the suse firewall :( Perhaps this should be moved to gitorious then? - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk08pWMACgkQLPWxlyuTD7J2/gCff+0rXD/VS4YwPBcBEAKDawOd mBUAnRg0J/RlvtNj3ziwqB2S5ISzpC/t =+AHq -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============7505593495621075880==-- From stefan.seyfried@googlemail.com Mon Jan 24 07:33:41 2011 From: Stefan Seyfried To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Mon, 24 Jan 2011 08:33:33 +0100 Message-ID: <20110124083333.6f66c7e2@susi.home.s3e.de> In-Reply-To: <4D3CA563.3060705@suse.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2946888120920162414==" --===============2946888120920162414== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Sun, 23 Jan 2011 17:02:11 -0500 Jeff Mahoney wrote: > On 01/23/2011 02:20 PM, Greg KH wrote: > > It's behind the suse firewall :( > > Perhaps this should be moved to gitorious then? Well, it's not like I would *want* to touch this code ;-) -- Stefan Seyfried "Dispatch war rocket Ajax to bring back his body!" -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============2946888120920162414==-- From kkhere.geo@gmail.com Mon Jan 24 12:13:29 2011 From: Kshitij Kulshreshtha To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Mon, 24 Jan 2011 13:05:11 +0100 Message-ID: <4D3D6AF7.8050904@gmail.com> In-Reply-To: <20110123192038.GA8663@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4386541771387769561==" --===============4386541771387769561== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, As on 2011-01-23 20:20, Greg KH did write: > On Sun, Jan 23, 2011 at 09:28:33AM +0100, Marcus Meissner wrote: >> The build does: >> mkdir source >> cp stap/preloadtrace.stp stap/Kbuild source >> touch source/preloadtrace.c >> kernels=3D`cd /usr/lib/debug/lib/modules && ls -1d *-$flavor ` >> cp -r source obj/$flavor >> make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=3D$PWD/obj/$fla= vor >> stap -p 4 -DMAXSTRINGSIZE=3D300 -DMAXSKIPPED=3D2000 -r $kernels -m preloa= dtrace obj/$flavor/preloadtrace.stp >> mv preloadtrace.ko obj/$flavor >> >> So I guess it is basically building on an empty .c file but with stap scri= pt in. >=20 > Thanks for the help. >=20 > As I'm stuck in Tokyo due to plane problems, I tried to take some time > to look into fixing it. Building the preload module from the svn tree > seems to work fine, but from the spec file, it dies with the following > errors: > /tmp/stapr2YkJ8/preloadtrace.c: In function 'function_gettimeofday_ns': > /tmp/stapr2YkJ8/preloadtrace.c:2291:3: error: implicit declaration of func= tion '_stp_gettimeofday_ns' > /tmp/stapr2YkJ8/preloadtrace.c: In function 'systemtap_module_init': > /tmp/stapr2YkJ8/preloadtrace.c:5448:3: error: implicit declaration of func= tion '_stp_init_time' > /tmp/stapr2YkJ8/preloadtrace.c:5703:4: error: implicit declaration of func= tion '_stp_kill_time' > make[3]: *** [/tmp/stapr2YkJ8/preloadtrace.o] Error 1 >=20 > Which kind of implies that it's a system tap issue somewhere. Do we > need to update the system tap version in Kernel:HEAD somehow? >=20 > Anyone have any ideas? The module is able to build with the following change in the spec file. Please see the build log in home:polyconvex:kernel Index: preload.spec =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- preload.spec (revision d148ee1baaccce6c604dcfb4bca7a627) +++ preload.spec (working copy) @@ -71,7 +71,7 @@ kernels=3D`cd /usr/lib/debug/lib/modules && ls -1d *-$flavor ` cp -r source obj/$flavor make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=3D$PWD/obj/$flavor - stap -p 4 -DMAXSTRINGSIZE=3D300 -DMAXSKIPPED=3D2000 -r $kernels -m preloadtrace obj/$flavor/preloadtrace.stp + stap -p 4 -DMAXSTRINGSIZE=3D300 -DMAXSKIPPED=3D2000 -DSTAP_NEED_GETTIMEOFDAY=3D1 -r $kernels -m preloadtrace obj/$flavor/preloadtrace.stp mv preloadtrace.ko obj/$flavor done --=20 Dr. Kshitij Kulshreshtha Institut f=C3=BCr Mathematik, Universit=C3=A4t Paderborn, Warburger Stra=C3=9Fe 100, 33098 Paderborn. B=C3=BCro: A3.235 Privatanschrift: Arnikaweg 62 33100 Paderborn. --=20 To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============4386541771387769561==-- From gregkh@suse.de Mon Jan 24 21:30:18 2011 From: Greg KH To: kernel@lists.opensuse.org Subject: Re: [opensuse-kernel] preload kmp failing in Kernel:stable Date: Tue, 25 Jan 2011 05:31:07 +0800 Message-ID: <20110124213107.GA14257@suse.de> In-Reply-To: <4D3D6AF7.8050904@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7940806846301428103==" --===============7940806846301428103== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 24, 2011 at 01:05:11PM +0100, Kshitij Kulshreshtha wrote: > Hello, >=20 > As on 2011-01-23 20:20, Greg KH did write: > > On Sun, Jan 23, 2011 at 09:28:33AM +0100, Marcus Meissner wrote: > >> The build does: > >> mkdir source > >> cp stap/preloadtrace.stp stap/Kbuild source > >> touch source/preloadtrace.c > >> kernels=3D`cd /usr/lib/debug/lib/modules && ls -1d *-$flavor ` > >> cp -r source obj/$flavor > >> make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=3D$PWD/obj/$f= lavor > >> stap -p 4 -DMAXSTRINGSIZE=3D300 -DMAXSKIPPED=3D2000 -r $kernels -m prel= oadtrace obj/$flavor/preloadtrace.stp > >> mv preloadtrace.ko obj/$flavor > >> > >> So I guess it is basically building on an empty .c file but with stap sc= ript in. > >=20 > > Thanks for the help. > >=20 > > As I'm stuck in Tokyo due to plane problems, I tried to take some time > > to look into fixing it. Building the preload module from the svn tree > > seems to work fine, but from the spec file, it dies with the following > > errors: > > /tmp/stapr2YkJ8/preloadtrace.c: In function 'function_gettimeofday_ns': > > /tmp/stapr2YkJ8/preloadtrace.c:2291:3: error: implicit declaration of fu= nction '_stp_gettimeofday_ns' > > /tmp/stapr2YkJ8/preloadtrace.c: In function 'systemtap_module_init': > > /tmp/stapr2YkJ8/preloadtrace.c:5448:3: error: implicit declaration of fu= nction '_stp_init_time' > > /tmp/stapr2YkJ8/preloadtrace.c:5703:4: error: implicit declaration of fu= nction '_stp_kill_time' > > make[3]: *** [/tmp/stapr2YkJ8/preloadtrace.o] Error 1 > >=20 > > Which kind of implies that it's a system tap issue somewhere. Do we > > need to update the system tap version in Kernel:HEAD somehow? > >=20 > > Anyone have any ideas? >=20 > The module is able to build with the following change in the spec file. > Please see the build log in home:polyconvex:kernel >=20 > Index: preload.spec > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- preload.spec (revision d148ee1baaccce6c604dcfb4bca7a627) > +++ preload.spec (working copy) > @@ -71,7 +71,7 @@ > kernels=3D`cd /usr/lib/debug/lib/modules && ls -1d *-$flavor ` > cp -r source obj/$flavor > make -C /usr/src/linux-obj/%_target_cpu/$flavor modules > M=3D$PWD/obj/$flavor > - stap -p 4 -DMAXSTRINGSIZE=3D300 -DMAXSKIPPED=3D2000 -r $kernels -m > preloadtrace obj/$flavor/preloadtrace.stp > + stap -p 4 -DMAXSTRINGSIZE=3D300 -DMAXSKIPPED=3D2000 > -DSTAP_NEED_GETTIMEOFDAY=3D1 -r $kernels -m preloadtrace > obj/$flavor/preloadtrace.stp > mv preloadtrace.ko obj/$flavor > done Yeah that fixed it! Thanks so much for this, it would have taken me a long time to figure it out. Checking this fix into the different repos now... thanks, greg k-h --=20 To unsubscribe, e-mail: opensuse-kernel+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-kernel+help(a)opensuse.org --===============7940806846301428103==--