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

mcermak at redhat dot com sourceware-bugzilla@sourceware.org
Mon Jun 29 11:31:58 GMT 2020


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.


More information about the Systemtap mailing list