summaryrefslogtreecommitdiffstats
path: root/sys/cddl/dev/profile/profile.c
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2012-03-24 05:14:37 +0000
committergonzo <gonzo@FreeBSD.org>2012-03-24 05:14:37 +0000
commiteb11c4850d6a3f769005cf43ad8de9b51d5d63f1 (patch)
treee97bdb66fb2ca8ae412bf27f69e9b4254419ff19 /sys/cddl/dev/profile/profile.c
parent71511943f0995bf8670e6d4be48569a97ad0430d (diff)
downloadFreeBSD-src-eb11c4850d6a3f769005cf43ad8de9b51d5d63f1.zip
FreeBSD-src-eb11c4850d6a3f769005cf43ad8de9b51d5d63f1.tar.gz
Add device part of DTrace/MIPS code
Diffstat (limited to 'sys/cddl/dev/profile/profile.c')
-rw-r--r--sys/cddl/dev/profile/profile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/cddl/dev/profile/profile.c b/sys/cddl/dev/profile/profile.c
index ea52e2e..44dea7b 100644
--- a/sys/cddl/dev/profile/profile.c
+++ b/sys/cddl/dev/profile/profile.c
@@ -112,6 +112,13 @@
#endif
#endif
+#ifdef __mips
+/*
+ * This value is bogus just to make module compilable on mips
+ */
+#define PROF_ARTIFICIAL_FRAMES 3
+#endif
+
typedef struct profile_probe {
char prof_name[PROF_NAMELEN];
dtrace_id_t prof_id;
OpenPOWER on IntegriCloud