dynup / kpatch

kpatch - live kernel patching
GNU General Public License v2.0
1.49k stars 305 forks source link

Add unit test for .TOC relas #862

Closed jpoimboe closed 1 year ago

jpoimboe commented 6 years ago

A reminder to myself that we need a unit test for #859. The current unit tests can't handle it until #849 gets merged.

kamalesh-babulal commented 6 years ago

Hi @jpoimboe, I was using following testcase to reproduce the issue:

--- a/fs/nfsd/stats.c   2018-05-30 05:46:09.808575614 -0500
+++ b/fs/nfsd/stats.c   2018-05-30 23:11:05.656097821 -0500
@@ -38,6 +38,9 @@ static int nfsd_proc_show(struct seq_fil
 {
        int i;

+       if (!jiffies)
+               printk("kpatch nfs foo\n");
+
        seq_printf(seq, "rc %u %u %u\nfh %u %u %u %u %u\nio %u %u\n",
                      nfsdstats.rchits,
                      nfsdstats.rcmisses,
jpoimboe commented 6 years ago

Thanks @kamalesh-babulal, I had a similar one:

diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index 27459a453bb8..66deefb7f3f0 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -1192,7 +1192,7 @@ static int e_show(struct seq_file *m, void *p)

    if (p == SEQ_START_TOKEN) {
        seq_puts(m, "# Version 1.1\n");
-       seq_puts(m, "# Path Client(Flags) # IPs\n");
+       seq_puts(m, "# Path Client(Flags) # IPs # Josh\n");
        return 0;
    }
github-actions[bot] commented 1 year ago

This issue has been open for 30 days with no activity and no assignee. It will be closed in 7 days unless a comment is added.

github-actions[bot] commented 1 year ago

This issue was closed because it was inactive for 7 days after being marked stale.