profile.h (92869) | profile.h (92870) |
---|---|
1/* $FreeBSD: head/sys/ia64/include/profile.h 92869 2002-03-21 09:35:18Z dfr $ */ | 1/* $FreeBSD: head/sys/ia64/include/profile.h 92870 2002-03-21 09:50:11Z dfr $ */ |
2/* From: NetBSD: profile.h,v 1.9 1997/04/06 08:47:37 cgd Exp */ 3 4/* 5 * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. 6 * All rights reserved. 7 * 8 * Author: Chris G. Demetriou 9 * --- 88 unchanged lines hidden (view full) --- 98#ifdef _KERNEL 99/* 100 * The following two macros do splhigh and splx respectively. 101 */ 102#define MCOUNT_ENTER(s) \n\ 103 _c = intr_disable() 104#define MCOUNT_EXIT(s) \n\ 105 intr_restore(_c) | 2/* From: NetBSD: profile.h,v 1.9 1997/04/06 08:47:37 cgd Exp */ 3 4/* 5 * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. 6 * All rights reserved. 7 * 8 * Author: Chris G. Demetriou 9 * --- 88 unchanged lines hidden (view full) --- 98#ifdef _KERNEL 99/* 100 * The following two macros do splhigh and splx respectively. 101 */ 102#define MCOUNT_ENTER(s) \n\ 103 _c = intr_disable() 104#define MCOUNT_EXIT(s) \n\ 105 intr_restore(_c) |
106#define MCOUNT_DECL(s) critical_t c; | 106#define MCOUNT_DECL(s) register_t c; |
107#ifdef GUPROF 108struct gmonparam; 109 110void nullfunc_loop_profiled(void); 111void nullfunc_profiled(void); 112void startguprof(struct gmonparam *p); 113void stopguprof(struct gmonparam *p); 114#else 115#define startguprof(p) 116#define stopguprof(p) 117#endif /* GUPROF */ 118 119#else /* !_KERNEL */ 120typedef u_long uintfptr_t; 121#endif | 107#ifdef GUPROF 108struct gmonparam; 109 110void nullfunc_loop_profiled(void); 111void nullfunc_profiled(void); 112void startguprof(struct gmonparam *p); 113void stopguprof(struct gmonparam *p); 114#else 115#define startguprof(p) 116#define stopguprof(p) 117#endif /* GUPROF */ 118 119#else /* !_KERNEL */ 120typedef u_long uintfptr_t; 121#endif |