summaryrefslogtreecommitdiffstats
path: root/sys/kern/syscalls.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-09-19 19:49:13 +0000
committerphk <phk@FreeBSD.org>1996-09-19 19:49:13 +0000
commitbb49c895b91f1c1124b1782797be82879bb6136c (patch)
treedcfcaecc65579d35f813644addb558f6a9c2f1e1 /sys/kern/syscalls.c
parent45c85d421d05f7b96a102826ea41b4f7dc31c017 (diff)
downloadFreeBSD-src-bb49c895b91f1c1124b1782797be82879bb6136c.zip
FreeBSD-src-bb49c895b91f1c1124b1782797be82879bb6136c.tar.gz
Add the utrace(caddr_t addr,size_t len) syscall, that will store the
data pointed at in a ktrace file, if this process is being ktrace'ed. I'm using this to profile malloc usage. The advantage is that there is no context around this call, ie, no open file or socket, so it will work in any process, and you can decide if you want it to collect data or not.
Diffstat (limited to 'sys/kern/syscalls.c')
-rw-r--r--sys/kern/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index ded3c53..fd06481 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -226,7 +226,7 @@ char *syscallnames[] = {
"__sysctl", /* 202 = __sysctl */
"mlock", /* 203 = mlock */
"munlock", /* 204 = munlock */
- "#205", /* 205 = nosys */
+ "utrace", /* 205 = utrace */
"#206", /* 206 = nosys */
"#207", /* 207 = nosys */
"#208", /* 208 = nosys */
OpenPOWER on IntegriCloud