Added
Link Here
|
1 |
--- dtrace_cython/dtrace_h.pxd.orig |
2 |
+++ dtrace_cython/dtrace_h.pxd |
3 |
@@ -7,7 +7,7 @@ cdef extern from "libelf_workaround.h": |
4 |
pass |
5 |
|
6 |
|
7 |
-IF UNAME_SYSNAME == "Darwin": |
8 |
+IF UNAME_SYSNAME == "Darwin" or UNAME_SYSNAME == "FreeBSD": |
9 |
cdef extern from "stdint.h": |
10 |
# needed for quantize mths. |
11 |
cdef int64_t INT64_MAX |
12 |
@@ -18,7 +18,6 @@ ELSE: |
13 |
cdef int64_t INT64_MAX |
14 |
cdef int64_t INT64_MIN |
15 |
|
16 |
- |
17 |
cdef extern from "sys/dtrace.h": |
18 |
|
19 |
ctypedef enum agg_actions: |
20 |
@@ -34,10 +33,12 @@ cdef extern from "sys/dtrace.h": |
21 |
DTRACEAGG_QUANTIZE = (DTRACEACT_AGGREGATION + 7) |
22 |
DTRACEAGG_LQUANTIZE = (DTRACEACT_AGGREGATION + 8) |
23 |
|
24 |
- ctypedef enum quantize_types: |
25 |
+ cdef int DTRACE_QUANTIZE_NBUCKETS |
26 |
+ cdef int DTRACE_QUANTIZE_ZEROBUCKET |
27 |
+ #ctypedef enum quantize_types: |
28 |
# NBBY = 8 |
29 |
- DTRACE_QUANTIZE_NBUCKETS = (((sizeof (uint64_t) * 8) - 1) * 2 + 1) |
30 |
- DTRACE_QUANTIZE_ZEROBUCKET = ((sizeof (uint64_t) * 8) - 1) |
31 |
+ # DTRACE_QUANTIZE_NBUCKETS = (((sizeof (uint64_t) * 8) - 1) * 2 + 1) |
32 |
+ # DTRACE_QUANTIZE_ZEROBUCKET = ((sizeof (uint64_t) * 8) - 1) |
33 |
|
34 |
ctypedef struct dtrace_recdesc_t: |
35 |
# Taken from sys/dtrace.h:931 |
36 |
@@ -56,7 +57,6 @@ cdef extern from "sys/dtrace.h": |
37 |
cdef int32_t DTRACE_LQUANTIZE_BASE(long x) |
38 |
cdef int64_t DTRACE_QUANTIZE_BUCKETVAL(long buck) |
39 |
|
40 |
- |
41 |
cdef extern from "dtrace.h": |
42 |
|
43 |
ctypedef enum dtrace_probespec_t: |