FreeBSD kernel kern code
kern_ktrace.c File Reference
#include <sys/cdefs.h>
#include "opt_ktrace.h"
#include <sys/param.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/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 ("$BSDSUniX$")
 
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 ( "$BSDSUniX$"  )
static MALLOC_DEFINE ( M_KTRACE  ,
"KTRACE"  ,
"KTRACE"   
)
static
int sys_ktrace ( struct thread *  td,
struct ktrace_args uap 
)

Definition at line 831 of file kern_ktrace.c.

References allproc_lock, crfree(), ktrace_args::facs, NDFREE(), p_cansee(), pfind(), pgfind(), proctree_lock, vn_close(), vn_open(), and vrele().

Here is the call graph for this function:

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

Definition at line 985 of file kern_ktrace.c.

References free(), and malloc().

Here is the call graph for this function: