From 9a56b5f763fac99cd5142e25a99d7a7af90fb978 Mon Sep 17 00:00:00 2001
From: Dmitrij Tejblum
Date: Wed, 16 Jun 1999 18:55:35 +0000
Subject: [PATCH] Make syscall tracing work: include "opt_ktrace.h" and make it
compile.
---
sys/alpha/alpha/trap.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/sys/alpha/alpha/trap.c b/sys/alpha/alpha/trap.c
index 0e7b37514a9c..943593739971 100644
--- a/sys/alpha/alpha/trap.c
+++ b/sys/alpha/alpha/trap.c
@@ -1,4 +1,4 @@
-/* $Id: trap.c,v 1.15 1999/06/08 16:42:17 dt Exp $ */
+/* $Id: trap.c,v 1.16 1999/06/10 20:40:58 dt Exp $ */
/* $NetBSD: trap.c,v 1.31 1998/03/26 02:21:46 thorpej Exp $ */
/*
@@ -30,6 +30,7 @@
/* #include "opt_fix_unaligned_vax_fp.h" */
#include "opt_ddb.h"
+#include "opt_ktrace.h"
#include "opt_simos.h"
#include
@@ -59,6 +60,11 @@
#include
#include
+#ifdef KTRACE
+#include
+#include
+#endif
+
#ifdef DDB
#include
#endif
@@ -657,7 +663,7 @@ syscall(code, framep)
userret(p, framep->tf_regs[FRAME_PC], sticks);
#ifdef KTRACE
if (KTRPOINT(p, KTR_SYSRET))
- ktrsysret(p->p_tracep, code, error, rval[0]);
+ ktrsysret(p->p_tracep, code, error, p->p_retval[0]);
#endif
/*