I want to access data that return from "open" function of glibc such as filename or file descriptor
I try
probe process("/lib*/libc.so.*").function("open") {
fd = $fd
filename = user_string($filename)
printf("%d %d %s %s\n",pid(),ppid(),filename,fd)
}
but it error
semantic error: unresolved target-symbol expression: identifier '$fd' at malloc.stp:3:10 source: fd = $fd ^
Pass 2: analysis failed. [man error::pass2]