Bug 7096 - Probe definitions over kernel markers isn't recognised
Summary: Probe definitions over kernel markers isn't recognised
Status: RESOLVED INVALID
Alias: None
Product: systemtap
Classification: Unclassified
Component: runtime (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-12 14:21 UTC by K.Prasad
Modified: 2008-12-12 15:45 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description K.Prasad 2008-12-12 14:21:05 UTC
The following logs will help understand the problem better.

# cat marker_example.stp 
probe kernel.marker("subsystem_event") { printf("subsystem_event, hit\n") }
probe kernel.marker("subsystem_eventb") { printf("subsystem_eventb, hit\n") }

# stap -vvvv marker_example.stp 
SystemTap translator/driver (version 0.8/0.137 non-git sources)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: i686 release: 2.6.27.5-41.fc9.i686
Created temporary directory "/tmp/stapdcGCir"
Searched '/usr/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/share/systemtap/tapset/*.stp', found 43
Pass 1: parsed user script and 45 library script(s) in 290usr/0sys/295real ms.
semantic error: probe point mismatch at position 1 (alternatives:
function(number) function(string) mark(string) statement(number)
statement(string)): identifier 'kernel' at marker_example.stp:1:7 while
resolving probe point kernel.marker("subsystem_event")
        source: probe kernel.marker("subsystem_event") {
printf("subsystem_event, hit\n") }
                      ^
semantic error: probe point mismatch at position 1 (alternatives:
function(number) function(string) mark(string) statement(number)
statement(string)): identifier 'kernel' at :2:7 while resolving probe point
kernel.marker("subsystem_eventb")
        source: probe kernel.marker("subsystem_eventb") {
printf("subsystem_eventb, hit\n") }
                      ^
semantic error: no probes found
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0 global(s) in
0usr/0sys/4real ms.
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapdcGCir

The behaviour shown above was seen on Fedora 9 and Fedora 10 distributions with
the bundled version of SystemTap.
Comment 1 Frank Ch. Eigler 2008-12-12 14:42:08 UTC
(In reply to comment #0)
> The following logs will help understand the problem better.

The following error message will help too: :-)

> semantic error: probe point mismatch at position 1 (alternatives:
> function(number) function(string) mark(string) statement(number)
                                    ************
> statement(string)): identifier 'kernel' at marker_example.stp:1:7 [...]

IOW, use  kernel.mark("..."), not kernel.marker("...").
Comment 2 David Smith 2008-12-12 15:45:38 UTC
(In reply to comment #1)
> (In reply to comment #0)

> IOW, use  kernel.mark("..."), not kernel.marker("...").

BTW, I've regretted the choice of 'kernel.mark' instead of 'kernel.marker'
myself, even though I probably chose it.  The kernel function being named
'trace_mark' instead of 'trace_marker' threw me off I guess...