systemtap on Amazon kernel v4.4.160 failes to recognizaze @avg, @max aggregate

systemtap on Amazon kernel v4.4.160 failes to recognizaze @avg, @max aggregate

Lev Olshvang levonshe at yandex.com
Sun Jan 6 14:40:06 IST 2019


Hi,

I debugged systemtap scripts which monitor __kmalloc()  which are coming from my  my 2 module  MOD1.KO, MOD2.ko

and they are working perfectly on my Ubuntu 16.10 kernel 4.8.17 VM  with gcc 6.2.0  and systemtap package v3.0-7 amd64 . This is a custom kernel and I compiled it with debuginfo myself

Then I moved this scripts to Amazon ?Ubuntu VM 16 I again compiled kernel with debuginfo myself.

My modules are compiled with EXTRA_CFLAGS += -g -DDEBUG 

gcc on this host is v5.5.0
I tried systemtap 3.1, 3,3 4.0 , same error


sudo /usr/local/stap_v4.0/bin/stap -v -d MOD1.ko -d MOD2 ./kmalloc_argus.stp 1 1
Pass 1: parsed user script and 472 library scripts using 91988virt/65864res/5032shr/61236data kb, in 260usr/50sys/320real ms.
Pass 2: analyzed script: 5 probes, 7 functions, 1 embed, 6 globals using 131248virt/106220res/5972shr/100496data kb, in 640usr/70sys/711real ms.
WARNING: missing unwind/symbol data for module 'MOD1.ko'
WARNING: missing unwind/symbol data for module 'MOD2.ko'
Pass 3: translated to C into "/tmp/stap7YDmYH/stap_9b711e9d9caac3ad6af772118b2bf956_4495_src.c" using 131248virt/106476res/6228shr/100496data kb, in 350usr/500sys/850real ms.
Pass 4: compiled C into "stap_9b711e9d9caac3ad6af772118b2bf956_4495.ko" in 38820usr/166550sys/191672real ms.
Pass 5: starting run.
ERROR: empty aggregate near operator '@max' at ./kmalloc_argus.stp:58:3
WARNING: Number of errors: 1, skipped probes: 0
WARNING: /usr/local/stap_v4.0/bin/staprun exited with status: 1
Pass 5: run completed in 130usr/1160sys/1748real ms.
Pass 5: run failed.  [man error::pass5]









More information about the Linux-il mailing list