*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> utrace (2)              



NAME    [Toc]    [Back]

     utrace -- insert user record in ktrace log

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #include <sys/param.h>
     #include <sys/time.h>
     #include <sys/uio.h>
     #include <sys/ktrace.h>

     utrace(const void *addr, size_t len);

DESCRIPTION    [Toc]    [Back]

     Adds a record to the process trace with information supplied by user.
     The record contains len bytes from memory pointed to by addr.  This call
     only has an effect if the calling process is being traced.

RETURN VALUES    [Toc]    [Back]

     Upon successful completion, a value of 0 is returned.  Otherwise, a value
     of -1 is returned and errno is set to indicate the error.

ERRORS    [Toc]    [Back]

     [EINVAL]		Specified data length len was bigger than

     [ENOMEM]		Insufficient memory to honor the request.

     [ENOSYS]		Currently running kernel was compiled without
			ktrace(2) support (option KTRACE).

SEE ALSO    [Toc]    [Back]

     kdump(1), ktrace(1), ktrace(2)

HISTORY    [Toc]    [Back]

     The utrace() system call first appeared in FreeBSD 2.2.

FreeBSD 5.2.1		       December 28, 2000		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
utrace NetBSD insert user record to ktrace records
ERR_put_error NetBSD record an error
ERR_put_error OpenBSD record an error
ERR_put_error Tru64 Record an error
ERR_add_error_data OpenBSD record an error
ERR_add_error_data Tru64 Record an error
CSSM_DL_DataGetNext Tru64 Get next data record (CDSA)
lockf IRIX record locking on files
audgenl Tru64 generate an audit record
audgen Tru64 generate an audit record
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service