Public bug reported:

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]),@avg(stats[f,en,order]),@min(stats[f,en,order]),@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]

** Affects: systemtap (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1832741

Title:
  Systemtap regression on Linux 5.2.0-rc4+

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1832741/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to