[Bug runtime/26181] New: tapset/linux/nfs_proc.stp needs update

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug runtime/26181] New: tapset/linux/nfs_proc.stp needs update

Sourceware - systemtap mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26181

            Bug ID: 26181
           Summary: tapset/linux/nfs_proc.stp needs update
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com
  Target Milestone: ---

Following testcase fails with recent stap:

=======
# cat nfs.proc.read_setup.stp
probe nfs.proc.read_setup{
        printf("nfs.proc.read_setup server_ip: %s\n", server_ip);
        printf("nfs.proc.read_setup prot: %d\n", prot);
}

# stap -v -p 2 nfs.proc.read_setup.stp
Pass 1: parsed user script and 479 library scripts using
198280virt/79724res/10572shr/68976data kb, in 260usr/40sys/297real ms.
semantic error: type mismatch (string): identifier 'server_ip' at
nfs.proc.read_setup.stp:2:55
        source:         printf("nfs.proc.read_setup server_ip: %s\n",
server_ip);
                                                                      ^

semantic error: type mismatch (string): identifier 'server_ip' at :2:55
        source:         printf("nfs.proc.read_setup server_ip: %s\n",
server_ip);
                                                                      ^

semantic error: type was first inferred here (long): identifier 'server_ip' at
/usr/local/share/systemtap/tapset/linux/nfs_proc.stp:761:2
        source:         server_ip = 0
                        ^

semantic error: unknown type in dereference: operator '->' at
/usr/local/share/systemtap/tapset/linux/nfs_proc.stpm:26:13
        source:         ( @nfs_data->args->count )
                                   ^
        in expansion of macro: operator '@_nfs_data_args_count' at
/usr/local/share/systemtap/tapset/linux/nfs_proc.stp:792:10
        source:         count = @_nfs_data_args_count(@choose_defined($hdr,
$data))
                                ^

semantic error: unknown type in dereference: operator '->' at :26:13
        source:         ( @nfs_data->args->count )
                                   ^
        in expansion of macro: operator '@_nfs_data_args_count' at
/usr/local/share/systemtap/tapset/linux/nfs_proc.stp:824:10
        source:         count = @_nfs_data_args_count(@choose_defined($hdr,
$data))
                                ^

Pass 2: analyzed script: 3 probes, 26 functions, 2 embeds, 0 globals using
422524virt/305128res/11776shr/293220data kb, in 3450usr/580sys/4040real ms.
Pass 2: analysis failed.  [man error::pass2]
#

=======

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug runtime/26181] tapset/linux/nfs_proc.stp needs update

Sourceware - systemtap mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26181

--- Comment #1 from Martin Cermak <mcermak at redhat dot com> ---
Created attachment 12667
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12667&action=edit
possible fix

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug runtime/26181] tapset/linux/nfs_proc.stp needs update

Sourceware - systemtap mailing list
In reply to this post by Sourceware - systemtap mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=26181

Martin Cermak <mcermak at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Martin Cermak <mcermak at redhat dot com> ---
Fixed in commit 403e927796c3008ad5d5fed9bd97dc7cbad424bb .

--
You are receiving this mail because:
You are the assignee for the bug.