dynamic_debug.c (eed0218e8cae9fcd186c30e9fcf5fe46a87e056e) dynamic_debug.c (9dbbc3b9d09d6deba9f3b9e1d5b355032ed46a75)
1/*
2 * lib/dynamic_debug.c
3 *
4 * make pr_debug()/dev_dbg() calls runtime configurable based upon their
5 * source module.
6 *
7 * Copyright (C) 2008 Jason Baron <jbaron@redhat.com>
8 * By Greg Banks <gnb@melbourne.sgi.com>

--- 977 unchanged lines hidden (view full) ---

986 modname = param;
987 param = sep + 1;
988 }
989 if (strcmp(param, "dyndbg"))
990 return on_err; /* determined by caller */
991
992 ddebug_exec_queries((val ? val : "+p"), modname);
993
1/*
2 * lib/dynamic_debug.c
3 *
4 * make pr_debug()/dev_dbg() calls runtime configurable based upon their
5 * source module.
6 *
7 * Copyright (C) 2008 Jason Baron <jbaron@redhat.com>
8 * By Greg Banks <gnb@melbourne.sgi.com>

--- 977 unchanged lines hidden (view full) ---

986 modname = param;
987 param = sep + 1;
988 }
989 if (strcmp(param, "dyndbg"))
990 return on_err; /* determined by caller */
991
992 ddebug_exec_queries((val ? val : "+p"), modname);
993
994 return 0; /* query failure shouldnt stop module load */
994 return 0; /* query failure shouldn't stop module load */
995}
996
997/* handle both dyndbg and $module.dyndbg params at boot */
998static int ddebug_dyndbg_boot_param_cb(char *param, char *val,
999 const char *unused, void *arg)
1000{
1001 vpr_info("%s=\"%s\"\n", param, val);
1002 return ddebug_dyndbg_param_cb(param, val, NULL, 0);

--- 154 unchanged lines hidden ---
995}
996
997/* handle both dyndbg and $module.dyndbg params at boot */
998static int ddebug_dyndbg_boot_param_cb(char *param, char *val,
999 const char *unused, void *arg)
1000{
1001 vpr_info("%s=\"%s\"\n", param, val);
1002 return ddebug_dyndbg_param_cb(param, val, NULL, 0);

--- 154 unchanged lines hidden ---