Blame SOURCES/rhbz1973751.patch

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