Blame SOURCES/rhbz1643997.0015-tapset-bpf-conversions.stp-bugfix-helper-name-in-ker.patch

cab4ad
From 4e9775b55b5ddd7447c100894ab816a849c2c8cc Mon Sep 17 00:00:00 2001
cab4ad
From: Serhei Makarov <smakarov@redhat.com>
cab4ad
Date: Tue, 30 Oct 2018 17:13:28 -0400
cab4ad
Subject: [PATCH 15/32] tapset/bpf/conversions.stp bugfix :: helper name in
cab4ad
 kernel_string(addr, err_msg)
cab4ad
cab4ad
---
cab4ad
 tapset/bpf/conversions.stp | 4 ++--
cab4ad
 1 file changed, 2 insertions(+), 2 deletions(-)
cab4ad
cab4ad
diff --git a/tapset/bpf/conversions.stp b/tapset/bpf/conversions.stp
cab4ad
index 1140a6875..88d63b70a 100644
cab4ad
--- a/tapset/bpf/conversions.stp
cab4ad
+++ b/tapset/bpf/conversions.stp
cab4ad
@@ -34,10 +34,10 @@ function kernel_string:string (addr:long, err_msg:string)
cab4ad
 %{ /* bpf */ /* pure */
cab4ad
   /* buf = bpf_stk_alloc(BPF_MAXSTRINGLEN);
cab4ad
      buf[0] = 0x0; // guarantee NUL byte
cab4ad
-     rc = bpf_probe_read_str(buf, n, addr); */
cab4ad
+     rc = bpf_probe_read_str(buf, BPF_MAXSTRINGLEN, addr); */
cab4ad
   alloc, $buf, BPF_MAXSTRINGLEN;
cab4ad
   0x62, $buf, -, -, 0x0; /* stw [$buf+0], 0x0 -- guarantee NUL byte */
cab4ad
-  call, $rc, bpf_probe_read_str, $buf, BPF_MAXSTRINGLEN, $addr;
cab4ad
+  call, $rc, probe_read_str, $buf, BPF_MAXSTRINGLEN, $addr;
cab4ad
 
cab4ad
   /* if (rc < 0) return err_msg;
cab4ad
      return buf; */
cab4ad
-- 
cab4ad
2.14.5
cab4ad