Questions tagged [systemtap]

8 questions
3
votes
1 answer

System-wide monitoring of calls to a library function

I have a modern Linux desktop with lots of processes running concurrently. One of those processes, and I don't know which one, calls a function some_func from a popular dynamic library some_lib (think libc or libx11, so a lot of processes use it),…
undercat
  • 1,827
  • 1
  • 11
  • 19
2
votes
1 answer

Using Systemtap probing Getting the virtual address location of bytes for every read write operation in Linux

Using Systemtap probing tool I got the way to get total amount of bytes read by a file by probing syscall.read and syscall.read.return function. syscall.read.return has returnval() which gives the total amount of byte read. I need to get the virtual…
Ashikee AbHi
  • 123
  • 3
2
votes
1 answer

Install a Linux kernel with debug symbols and without optimizations

My system is Ubuntu 18.04. How do I install a Linux kernel with debug symbols and without optimizations? I would like to trace it with SystemTap.
Logic
  • 163
  • 5
1
vote
0 answers

Systemtap causes a segfault, why?

I'm trying to monitor library calls system-wide. I've written this script to trace library calls for libguestfs: probe begin { printf("ok\n") } probe process("/usr/lib64/libguestfs.so.0.471.0").function("*") { …
MoeKav
  • 31
  • 3
0
votes
1 answer

Red Hat systemtap nettop shows swapper/0 process

I'm analyzing network performance of a host, and I am using SystemTap's nettop.stp example, /usr/share/systemtap/examples/network/nettoqp.stp. I noticed that it includes network activity for the swapper process and kworker kernel threads. Why would…
Mike S
  • 2,432
  • 2
  • 17
  • 29
0
votes
1 answer

Systemtap probe kernel module function while that module is loaded

How to use a Systemtap probe on a kernel module function while that module is loaded. I am trying to print the functions being called for a particular module while it is being loaded. Suppose I have a kernel module hello.ko which is not loaded. Now…
Franc
  • 229
  • 3
  • 15
0
votes
1 answer

systemtap to print all kernel functions of a process

How to print all kernel functions associated with a process a.out when it enters in kernel mode. i.e.; I want to filter out the kernel functions for a specific pid/execname. Following is an stap script I created to trace the kernel functions…
Franc
  • 229
  • 3
  • 15
0
votes
1 answer

Systemtap can not resolve probe point although it is shown in probe list

I'm trying to debug netfilter synproxy module with systemtap. This is probe point I'm trying to add. # stap -l 'module("ipt_SYNPROXY").statement("*")' | grep…
ibrahim
  • 1,067
  • 8
  • 17