Live Patches: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 7: Zeile 7:
 
*make dependencies
 
*make dependencies
 
*cat meminfo-string.patch
 
*cat meminfo-string.patch
 +
==Der Patch==
 
<pre>
 
<pre>
==Der Patch==
 
 
Index: src/fs/proc/meminfo.c
 
Index: src/fs/proc/meminfo.c
 
===================================================================
 
===================================================================
Zeile 23: Zeile 23:
 
  #endif
 
  #endif
 
</pre>
 
</pre>
 +
 
==Patch anwenden==
 
==Patch anwenden==

Version vom 26. Juni 2023, 19:03 Uhr

fedora

Tools

  • dnf -y install git make

Clone kpatch

Alles was gebraucht wird, wird installiert

  • make dependencies
  • cat meminfo-string.patch

Der Patch

Index: src/fs/proc/meminfo.c
===================================================================
--- src.orig/fs/proc/meminfo.c
+++ src/fs/proc/meminfo.c
@@ -95,7 +95,7 @@ static int meminfo_proc_show(struct seq_
 		"Committed_AS:   %8lu kB\n"
 		"VmallocTotal:   %8lu kB\n"
 		"VmallocUsed:    %8lu kB\n"
-		"VmallocChunk:   %8lu kB\n"
+		"VMALLOCCHUNK:   %8lu kB\n"
 #ifdef CONFIG_MEMORY_FAILURE
 		"HardwareCorrupted: %5lu kB\n"
 #endif

Patch anwenden