Lines Matching +full:up +full:- +full:samples
1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * livepatch-shadow-mod.c - Shadow variables, buggy module demo
10 * -------
14 * livepatch-shadow-fix1.ko and livepatch-shadow-fix2.ko correct and
17 * WARNING - even though the livepatch-shadow-fix modules patch the
18 * memory leak, please load these modules at your own risk -- some
23 * -----
25 * Step 1 - Load the buggy demonstration module:
27 * insmod samples/livepatch/livepatch-shadow-mod.ko
34 * Step 2 - Load livepatch fix1:
36 * insmod samples/livepatch/livepatch-shadow-fix1.ko
43 * Step 3 - Load livepatch fix2 (on top of fix1):
45 * insmod samples/livepatch/livepatch-shadow-fix2.ko
49 * messages will log these as dummies are cleaned up.
52 * Step 4 - Cleanup
59 * rmmod livepatch-shadow-fix2
60 * rmmod livepatch-shadow-fix1
61 * rmmod livepatch-shadow-mod
84 * Keep a list of all the dummies so we can clean up any residual ones
104 d->jiffies_expire = jiffies + in dummy_alloc()
115 __func__, d, d->jiffies_expire); in dummy_alloc()
123 __func__, d, d->jiffies_expire); in dummy_free()
131 return time_after(jiffies, d->jiffies_expire); in dummy_check()
152 list_add(&d->list, &dummy_list); in alloc_work_func()
181 list_del(&d->list); in cleanup_work_func()
211 list_del(&d->list); in livepatch_shadow_mod_exit()