summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_sysent.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/init_sysent.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/init_sysent.c')
-rw-r--r--sys/kern/init_sysent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index 59a3e5e..0bd6290 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -239,7 +239,7 @@ struct sysent sysent[] = {
{ 6, (sy_call_t *)__sysctl }, /* 202 = __sysctl */
{ 2, (sy_call_t *)mlock }, /* 203 = mlock */
{ 2, (sy_call_t *)munlock }, /* 204 = munlock */
- { 0, (sy_call_t *)nosys }, /* 205 = nosys */
+ { 2, (sy_call_t *)utrace }, /* 205 = utrace */
{ 0, (sy_call_t *)nosys }, /* 206 = nosys */
{ 0, (sy_call_t *)nosys }, /* 207 = nosys */
{ 0, (sy_call_t *)nosys }, /* 208 = nosys */
OpenPOWER on IntegriCloud