home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / darwin / darwinx86.iso / usr / include / profile / profile-mk.h < prev   
Encoding:
C/C++ Source or Header  |  2001-09-30  |  1.7 KB  |  61 lines

  1. /*
  2.  * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  3.  *
  4.  * @APPLE_LICENSE_HEADER_START@
  5.  * 
  6.  * The contents of this file constitute Original Code as defined in and
  7.  * are subject to the Apple Public Source License Version 1.1 (the
  8.  * "License").  You may not use this file except in compliance with the
  9.  * License.  Please obtain a copy of the License at
  10.  * http://www.apple.com/publicsource and read it before using this file.
  11.  * 
  12.  * This Original Code and all software distributed under the License are
  13.  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  14.  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  15.  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  16.  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
  17.  * License for the specific language governing rights and limitations
  18.  * under the License.
  19.  * 
  20.  * @APPLE_LICENSE_HEADER_END@
  21.  */
  22. /*
  23.  * @OSF_COPYRIGHT@
  24.  */
  25. /*
  26.  * Microkernel interface to common profiling.
  27.  */
  28.  
  29. #include <profiling/profile-internal.h>
  30. #include <mach/std_types.h>
  31. #include <types.h>
  32. #include <device/device_types.h>
  33.  
  34. /*
  35.  * JMM - We don't use these, just the BSD interfaces.
  36.  */
  37. #if 0
  38. extern void kmstartup(void);
  39. extern int gprofprobe(caddr_t, void *);
  40. extern void gprofattach(void);
  41. extern int gprofopen(dev_t, int, io_req_t);
  42. extern void gprofclose(dev_t);
  43. extern void gprofstrategy(io_req_t);
  44. extern int gprofread(dev_t, io_req_t);
  45. extern int gprofwrite(dev_t, io_req_t);
  46. #endif
  47.  
  48. /*
  49.  * Macros to access the nth cpu's profile variable structures.
  50.  */
  51.  
  52. #if NCPUS <= 1
  53. #define PROFILE_VARS(cpu) (&_profile_vars)
  54.  
  55. #else
  56. extern struct profile_vars *_profile_vars_cpus[NCPUS];
  57. #define PROFILE_VARS(cpu) (_profile_vars_cpus[(cpu)])
  58. #endif
  59.  
  60.  
  61.