Home
last modified time | relevance | path

Searched refs:loglevel_state (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/lib/livepatch/
Dtest_klp_state.c36 struct klp_state *loglevel_state; in allocate_loglevel_state() local
38 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in allocate_loglevel_state()
39 if (!loglevel_state) in allocate_loglevel_state()
42 loglevel_state->data = kzalloc(sizeof(console_loglevel), GFP_KERNEL); in allocate_loglevel_state()
43 if (!loglevel_state->data) in allocate_loglevel_state()
53 struct klp_state *loglevel_state; in fix_console_loglevel() local
55 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in fix_console_loglevel()
56 if (!loglevel_state) in fix_console_loglevel()
60 *(int *)loglevel_state->data = console_loglevel; in fix_console_loglevel()
66 struct klp_state *loglevel_state; in restore_console_loglevel() local
[all …]
Dtest_klp_state2.c36 struct klp_state *loglevel_state, *prev_loglevel_state; in allocate_loglevel_state() local
45 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in allocate_loglevel_state()
46 if (!loglevel_state) in allocate_loglevel_state()
49 loglevel_state->data = kzalloc(sizeof(console_loglevel), GFP_KERNEL); in allocate_loglevel_state()
50 if (!loglevel_state->data) in allocate_loglevel_state()
60 struct klp_state *loglevel_state, *prev_loglevel_state; in fix_console_loglevel() local
62 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in fix_console_loglevel()
63 if (!loglevel_state) in fix_console_loglevel()
70 loglevel_state->data = prev_loglevel_state->data; in fix_console_loglevel()
75 *(int *)loglevel_state->data = console_loglevel; in fix_console_loglevel()
[all …]