This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/24199] New: misleading error when providing wrong printf format for pid().


https://sourceware.org/bugzilla/show_bug.cgi?id=24199

            Bug ID: 24199
           Summary: misleading error when providing wrong printf format
                    for pid().
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tapsets
          Assignee: systemtap at sourceware dot org
          Reporter: khaled.gnu at gmail dot com
  Target Milestone: ---

[khaled@codex ~ ]$ uname -r && stap --version
4.18.16-300.fc29.x86_64
Systemtap translator/driver (version 4.1/0.174, commit
release-4.0-102-g1832b8f51819 + changes)
Copyright (C) 2005-2019 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.18 ... 5.0-rc3
enabled features: BPF PYTHON2 PYTHON3 LIBSQLITE3 LIBXML2 NLS


printing the pid() with the wrong format "%s" results in a tapset error.


[khaled@codex ~ ]$ cat file_list.stp 
#!/usr/local/bin/stap -v

probe vfs.{read,write,open} {

        printf("%s %s %s\n", execname(), pid(), pathname);

}


[khaled@codex ~ ]$ stap -v file_list.stp 
Pass 1: parsed user script and 484 library scripts using
310436virt/87072res/6324shr/81184data kb, in 170usr/30sys/211real ms.
semantic error: unknown type in dereference: operator '->' at
/usr/local/share/systemtap/tapset/linux/dev.stp:73:11
        source:         hd = bdev->bd_disk
                                 ^

Pass 2: analyzed script: 3 probes, 72 functions, 8 embeds, 0 globals using
528096virt/306376res/7892shr/298844data kb, in 1650usr/440sys/2094real ms.
Pass 2: analysis failed.  [man error::pass2]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]