]> sourceware.org Git - systemtap.git/commitdiff
testsuite/systemtap.bpf fixup: avoid use of sys_read() (for now, change to vfs_read)
authorSerhei Makarov <smakarov@redhat.com>
Tue, 10 Jul 2018 20:02:29 +0000 (16:02 -0400)
committerSerhei Makarov <smakarov@redhat.com>
Tue, 10 Jul 2018 20:02:41 +0000 (16:02 -0400)
testsuite/systemtap.bpf/bpf_tests/array_in.stp
testsuite/systemtap.bpf/bpf_tests/array_preinit.stp
testsuite/systemtap.bpf/bpf_tests/exit3.stp
testsuite/systemtap.bpf/bpf_tests/increment2.stp
testsuite/systemtap.bpf/bpf_tests/printf.stp

index e338b89ddb190639c46e77b38901d4a8948c962c..189f2a1cb98f881c0c6f63c164412e2570853c1d 100644 (file)
@@ -7,7 +7,7 @@ probe begin {
        printf("BEGIN\n")
 }
 
-probe kernel.function("sys_read") {
+probe kernel.function("vfs_read") {
        res = res && 3 in arr && 5 in arr && !(9 in arr) && !(25 in arr)
         exit()
 }
index 86794fc2705b3b0c7488a1d396850ef35310ec33..44a0f9c3b907a8eb57c3c8d389d47c7605db2d28 100644 (file)
@@ -4,7 +4,7 @@ probe begin {
        printf("BEGIN\n")
 }
 
-probe kernel.function("sys_read") {
+probe kernel.function("vfs_read") {
        count++
         arr[0] = arr[1]++
        arr[2] = ++arr[3]
index a8a90346a27c75036362af355c2527666b409b58..37b9a978c54befd5248fe476c1306fec00771028 100644 (file)
@@ -3,7 +3,7 @@ probe begin {
        printf("BEGIN\n")
 }
 
-probe kernel.function("sys_read") {
+probe kernel.function("vfs_read") {
        count++
        exit()
 }
index 89c5f1d07345f0d30ce50a2b3a18731d32e7b818..9321f57f8a9852f010bd8d32e04206763e4d5be7 100644 (file)
@@ -19,7 +19,7 @@ probe begin {
           flag = 1
 }
 
-probe kernel.function("sys_read") {
+probe kernel.function("vfs_read") {
        a = 0; b = 0; c = 0;
                d = 0; e = 0; f = 0;
                g = 0; h = 0
index 8515135a30853f40f22ecefc17248175d4421f7a..4d53c4854ff8235f3400621f8bae79c5fec2a3d9 100644 (file)
@@ -14,7 +14,7 @@ probe begin {
   @test_print
 }
 
-probe kernel.function("sys_read") {
+probe kernel.function("vfs_read") {
   y = 1; z = 3
   @test_print
   exit()
This page took 0.031063 seconds and 5 git commands to generate.