* Help required in relation with static probe points, STAP_MARK
@ 2009-01-15 17:23 beginner966
2009-01-15 18:56 ` David Smith
0 siblings, 1 reply; 6+ messages in thread
From: beginner966 @ 2009-01-15 17:23 UTC (permalink / raw)
To: systemtap
Hi,
I am a beginner and was trying to use STAP_MARK to create static probe
points in kernel/sched.c. When I patched the sched.c file and did a make,
following errors were obtained:
kernel/sched.c: In function âadd_preempt_countâ:
kernel/sched.c:4425: warning: unused variable âparent_eipâ
kernel/sched.c:4424: warning: unused variable âeipâ
kernel/sched.c: In function â__migrate_taskâ:
kernel/sched.c:6295: error: implicit declaration of function âSTAP_MARKâ
kernel/sched.c:6295: error: âcpu_offlineâ undeclared (first use in this
function)
kernel/sched.c:6295: error: (Each undeclared identifier is reported only
once
kernel/sched.c:6295: error: for each function it appears in.)
kernel/sched.c:6311: error: âalready_movedâ undeclared (first use in this
function)
kernel/sched.c:6317: error: âaffinity_changedâ undeclared (first use in this
function)
kernel/sched.c:6326: error: âmigration_successâ undeclared (first use in
this function)
Which header file is to be included for STAP_MARK to work ?
Please reply. Thanks !
--
View this message in context: http://www.nabble.com/Help-required-in-relation-with-static-probe-points%2C-STAP_MARK-tp21481846p21481846.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help required in relation with static probe points, STAP_MARK
2009-01-15 17:23 Help required in relation with static probe points, STAP_MARK beginner966
@ 2009-01-15 18:56 ` David Smith
2009-01-16 9:44 ` beginner966
2009-01-16 9:59 ` beginner966
0 siblings, 2 replies; 6+ messages in thread
From: David Smith @ 2009-01-15 18:56 UTC (permalink / raw)
To: beginner966; +Cc: systemtap
beginner966 wrote:
> Hi,
>
> I am a beginner and was trying to use STAP_MARK to create static probe
> points in kernel/sched.c.
STAP_MARK was an early attempt at static probe points. In current
kernels, you can use the built-in marker facility. See
<http://sourceware.org/systemtap/wiki/UsingMarkers> for details, which I
believe is reasonably up-to-date.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help required in relation with static probe points, STAP_MARK
2009-01-15 18:56 ` David Smith
@ 2009-01-16 9:44 ` beginner966
2009-01-16 9:59 ` beginner966
1 sibling, 0 replies; 6+ messages in thread
From: beginner966 @ 2009-01-16 9:44 UTC (permalink / raw)
To: systemtap
Thank you David.
David Smith-19 wrote:
>
> beginner966 wrote:
>> Hi,
>>
>> I am a beginner and was trying to use STAP_MARK to create static probe
>> points in kernel/sched.c.
>
> STAP_MARK was an early attempt at static probe points. In current
> kernels, you can use the built-in marker facility. See
> <http://sourceware.org/systemtap/wiki/UsingMarkers> for details, which I
> believe is reasonably up-to-date.
>
> --
> David Smith
> dsmith@redhat.com
> Red Hat
> http://www.redhat.com
> 256.217.0141 (direct)
> 256.837.0057 (fax)
>
>
--
View this message in context: http://www.nabble.com/Help-required-in-relation-with-static-probe-points%2C-STAP_MARK-tp21481846p21494657.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help required in relation with static probe points, STAP_MARK
2009-01-15 18:56 ` David Smith
2009-01-16 9:44 ` beginner966
@ 2009-01-16 9:59 ` beginner966
2009-01-17 15:23 ` Frank Ch. Eigler
1 sibling, 1 reply; 6+ messages in thread
From: beginner966 @ 2009-01-16 9:59 UTC (permalink / raw)
To: systemtap
I'm using the directions in the given link, by David. However when I tried to
recompile the kernel, I got the following error message:
VDSO arch/x86/vdso/vdso32-sysenter.so.dbg
CC kernel/sched.o
In file included from kernel/sched.c:31:
include/linux/marker.h:33: error: expected declaration specifiers or â...â
before âva_listâ
VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
Its pointing the error to the linux/marker.h file. Please suggest the
solution. Thanks.
Kernel version : 2.6.26.5
Patched with : patch-2.6.26.5-rt9
David Smith-19 wrote:
>
> beginner966 wrote:
>> Hi,
>>
>> I am a beginner and was trying to use STAP_MARK to create static probe
>> points in kernel/sched.c.
>
> STAP_MARK was an early attempt at static probe points. In current
> kernels, you can use the built-in marker facility. See
> <http://sourceware.org/systemtap/wiki/UsingMarkers> for details, which I
> believe is reasonably up-to-date.
>
> --
> David Smith
> dsmith@redhat.com
> Red Hat
> http://www.redhat.com
> 256.217.0141 (direct)
> 256.837.0057 (fax)
>
>
--
View this message in context: http://www.nabble.com/Help-required-in-relation-with-static-probe-points%2C-STAP_MARK-tp21481846p21495877.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help required in relation with static probe points, STAP_MARK
2009-01-16 9:59 ` beginner966
@ 2009-01-17 15:23 ` Frank Ch. Eigler
2009-01-17 16:35 ` beginner966
0 siblings, 1 reply; 6+ messages in thread
From: Frank Ch. Eigler @ 2009-01-17 15:23 UTC (permalink / raw)
To: beginner966; +Cc: systemtap
beginner966 <nitin966@gmail.com> writes:
> I'm using the directions in the given link, by David. However when I
> tried = to recompile the kernel, I got the following error message:
> VDSO arch/x86/vdso/vdso32-sysenter.so.dbg
> CC kernel/sched.o
> In file included from kernel/sched.c:31:
> include/linux/marker.h:33: error: expected declaration specifiers or ... before 'va_list'
> [...]
> Kernel version : 2.6.26.5
> Patched with : patch-2.6.26.5-rt9
I don't understand this error. Maybe it's a compiler version issue.
Different versions of marker.h use "..." in that declaration.
- FChE
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help required in relation with static probe points, STAP_MARK
2009-01-17 15:23 ` Frank Ch. Eigler
@ 2009-01-17 16:35 ` beginner966
0 siblings, 0 replies; 6+ messages in thread
From: beginner966 @ 2009-01-17 16:35 UTC (permalink / raw)
To: systemtap
The error has been fixed. Thanks for the replies and valuable suggestions.
Frank Ch. Eigler wrote:
>
> beginner966 <nitin966@gmail.com> writes:
>
>> I'm using the directions in the given link, by David. However when I
>> tried = to recompile the kernel, I got the following error message:
>> VDSO arch/x86/vdso/vdso32-sysenter.so.dbg
>> CC kernel/sched.o
>> In file included from kernel/sched.c:31:
>> include/linux/marker.h:33: error: expected declaration specifiers or ...
>> before 'va_list'
>> [...]
>> Kernel version : 2.6.26.5
>> Patched with : patch-2.6.26.5-rt9
>
> I don't understand this error. Maybe it's a compiler version issue.
> Different versions of marker.h use "..." in that declaration.
>
> - FChE
>
>
--
View this message in context: http://www.nabble.com/Help-required-in-relation-with-static-probe-points%2C-STAP_MARK-tp21481846p21517486.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-01-17 15:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-15 17:23 Help required in relation with static probe points, STAP_MARK beginner966
2009-01-15 18:56 ` David Smith
2009-01-16 9:44 ` beginner966
2009-01-16 9:59 ` beginner966
2009-01-17 15:23 ` Frank Ch. Eigler
2009-01-17 16:35 ` beginner966
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).