[Bug runtime/28378] semantic error: process return probes not available [man error::inode-uprobes]

nylon7717 at gmail dot com sourceware-bugzilla@sourceware.org
Fri Sep 24 02:51:02 GMT 2021


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.


More information about the Systemtap mailing list