]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/profiling/profile-mk.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
26 * Microkernel interface to common profiling.
29 #include <profiling/profile-internal.h>
30 #include <mach/std_types.h>
32 #include <device/device_types.h>
35 * JMM - We don't use these, just the BSD interfaces.
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
);
49 * Macros to access the nth cpu's profile variable structures.
53 #define PROFILE_VARS(cpu) (&_profile_vars)
56 extern struct profile_vars
*_profile_vars_cpus
[NCPUS
];
57 #define PROFILE_VARS(cpu) (_profile_vars_cpus[(cpu)])