1 /* 2 * Copyright (c) 1992 Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Ralph Campbell. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)profile.h 7.1 (Berkeley) 07/27/92 11 */ 12 13 #define _MCOUNT_DECL static inline void _mcount 14 15 #define MCOUNT 16 17 #ifdef KERNEL 18 /* 19 * The following two macros do splhigh and splx respectively. 20 * They have to be defined this way because these are real 21 * functions on the PMAX, and we do not want to invoke mcount 22 * recursively. 23 */ 24 #define MCOUNT_ENTER 25 26 #define MCOUNT_EXIT 27 #endif /* KERNEL */ 28