mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
STABLE14-linux26-module-parm-versus-param-20060315
FIXES 27588 deal with 2.6 changes (cherry picked from commit 5ca54f23629145a9452345bd2d514b8fb571f735)
This commit is contained in:
parent
465e42be65
commit
2d931d8e4e
@ -114,16 +114,28 @@
|
|||||||
|
|
||||||
/* Allow the user to specify sys_call_table addresses */
|
/* Allow the user to specify sys_call_table addresses */
|
||||||
static unsigned long sys_call_table_addr[4] = { 0,0,0,0 };
|
static unsigned long sys_call_table_addr[4] = { 0,0,0,0 };
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
|
||||||
|
module_param_array(sys_call_table_addr, long, NULL, 0);
|
||||||
|
#else
|
||||||
MODULE_PARM(sys_call_table_addr, "1-4l");
|
MODULE_PARM(sys_call_table_addr, "1-4l");
|
||||||
|
#endif
|
||||||
MODULE_PARM_DESC(sys_call_table_addr, "Location of system call tables");
|
MODULE_PARM_DESC(sys_call_table_addr, "Location of system call tables");
|
||||||
|
|
||||||
/* If this is set, we are more careful about avoiding duplicate matches */
|
/* If this is set, we are more careful about avoiding duplicate matches */
|
||||||
static int probe_carefully = 1;
|
static int probe_carefully = 1;
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
|
||||||
|
module_param(probe_carefully, int, 0);
|
||||||
|
#else
|
||||||
MODULE_PARM(probe_carefully, "i");
|
MODULE_PARM(probe_carefully, "i");
|
||||||
|
#endif
|
||||||
MODULE_PARM_DESC(probe_carefully, "Probe for system call tables carefully");
|
MODULE_PARM_DESC(probe_carefully, "Probe for system call tables carefully");
|
||||||
|
|
||||||
static int probe_ignore_syscalls[8] = { -1, -1, -1, -1, -1, -1, -1, -1 };
|
static int probe_ignore_syscalls[8] = { -1, -1, -1, -1, -1, -1, -1, -1 };
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
|
||||||
|
module_param_array(probe_ignore_syscalls, int, NULL, 0);
|
||||||
|
#else
|
||||||
MODULE_PARM(probe_ignore_syscalls, "1-8i");
|
MODULE_PARM(probe_ignore_syscalls, "1-8i");
|
||||||
|
#endif
|
||||||
MODULE_PARM_DESC(probe_ignore_syscalls, "Syscalls to ignore in table checks");
|
MODULE_PARM_DESC(probe_ignore_syscalls, "Syscalls to ignore in table checks");
|
||||||
|
|
||||||
#ifdef OSI_PROBE_DEBUG
|
#ifdef OSI_PROBE_DEBUG
|
||||||
@ -138,19 +150,35 @@ MODULE_PARM_DESC(probe_ignore_syscalls, "Syscalls to ignore in table checks");
|
|||||||
* 0x0040 - automatically ignore setgroups and afs_syscall
|
* 0x0040 - automatically ignore setgroups and afs_syscall
|
||||||
*/
|
*/
|
||||||
static int probe_debug = 0x41;
|
static int probe_debug = 0x41;
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
|
||||||
|
module_param(probe_debug, int, 0);
|
||||||
|
#else
|
||||||
MODULE_PARM(probe_debug, "i");
|
MODULE_PARM(probe_debug, "i");
|
||||||
|
#endif
|
||||||
MODULE_PARM_DESC(probe_debug, "Debugging level");
|
MODULE_PARM_DESC(probe_debug, "Debugging level");
|
||||||
|
|
||||||
static unsigned long probe_debug_addr[4] = { 0,0,0,0 };
|
static unsigned long probe_debug_addr[4] = { 0,0,0,0 };
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
|
||||||
|
module_param_array(probe_debug_addr, long, NULL, 0);
|
||||||
|
#else
|
||||||
MODULE_PARM(probe_debug_addr, "1-4l");
|
MODULE_PARM(probe_debug_addr, "1-4l");
|
||||||
|
#endif
|
||||||
MODULE_PARM_DESC(probe_debug_addr, "Debug range starting locations");
|
MODULE_PARM_DESC(probe_debug_addr, "Debug range starting locations");
|
||||||
|
|
||||||
static unsigned long probe_debug_range = 0;
|
static unsigned long probe_debug_range = 0;
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
|
||||||
|
module_param(probe_debug_range, long, 0);
|
||||||
|
#else
|
||||||
MODULE_PARM(probe_debug_range, "l");
|
MODULE_PARM(probe_debug_range, "l");
|
||||||
|
#endif
|
||||||
MODULE_PARM_DESC(probe_debug_range, "Debug range length");
|
MODULE_PARM_DESC(probe_debug_range, "Debug range length");
|
||||||
|
|
||||||
static unsigned long probe_debug_tag = 0;
|
static unsigned long probe_debug_tag = 0;
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
|
||||||
|
module_param(probe_debug_tag, long, 0);
|
||||||
|
#else
|
||||||
MODULE_PARM(probe_debug_tag, "l");
|
MODULE_PARM(probe_debug_tag, "l");
|
||||||
|
#endif
|
||||||
MODULE_PARM_DESC(probe_debug_tag, "Debugging output start tag");
|
MODULE_PARM_DESC(probe_debug_tag, "Debugging output start tag");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user