kern_ktr.c (6fed89b17970606e6b9562d8f9dc7ffee732839c) | kern_ktr.c (c84c5e00ac28c8e00a56019031d1eaec74428b54) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2000 John Baldwin <jhb@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 403 unchanged lines hidden (view full) --- 412struct tstate { 413 int cur; 414 int first; 415}; 416static struct tstate tstate; 417static int db_ktr_verbose; 418static int db_mach_vtrace(void); 419 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2000 John Baldwin <jhb@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 403 unchanged lines hidden (view full) --- 412struct tstate { 413 int cur; 414 int first; 415}; 416static struct tstate tstate; 417static int db_ktr_verbose; 418static int db_mach_vtrace(void); 419 |
420DB_SHOW_COMMAND(ktr, db_ktr_all) | 420DB_SHOW_COMMAND_FLAGS(ktr, db_ktr_all, DB_CMD_MEMSAFE) |
421{ 422 423 tstate.cur = (ktr_idx - 1) % ktr_entries; 424 tstate.first = -1; 425 db_ktr_verbose = 0; 426 db_ktr_verbose |= (strchr(modif, 'v') != NULL) ? 2 : 0; 427 db_ktr_verbose |= (strchr(modif, 'V') != NULL) ? 1 : 0; /* just timestamp please */ 428 if (strchr(modif, 'a') != NULL) { --- 54 unchanged lines hidden --- | 421{ 422 423 tstate.cur = (ktr_idx - 1) % ktr_entries; 424 tstate.first = -1; 425 db_ktr_verbose = 0; 426 db_ktr_verbose |= (strchr(modif, 'v') != NULL) ? 2 : 0; 427 db_ktr_verbose |= (strchr(modif, 'V') != NULL) ? 1 : 0; /* just timestamp please */ 428 if (strchr(modif, 'a') != NULL) { --- 54 unchanged lines hidden --- |