#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/linker.h>
#include <sys/malloc.h>
#include <sys/proc.h>
#include <sys/sbuf.h>
#include <sys/sysctl.h>
#include <sys/systm.h>
#include <sys/tslog.h>
#include <machine/atomic.h>
#include <machine/cpu.h>
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
void | tslog (void *td, int type, const char *f, const char *s) |
|
static int | sysctl_debug_tslog (SYSCTL_HANDLER_ARGS) |
|
| SYSCTL_PROC (_debug, OID_AUTO, tslog, CTLTYPE_STRING|CTLFLAG_RD|CTLFLAG_MPSAFE, 0, 0, sysctl_debug_tslog, "", "Dump recorded event timestamps") |
|
| MALLOC_DEFINE (M_TSLOGUSER, "tsloguser", "Strings used by userland tslog") |
|
void | tslog_user (pid_t pid, pid_t ppid, const char *execname, const char *namei) |
|
static int | sysctl_debug_tslog_user (SYSCTL_HANDLER_ARGS) |
|
| SYSCTL_PROC (_debug, OID_AUTO, tslog_user, CTLTYPE_STRING|CTLFLAG_RD|CTLFLAG_MPSAFE, 0, 0, sysctl_debug_tslog_user, "", "Dump recorded userland event timestamps") |
|
◆ TSLOGSIZE
◆ __FBSDID()
◆ MALLOC_DEFINE()
MALLOC_DEFINE |
( |
M_TSLOGUSER |
, |
|
|
"tsloguser" |
, |
|
|
"Strings used by userland tslog" |
|
|
) |
| |
◆ sysctl_debug_tslog()
static int sysctl_debug_tslog |
( |
SYSCTL_HANDLER_ARGS |
| ) |
|
|
static |
Definition at line 76 of file kern_tslog.c.
References nrecs, preload_fetch_addr(), preload_fetch_size(), preload_search_by_type(), sbuf_bcat(), sbuf_delete(), sbuf_finish(), sbuf_new_for_sysctl(), sbuf_printf(), timestamps, and type.
◆ sysctl_debug_tslog_user()
static int sysctl_debug_tslog_user |
( |
SYSCTL_HANDLER_ARGS |
| ) |
|
|
static |
◆ SYSCTL_PROC() [1/2]
◆ SYSCTL_PROC() [2/2]
◆ tslog()
void tslog |
( |
void * |
td, |
|
|
int |
type, |
|
|
const char * |
f, |
|
|
const char * |
s |
|
) |
| |
◆ tslog_user()
void tslog_user |
( |
pid_t |
pid, |
|
|
pid_t |
ppid, |
|
|
const char * |
execname, |
|
|
const char * |
namei |
|
) |
| |
◆ nrecs
◆ procs
◆ timestamps