| 3363 | } |
| 3364 | |
| 3365 | static int |
| 3366 | sysctl_debug_ng_dump_items(SYSCTL_HANDLER_ARGS) |
| 3367 | { |
| 3368 | int error; |
| 3369 | int val; |
| 3370 | int i; |
| 3371 | |
| 3372 | val = allocated; |
| 3373 | i = 1; |
| 3374 | error = sysctl_handle_int(oidp, &val, 0, req); |
| 3375 | if (error != 0 || req->newptr == NULL) |
| 3376 | return (error); |
| 3377 | if (val == 42) { |
| 3378 | ng_dumpitems(); |
| 3379 | ng_dumpnodes(); |
| 3380 | ng_dumphooks(); |
| 3381 | } |
| 3382 | return (0); |
| 3383 | } |
| 3384 | |
| 3385 | SYSCTL_PROC(_debug, OID_AUTO, ng_dump_items, |
| 3386 | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, 0, sizeof(int), |
nothing calls this directly
no test coverage detected