]>
git.saurik.com Git - apple/dyld.git/blob - dyld3/Tracing.h
2 * Copyright (c) 2017 Apple Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
31 #include <sys/param.h>
32 #include <sys/mount.h>
33 #include <uuid/uuid.h>
34 #include <mach-o/loader.h>
35 #include <System/sys/kdebug.h>
37 #ifndef DBG_DYLD_SIGNPOST
38 #define DBG_DYLD_SIGNPOST (6)
41 #ifndef DBG_DYLD_TIMING
42 #define DBG_DYLD_TIMING (7)
45 #ifndef DBG_DYLD_PRINT
46 #define DBG_DYLD_PRINT (8)
49 #ifndef DBG_DYLD_SIGNPOST_START_DYLD
50 #define DBG_DYLD_SIGNPOST_START_DYLD (0)
53 #ifndef DBG_DYLD_SIGNPOST_START_MAIN
54 #define DBG_DYLD_SIGNPOST_START_MAIN (1)
57 #ifndef DBG_DYLD_SIGNPOST_START_MAIN_DYLD2
58 #define DBG_DYLD_SIGNPOST_START_MAIN_DYLD2 (2)
61 #ifndef DBG_DYLD_TIMING_STATIC_INITIALIZER
62 #define DBG_DYLD_TIMING_STATIC_INITIALIZER (0)
65 #ifndef DBG_DYLD_PRINT_GENERIC
66 #define DBG_DYLD_PRINT_GENERIC (0)
70 #define VIS_HIDDEN __attribute__((visibility("hidden")))
75 void kdebug_trace_dyld_image(const uint32_t code
,
76 const uuid_t
* uuid_bytes
,
77 const fsobj_id_t fsobjid
,
79 const mach_header
* load_addr
);
82 void kdebug_trace_dyld_signpost(const uint32_t code
, uint64_t data1
, uint64_t data2
);
85 void kdebug_trace_dyld_duration(const uint32_t code
, uint64_t data1
, uint64_t data2
, void (^block
)());
88 void kdebug_trace_print(const uint32_t code
, const char *string
);
91 #endif /* Tracing_h */