MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / kprobe

Method kprobe

test/test/kernel/KernelTests.java:38–43  ·  view source on GitHub ↗
(TestProcess p)

Source from the content-addressed store, hash-verified

36 }
37
38 @Test(mainClass = ListFiles.class, os = Os.LINUX)
39 public void kprobe(TestProcess p) throws Exception {
40 p.profile("-e kprobe:fd_install -d 2 -o collapsed -f %f --fdtransfer", true);
41 Output out = p.readFile("%f");
42 assert out.contains("java/io/File.list;.+;fd_install_\\[k]");
43 }
44
45 @Test(mainClass = ListFiles.class, os = {Os.MACOS, Os.WINDOWS})
46 public void notLinux(TestProcess p) throws Exception {

Callers

nothing calls this directly

Calls 3

containsMethod · 0.95
profileMethod · 0.80
readFileMethod · 0.80

Tested by

no test coverage detected