FreeBSD kernel kern code
kern_ktrace.c File Reference
#include <sys/cdefs.h>
#include "opt_ktrace.h"
#include <sys/param.h>
#include <sys/capsicum.h>
#include <sys/systm.h>
#include <sys/fcntl.h>
#include <sys/kernel.h>
#include <sys/kthread.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/malloc.h>
#include <sys/mount.h>
#include <sys/namei.h>
#include <sys/priv.h>
#include <sys/proc.h>
#include <sys/resourcevar.h>
#include <sys/unistd.h>
#include <sys/vnode.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/ktrace.h>
#include <sys/sx.h>
#include <sys/sysctl.h>
#include <sys/sysent.h>
#include <sys/syslog.h>
#include <sys/sysproto.h>
#include <security/mac/mac_framework.h>
Include dependency graph for kern_ktrace.c:

Go to the source code of this file.

Data Structures

struct  ktrace_args
 

Functions

 __FBSDID ("$FreeBSD$")
 
static MALLOC_DEFINE (M_KTRACE, "KTRACE", "KTRACE")
 
int sys_ktrace (struct thread *td, struct ktrace_args *uap)
 
int sys_utrace (struct thread *td, struct utrace_args *uap)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ MALLOC_DEFINE()

static MALLOC_DEFINE ( M_KTRACE  ,
"KTRACE"  ,
"KTRACE"   
)
static

◆ sys_ktrace()

int sys_ktrace ( struct thread *  td,
struct ktrace_args uap 
)

Definition at line 1001 of file kern_ktrace.c.

References allproc_lock, ktrace_args::facs, flags, ktrace_args::fname, NDFREE(), ktrace_args::ops, pfind(), pgfind(), ktrace_args::pid, proctree_lock, vn_close(), and vn_open().

Here is the call graph for this function:

◆ sys_utrace()

int sys_utrace ( struct thread *  td,
struct utrace_args *  uap 
)

Definition at line 1136 of file kern_ktrace.c.

References free(), and malloc().

Here is the call graph for this function: