Blame SOURCES/rhbz2007770.patch

f382ee
commit b367613c3bb88549dbb9944d306fe561dea03f04
f382ee
Author: Frank Ch. Eigler <fche@redhat.com>
f382ee
Date:   Fri Sep 24 15:54:34 2021 -0400
f382ee
f382ee
    PR28384: convert more nfs_proc.stp server_ip to string
f382ee
    
f382ee
    This tapset variable has been changed in stap version 4.3
f382ee
    to a string.  Finish covering all instances in various
f382ee
    probe aliases.
f382ee
f382ee
diff --git a/tapset/linux/nfs_proc.stp b/tapset/linux/nfs_proc.stp
f382ee
index 257907457..9b1f65f5f 100644
f382ee
--- a/tapset/linux/nfs_proc.stp
f382ee
+++ b/tapset/linux/nfs_proc.stp
f382ee
@@ -235,7 +235,11 @@ probe _nfs.proc2.lookup = kernel.function("nfs_proc_lookup") !,
f382ee
 probe _nfs.proc2.missing_lookup = never
f382ee
 {
f382ee
 	client = 0
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 
f382ee
 	name_len = 0
f382ee
@@ -361,7 +365,11 @@ probe _nfs.proc2.read = kernel.function("nfs_proc_read") !,
f382ee
 }
f382ee
 probe _nfs.proc2.missing_read = never
f382ee
 {
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 
f382ee
 	flags = 0
f382ee
@@ -496,7 +504,11 @@ probe _nfs.proc2.write = kernel.function("nfs_proc_write") !,
f382ee
 }
f382ee
 probe _nfs.proc2.missing_write = never
f382ee
 {
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 
f382ee
 	flags = 0
f382ee
@@ -759,7 +771,7 @@ probe _nfs.proc2.missing_read_setup = never
f382ee
 	inode = 0
f382ee
 	client = 0
f382ee
 %( systemtap_v >= "4.3" %?
f382ee
-	server_ip = "0"
f382ee
+	server_ip = ""
f382ee
 %:
f382ee
 	server_ip = 0
f382ee
 %)
f382ee
@@ -895,7 +907,11 @@ probe _nfs.proc2.read_done = kernel.function("nfs_read_done") !,
f382ee
 }
f382ee
 probe _nfs.proc2.missing_read_done = never
