logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

utrace — insert user record in ktrace log

Description

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.

Errors

[EINVAL] Specified data length len was bigger than KTR_USER_MAXLEN. [ENOMEM] Insufficient memory to honor the request. [ENOSYS] Currently running kernel was compiled without ktrace(2) support (optionsKTRACE).

History

The utrace() system call first appeared in FreeBSD 2.2. Debian December 11, 2015 UTRACE(2)

Library

Standard C Library (libc, -lc)

Name

utrace — insert user record in ktrace log

Return Values

Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

See Also

kdump(1), ktrace(1), truss(1), ktrace(2), sysdecode_utrace(3)

Synopsis

#include<sys/param.h>#include<sys/time.h>#include<sys/uio.h>#include<sys/ktrace.h>intutrace(constvoid*addr, size_tlen);

See Also