[Bug 1832741] Re: Systemtap regression on Linux 5.2.0-rc4+
Bharath Vedartham
1832741 at bugs.launchpad.net
Thu Jun 13 17:28:57 UTC 2019
Systemtap translator/driver (version 4.2/0.170, commit release-4.1-27-g2d77f531a5d1)
Copyright (C) 2005-2019 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.18 ... 5.1-rc2
enabled features: JAVA PYTHON2 NLS
Sorry for not putting my systemtap version.
What should I do? Should I use an older version of systemtap? I have
built this from source rather than from package managers.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemtap in Ubuntu.
https://bugs.launchpad.net/bugs/1832741
Title:
Systemtap regression on Linux 5.2.0-rc4+
Status in systemtap package in Ubuntu:
New
Bug description:
System tap breaks when I run the following script in Linux 5.2.0-rc4+.
It does not break on stable kernels like 4.4.0-148-generic.
Script:
file.stp:
global stats
probe kernel.function("do_try_to_free_pages").return {
order = @entry($sc->order)
time = cpu_clock_ns(cpu()) - @entry(cpu_clock_ns(cpu()))
stats["do_try_to_free_pages", execname(), order] <<< time
}
probe kernel.function("try_to_compact_pages").return {
order = @entry($order)
time = cpu_clock_ns(cpu()) - @entry(cpu_clock_ns(cpu()))
stats["try_to_compact_pages", execname(), order] <<< time
}
probe end {
foreach([f,en,order+] in stats) {
printf("%s:%s: order %d allocation latency - ", f,en,order)
printf("max/avg/min/count: %d/%d/%d/%d\n", @max(stats[f,en,order]), at avg(stats[f,en,order]), at min(stats[f,en,order]), at count(stats[f,en,order]))
}
}
Command to execute: sudo stap -v file.stp
Output:
Pass 1: parsed user script and 481 library scripts using 252924virt/58296res/7128shr/51680data kb, in 440usr/10sys/441real ms.
Pass 2: analyzed script: 5 probes, 6 functions, 4 embeds, 9 globals using 466196virt/273184res/8752shr/264952data kb, in 1670usr/430sys/2099real ms.
Pass 3: translated to C into "/tmp/staphdai7v/stap_9a6fd3c9a6892aa42943c7a32261941b_9080_src.c" using 466196virt/273376res/8944shr/264952data kb, in 10usr/0sys/7real ms.
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:217:1: fatal error: /tmp/staphdai7v/stapconf_ab4ca97dc0436c6c48e82f11816eb32e_660.h: No such file or directory
#endif /* __LINUX_COMPILER_TYPES_H */
^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:217:1: fatal error: /tmp/staphdai7v/stapconf_ab4ca97dc0436c6c48e82f11816eb32e_660.h: No such file or directory
#endif /* __LINUX_COMPILER_TYPES_H */
^
compilation terminated.
compilation terminated.
make[2]: *** [/tmp/staphdai7v/stap_9a6fd3c9a6892aa42943c7a32261941b_9080_src.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/tmp/staphdai7v/stap_9a6fd3c9a6892aa42943c7a32261941b_9080_aux_0.o] Error 1
make[1]: *** [_module_/tmp/staphdai7v] Error 2
make: *** [sub-make] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_9a6fd3c9a6892aa42943c7a32261941b_9080.ko" in 300usr/170sys/454real ms.
Pass 4: compilation failed. [man error::pass4]
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1832741/+subscriptions
More information about the foundations-bugs
mailing list