This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: problems with sched tapset on ubuntu precise 3.2.0
- From: Thiago Manel <thiago dot manel at gmail dot com>
- To: Josh Stone <jistone at redhat dot com>
- Cc: David Smith <dsmith at redhat dot com>, "systemtap at sourceware dot org" <systemtap at sourceware dot org>
- Date: Tue, 14 May 2013 17:38:42 -0300
- Subject: Re: problems with sched tapset on ubuntu precise 3.2.0
- References: <CAHiC6b0jFDRAcmkZq-KypjsoFO6kmfDH5S=64WbCbAEY0O1Obg at mail dot gmail dot com> <518947C5 dot 4020001 at redhat dot com> <CAHiC6b0hO=fvwqkfHBaMC=UzCdSA4yKEJSYji-Nk2hSVF5H5dA at mail dot gmail dot com> <51929D85 dot 10508 at redhat dot com>
I will try upgrading to a newer stap, thanks Josh.
... and, to finish this debug session I spotted a compiling problem
(by 'kernel.trace("sched_switch")' --poison-cache --vp 09), see below
make -f scripts/Makefile.build obj=/tmp/stapAJ6lCC/
tracequery_kmod_20
gcc -Wp,-MD,/tmp/stapAJ6lCC/tracequery_kmod_20/.tracequery_kmod_20.o.d
-nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include
-I/usr/src/linux-headers-3.2.0-23-generic/arch/x86/include
-Iarch/x86/include/generated -Iinclude -include
/usr/src/linux-headers-3.2.0-23-generic/include/linux/kconfig.h
-Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security
-fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone
-mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args
-fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1
-DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe
-Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx
-mno-sse2 -mno-3dnow -Wframe-larger-than=1024
-Wno-unused-but-set-variable -fno-omit-frame-pointer
-fno-optimize-sibling-calls -pg -Wdeclaration-after-statement
-Wno-pointer-sign -fno-strict-overflow -fconserve-stack
-DCC_HAVE_ASM_GOTO -g -Wno-implicit-function-declaration -Werror
-I/build/buildd/linux-3.2.0/debian/build/build-generic -DMODULE
-D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(tracequery_kmod_20)"
-D"KBUILD_MODNAME=KBUILD_STR(tracequery_kmod_20)" -c -o
/tmp/stapAJ6lCC/tracequery_kmod_20/.tmp_tracequery_kmod_20.o
/tmp/stapAJ6lCC/tracequery_kmod_20/tracequery_kmod_20.c
/tmp/stapAJ6lCC/tracequery_kmod_20/tracequery_kmod_20.c:23:30: fatal
error: fs/xfs/xfs_types.h: No such file or directory
compilation terminated.
make[1]: *** [/tmp/stapAJ6lCC/tracequery_kmod_20/tracequery_kmod_20.o] Error 1
make: *** [_module_/tmp/stapAJ6lCC/tracequery_kmod_20] Error 2
make: Leaving directory `/usr/src/linux-headers-3.2.0-23-generic'
Spawn waitpid result (0x200): 2
Warning: make exited with status: 2
On Tue, May 14, 2013 at 5:24 PM, Josh Stone <jistone@redhat.com> wrote:
> On 05/08/2013 06:25 AM, Thiago Manel wrote:
>> Systemtap translator/driver (version 1.6/0.152 non-git sources)
>> Copyright (C) 2005-2011 Red Hat, Inc. and others
>> This is free software; see the source for copying conditions.
>> enabled features: AVAHI LIBSQLITE3 NSS BOOST_SHARED_PTR TR1_UNORDERED_MAP NLS
>> Created temporary directory "/tmp/stapNw4kVW"
>> Session arch: x86_64 release: 3.2.0-23-generic
>
> Actually, the problem may just be stap 1.6 versus kernel 3.2. Looking
> back at our release notes, the first we had tested with any 3.x kernel
> was stap 1.7.
>
> And specifically with tracepoints, back then we used to try to compile
> all discovered tracepoint headers together, which we've since decided is
> too fragile. If any of them are broken (and they often neglect
> dependent headers), then we'd fail to discover any tracepoints at all.
> These days we test each tracepoint header separately to avoid this.
>
> So if you can try with a newer systemtap build, I think you'll have
> better luck. And if so, perhaps file a bug in Ubuntu for this issue.
--
Thiago Emmanuel Pereira da Cunha Silva
-----------------------------------------------
www.lsd.ufcg.edu.br/~thiagoepdc
-----------------------------------------------