[PATCH -perfbook] getrusage: minor typo (runivcsw -> ru_nivcsw)

Hanmiru Kim <[email protected]> Fri, 31 Oct 2025 17:38:50 +0100
Newsgroups org.kernel.vger.perfbook
Message-ID <[email protected]>
Hello,
The `getrusage` example listing contains a small typo: the underscore in =
`ru_nivcsw` was missing.=20
See `man 2 getrusage` to confirm.

Thank you for this wonderful book!
I tried sending the patch using `git send-email` first but I couldn't =
get it to work. I apologise in advance in case you receive two emails.

Signed-off-by: Han-Miru Kim
<[email protected]>
---
diff --git a/debugging/debugging.tex b/debugging/debugging.tex
index f285ebc1..ccc33ef9 100644
--- a/debugging/debugging.tex
+++ b/debugging/debugging.tex
@@ -2609,7 +2609,7 @@ int runtest(void)
 		abort();
 	}
 	return (ru1.ru_nvcsw =3D=3D ru2.ru_nvcsw &&
-	        ru1.runivcsw =3D=3D ru2.runivcsw);
+	        ru1.ru_nivcsw =3D=3D ru2.ru_nivcsw);
 }
 \end{VerbatimL}
 \end{fcvlabel}