Deleted Added
full compact
db_variables.c (139747) db_variables.c (195699)
1/*-
2 * Mach Operating System
3 * Copyright (c) 1991,1990 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the

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

24 * rights to redistribute these changes.
25 */
26/*
27 * Author: David B. Golub, Carnegie Mellon University
28 * Date: 7/90
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Mach Operating System
3 * Copyright (c) 1991,1990 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the

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

24 * rights to redistribute these changes.
25 */
26/*
27 * Author: David B. Golub, Carnegie Mellon University
28 * Date: 7/90
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/ddb/db_variables.c 139747 2005-01-06 01:34:41Z imp $");
32__FBSDID("$FreeBSD: head/sys/ddb/db_variables.c 195699 2009-07-14 22:48:30Z rwatson $");
33
34#include <sys/param.h>
35#include <sys/systm.h>
36
37#include <ddb/ddb.h>
38#include <ddb/db_lex.h>
39#include <ddb/db_variables.h>
40
41static int db_find_variable(struct db_variable **varp);
42
43static struct db_variable db_vars[] = {
44 { "radix", &db_radix, FCN_NULL },
45 { "maxoff", &db_maxoff, FCN_NULL },
46 { "maxwidth", &db_max_width, FCN_NULL },
47 { "tabstops", &db_tab_stop_width, FCN_NULL },
48 { "lines", &db_lines_per_page, FCN_NULL },
33
34#include <sys/param.h>
35#include <sys/systm.h>
36
37#include <ddb/ddb.h>
38#include <ddb/db_lex.h>
39#include <ddb/db_variables.h>
40
41static int db_find_variable(struct db_variable **varp);
42
43static struct db_variable db_vars[] = {
44 { "radix", &db_radix, FCN_NULL },
45 { "maxoff", &db_maxoff, FCN_NULL },
46 { "maxwidth", &db_max_width, FCN_NULL },
47 { "tabstops", &db_tab_stop_width, FCN_NULL },
48 { "lines", &db_lines_per_page, FCN_NULL },
49 { "curcpu", NULL, db_var_curcpu },
50 { "db_cpu", NULL, db_var_db_cpu },
51#ifdef VIMAGE
52 { "curvnet", NULL, db_var_curvnet },
53 { "db_vnet", NULL, db_var_db_vnet },
54#endif
49};
50static struct db_variable *db_evars =
51 db_vars + sizeof(db_vars)/sizeof(db_vars[0]);
52
53static int
54db_find_variable(struct db_variable **varp)
55{
56 struct db_variable *vp;

--- 97 unchanged lines hidden ---
55};
56static struct db_variable *db_evars =
57 db_vars + sizeof(db_vars)/sizeof(db_vars[0]);
58
59static int
60db_find_variable(struct db_variable **varp)
61{
62 struct db_variable *vp;

--- 97 unchanged lines hidden ---