public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "nylon7717 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug runtime/28378] semantic error: process return probes not available [man error::inode-uprobes]
Date: Fri, 24 Sep 2021 02:51:02 +0000	[thread overview]
Message-ID: <bug-28378-6586-g4NxoQoSRx@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28378-6586@http.sourceware.org/bugzilla/>

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

--- Comment #2 from Nylon Chen <nylon7717 at gmail dot com> ---
Hi, Mark Wielaard 

thanks for your response.

I try to change the suggest and remove *.return because Ubuntu 18.04 kernel
version is 5.4.0

```
-probe process("/usr/bin/bash").function("*_builtin").return {
+probe process("/bin/bash").function("*_builtin") {
    if (in_call_tree(pid(), DONLY) == 1) {
        if(@defined($list)){
            printf("%s %d = %s(%s)\n", logstamp(0), $return, ppfunc(),
bash_builtin_arg[ppfunc()])
                delete bash_builtin_arg[ppfunc()]
        }
    }
}
```

But I still encounter some error.

# stap -p4 -r $(uname -r) tracer.stp -m tracer -v -g --suppress-time-limits
WARNING: Probe 'process' has been elided: keyword at :1294:1
 source: probe process("/bin/bash").function("*_builtin") {
         ^
semantic error: while processing probe tp_syscall.open.return from:
nd_syscall.open.return from: syscall.open.return from: syscall.open.return

semantic error: internal error: @entry is only valid in .return probes:
operator '@entry' at :652:32
        source:         filename = user_string(@entry($filename), err_msg)
                                               ^

May I have misunderstood your tip?

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

  parent reply	other threads:[~2021-09-24  2:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23  9:29 [Bug runtime/28378] New: [Systemtap] runtime error: Kernel function symbol table missing [man warning::symbols] nylon7717 at gmail dot com
2021-09-23 12:31 ` [Bug runtime/28378] semantic error: process return probes not available [man error::inode-uprobes] mark at klomp dot org
2021-09-24  2:51 ` nylon7717 at gmail dot com [this message]
2021-09-24  5:50 ` nylon7717 at gmail dot com
2021-09-24  8:06 ` mark at klomp dot org
2021-09-24  8:25 ` nylon7717 at gmail dot com
2021-09-24  8:46 ` mark at klomp dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28378-6586-g4NxoQoSRx@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).