f382ee
 {
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 	count = 0
f382ee
 	status = 0
f382ee
@@ -1054,7 +1070,11 @@ probe _nfs.proc2.missing_write_setup = never
f382ee
 {
f382ee
 	inode = 0
f382ee
 	client = 0
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 
f382ee
 	count = 0
f382ee
@@ -1201,7 +1221,11 @@ probe _nfs.proc2.write_done = kernel.function("nfs_write_done") !,
f382ee
 }
f382ee
 probe _nfs.proc2.missing_write_done = never
f382ee
 {
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 	count = 0
f382ee
 	valid = 0
f382ee
@@ -1826,7 +1850,11 @@ probe _nfs.proc2.create = kernel.function("nfs_proc_create") !,
f382ee
 probe _nfs.proc2.missing_create = never
f382ee
 {
f382ee
 	client = 0
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 
f382ee
 	fh = 0
f382ee
@@ -1946,7 +1974,11 @@ probe _nfs.proc2.remove = kernel.function("nfs_proc_remove") !,
f382ee
 probe _nfs.proc2.missing_remove = never
f382ee
 {
f382ee
 	client = 0
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 
f382ee
 	fh = 0
f382ee
@@ -2067,7 +2099,11 @@ probe _nfs.proc2.rename = kernel.function("nfs_proc_rename") !,
f382ee
 probe _nfs.proc2.missing_rename = never
f382ee
 {
f382ee
 	client = 0
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 
f382ee
 	old_fh = 0
f382ee
@@ -2114,7 +2150,11 @@ probe _nfs.proc3.rename = kernel.function("nfs3_proc_rename") !,
f382ee
 probe _nfs.proc3.missing_rename = never
f382ee
 {
f382ee
 	client = 0
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 
f382ee
 	old_fh = 0
f382ee
@@ -2161,7 +2201,11 @@ probe _nfs.proc4.rename = kernel.function("nfs4_proc_rename") !,
f382ee
 probe _nfs.proc4.missing_rename = never
f382ee
 {
f382ee
 	client = 0
f382ee
+%( systemtap_v >= "4.3" %?
f382ee
+	server_ip = ""
f382ee
+%:
f382ee
 	server_ip = 0
f382ee
+%)
f382ee
 	prot = 0
f382ee
 
f382ee
 	old_fh = 0
f382ee
diff --git a/testsuite/buildok/nfs_proc-detailed.stp b/testsuite/buildok/nfs_proc-detailed.stp
f382ee
index 2a04ee2a7..e7c7f2d18 100755
f382ee
--- a/testsuite/buildok/nfs_proc-detailed.stp
f382ee
+++ b/testsuite/buildok/nfs_proc-detailed.stp
f382ee
@@ -3,7 +3,7 @@
f382ee
 
f382ee
 probe nfs.proc.lookup {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d\n", server_ip, prot, version, name_len)
f382ee
+	printf("%s %d %d %d\n", server_ip, prot, version, name_len)
f382ee
 	printf("%d %d\n", bitmask0, bitmask1)
f382ee
 }
f382ee
 probe nfs.proc.lookup.return {
f382ee
@@ -12,7 +12,7 @@ probe nfs.proc.lookup.return {
f382ee
 
f382ee
 probe nfs.proc.read ? {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d %d %s\n", server_ip, prot, version, flags,
f382ee
+	printf("%s %d %d %d %d %s\n", server_ip, prot, version, flags,
f382ee
 		size, units)
f382ee
 }
f382ee
 probe nfs.proc.read.return ? {
f382ee
@@ -21,7 +21,7 @@ probe nfs.proc.read.return ? {
f382ee
 
f382ee
 probe nfs.proc.write ? {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d %d %s\n", server_ip, prot, version, flags,
f382ee
+	printf("%s %d %d %d %d %s\n", server_ip, prot, version, flags,
f382ee
 		size, units)
f382ee
 	printf("%d %d\n", bitmask0, bitmask1)
f382ee
 }
f382ee
@@ -32,7 +32,7 @@ probe nfs.proc.write.return ? {
f382ee
 
f382ee
 probe nfs.proc.commit ? {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d %s\n", server_ip, prot, version, size, units)
f382ee
+	printf("%s %d %d %d %s\n", server_ip, prot, version, size, units)
f382ee
 	printf("%d %d\n", bitmask0, bitmask1)
f382ee
 }
f382ee
 probe nfs.proc.commit.return ? {
f382ee
@@ -43,7 +43,7 @@ probe nfs.proc.commit.return ? {
f382ee
 
f382ee
 probe nfs.proc.read_setup {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d %d %s\n", client, server_ip, prot,
f382ee
+	printf("%d %s %d %d %d %s\n", client, server_ip, prot,
f382ee
 		version, size, units)
f382ee
 }
f382ee
 probe nfs.proc.read_setup.return {
f382ee
@@ -52,7 +52,7 @@ probe nfs.proc.read_setup.return {
f382ee
 
f382ee
 probe nfs.proc.read_done {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d\n", server_ip, prot, count, version)
f382ee
+	printf("%s %d %d %d\n", server_ip, prot, count, version)
f382ee
 	printf("%d\n", timestamp)
f382ee
 }
f382ee
 probe nfs.proc.read_done.return {
f382ee
@@ -61,7 +61,7 @@ probe nfs.proc.read_done.return {
f382ee
 
f382ee
 probe nfs.proc.write_setup {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d %d %s\n", client, server_ip, prot,
f382ee
+	printf("%d %s %d %d %d %s\n", client, server_ip, prot,
f382ee
 		version, size, units)
f382ee
 	printf("%d %d %d\n", how, bitmask0, bitmask1)
f382ee
 }
f382ee
@@ -71,7 +71,7 @@ probe nfs.proc.write_setup.return {
f382ee
 
f382ee
 probe nfs.proc.write_done {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d %d\n", server_ip, prot, count, valid, version)
f382ee
+	printf("%s %d %d %d %d\n", server_ip, prot, count, valid, version)
f382ee
 	printf("%d\n", timestamp)
f382ee
 }
f382ee
 probe nfs.proc.write_done.return {
f382ee
@@ -80,7 +80,7 @@ probe nfs.proc.write_done.return {
f382ee
 
f382ee
 probe nfs.proc.commit_setup {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d %d %s\n", client, server_ip, prot,
f382ee
+	printf("%d %s %d %d %d %s\n", client, server_ip, prot,
f382ee
 		version, size, units)
f382ee
 	printf("%d %d\n", bitmask0, bitmask1)
f382ee
 }
f382ee
@@ -90,7 +90,7 @@ probe nfs.proc.commit_setup.return {
f382ee
 
f382ee
 probe nfs.proc.commit_done {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d %d\n", server_ip, prot, count, valid, version)
f382ee
+	printf("%s %d %d %d %d\n", server_ip, prot, count, valid, version)
f382ee
 	printf("%d\n", timestamp)
f382ee
 }
f382ee
 probe nfs.proc.commit_done.return {
f382ee
@@ -99,7 +99,7 @@ probe nfs.proc.commit_done.return {
f382ee
 
f382ee
 probe nfs.proc.rename_setup {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d\n", client, server_ip, prot,
f382ee
+	printf("%d %s %d %d\n", client, server_ip, prot,
f382ee
 		version)
f382ee
 	printf("%d\n", fh)
f382ee
 }
f382ee
@@ -109,7 +109,7 @@ probe nfs.proc.rename_setup.return {
f382ee
 
f382ee
 probe nfs.proc.rename_done {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d\n", server_ip, prot, version)
f382ee
+	printf("%s %d %d\n", server_ip, prot, version)
f382ee
 	printf("%d %d\n", timestamp, status)
f382ee
 	printf("%d %d\n", old_fh, new_fh)
f382ee
 }
f382ee
@@ -119,7 +119,7 @@ probe nfs.proc.rename_done.return {
f382ee
 
f382ee
 probe nfs.proc.open {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d\n", server_ip, prot, version)
f382ee
+	printf("%s %d %d\n", server_ip, prot, version)
f382ee
 }
f382ee
 probe nfs.proc.open.return {
f382ee
 	printf("%s(%s)\n", name, retstr)
f382ee
@@ -127,7 +127,7 @@ probe nfs.proc.open.return {
f382ee
 
f382ee
 probe nfs.proc.release ? {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d\n", server_ip, prot, version)
f382ee
+	printf("%s %d %d\n", server_ip, prot, version)
f382ee
 }
f382ee
 probe nfs.proc.release.return ? {
f382ee
 	printf("%s(%s)\n", name, retstr)
f382ee
@@ -143,7 +143,7 @@ probe nfs.proc.handle_exception.return {
f382ee
 
f382ee
 probe nfs.proc.create {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d %d %d\n", server_ip, prot, version, fh,
f382ee
+	printf("%s %d %d %d %d %d\n", server_ip, prot, version, fh,
f382ee
 		filelen, mode)
f382ee
 }
f382ee
 probe nfs.proc.create.return {
f382ee
@@ -152,7 +152,7 @@ probe nfs.proc.create.return {
f382ee
 
f382ee
 probe nfs.proc.remove {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d %d %d\n", server_ip, prot, version, fh,
f382ee
+	printf("%s %d %d %d %d\n", server_ip, prot, version, fh,
f382ee
 		filelen)
f382ee
 }
f382ee
 probe nfs.proc.remove.return {
f382ee
@@ -161,7 +161,7 @@ probe nfs.proc.remove.return {
f382ee
 
f382ee
 probe nfs.proc.rename {
f382ee
 	printf("%s(%s)\n", name, argstr)
f382ee
-	printf("%d %d %d\n", server_ip, prot, version)
f382ee
+	printf("%s %d %d\n", server_ip, prot, version)
f382ee
 	printf("%d %d %s\n", old_fh, old_filelen, old_name)
f382ee
 	printf("%d %d %s\n", new_fh, new_filelen, new_name)
f382ee
 }