pf2 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -2
  3. data/Cargo.lock +186 -17
  4. data/Cargo.toml +1 -1
  5. data/README.md +18 -6
  6. data/Rakefile +8 -0
  7. data/crates/backtrace-sys2/.gitignore +1 -0
  8. data/crates/backtrace-sys2/Cargo.toml +9 -0
  9. data/crates/backtrace-sys2/build.rs +48 -0
  10. data/crates/backtrace-sys2/src/lib.rs +5 -0
  11. data/crates/backtrace-sys2/src/libbacktrace/.gitignore +15 -0
  12. data/crates/backtrace-sys2/src/libbacktrace/Isaac.Newton-Opticks.txt +9286 -0
  13. data/crates/backtrace-sys2/src/libbacktrace/LICENSE +29 -0
  14. data/crates/backtrace-sys2/src/libbacktrace/Makefile.am +623 -0
  15. data/crates/backtrace-sys2/src/libbacktrace/Makefile.in +2666 -0
  16. data/crates/backtrace-sys2/src/libbacktrace/README.md +36 -0
  17. data/crates/backtrace-sys2/src/libbacktrace/aclocal.m4 +864 -0
  18. data/crates/backtrace-sys2/src/libbacktrace/alloc.c +167 -0
  19. data/crates/backtrace-sys2/src/libbacktrace/allocfail.c +136 -0
  20. data/crates/backtrace-sys2/src/libbacktrace/allocfail.sh +104 -0
  21. data/crates/backtrace-sys2/src/libbacktrace/atomic.c +113 -0
  22. data/crates/backtrace-sys2/src/libbacktrace/backtrace-supported.h.in +66 -0
  23. data/crates/backtrace-sys2/src/libbacktrace/backtrace.c +129 -0
  24. data/crates/backtrace-sys2/src/libbacktrace/backtrace.h +189 -0
  25. data/crates/backtrace-sys2/src/libbacktrace/btest.c +501 -0
  26. data/crates/backtrace-sys2/src/libbacktrace/compile +348 -0
  27. data/crates/backtrace-sys2/src/libbacktrace/config/enable.m4 +38 -0
  28. data/crates/backtrace-sys2/src/libbacktrace/config/lead-dot.m4 +31 -0
  29. data/crates/backtrace-sys2/src/libbacktrace/config/libtool.m4 +7436 -0
  30. data/crates/backtrace-sys2/src/libbacktrace/config/ltoptions.m4 +369 -0
  31. data/crates/backtrace-sys2/src/libbacktrace/config/ltsugar.m4 +123 -0
  32. data/crates/backtrace-sys2/src/libbacktrace/config/ltversion.m4 +23 -0
  33. data/crates/backtrace-sys2/src/libbacktrace/config/lt~obsolete.m4 +98 -0
  34. data/crates/backtrace-sys2/src/libbacktrace/config/multi.m4 +68 -0
  35. data/crates/backtrace-sys2/src/libbacktrace/config/override.m4 +117 -0
  36. data/crates/backtrace-sys2/src/libbacktrace/config/unwind_ipinfo.m4 +37 -0
  37. data/crates/backtrace-sys2/src/libbacktrace/config/warnings.m4 +227 -0
  38. data/crates/backtrace-sys2/src/libbacktrace/config.guess +1700 -0
  39. data/crates/backtrace-sys2/src/libbacktrace/config.h.in +182 -0
  40. data/crates/backtrace-sys2/src/libbacktrace/config.sub +1885 -0
  41. data/crates/backtrace-sys2/src/libbacktrace/configure +15740 -0
  42. data/crates/backtrace-sys2/src/libbacktrace/configure.ac +613 -0
  43. data/crates/backtrace-sys2/src/libbacktrace/dwarf.c +4402 -0
  44. data/crates/backtrace-sys2/src/libbacktrace/edtest.c +120 -0
  45. data/crates/backtrace-sys2/src/libbacktrace/edtest2.c +43 -0
  46. data/crates/backtrace-sys2/src/libbacktrace/elf.c +7443 -0
  47. data/crates/backtrace-sys2/src/libbacktrace/fileline.c +407 -0
  48. data/crates/backtrace-sys2/src/libbacktrace/filenames.h +52 -0
  49. data/crates/backtrace-sys2/src/libbacktrace/filetype.awk +13 -0
  50. data/crates/backtrace-sys2/src/libbacktrace/install-debuginfo-for-buildid.sh.in +65 -0
  51. data/crates/backtrace-sys2/src/libbacktrace/install-sh +501 -0
  52. data/crates/backtrace-sys2/src/libbacktrace/instrumented_alloc.c +114 -0
  53. data/crates/backtrace-sys2/src/libbacktrace/internal.h +389 -0
  54. data/crates/backtrace-sys2/src/libbacktrace/libtool.m4 +7436 -0
  55. data/crates/backtrace-sys2/src/libbacktrace/ltmain.sh +8636 -0
  56. data/crates/backtrace-sys2/src/libbacktrace/ltoptions.m4 +369 -0
  57. data/crates/backtrace-sys2/src/libbacktrace/ltsugar.m4 +123 -0
  58. data/crates/backtrace-sys2/src/libbacktrace/ltversion.m4 +23 -0
  59. data/crates/backtrace-sys2/src/libbacktrace/lt~obsolete.m4 +98 -0
  60. data/crates/backtrace-sys2/src/libbacktrace/macho.c +1355 -0
  61. data/crates/backtrace-sys2/src/libbacktrace/missing +215 -0
  62. data/crates/backtrace-sys2/src/libbacktrace/mmap.c +331 -0
  63. data/crates/backtrace-sys2/src/libbacktrace/mmapio.c +110 -0
  64. data/crates/backtrace-sys2/src/libbacktrace/move-if-change +83 -0
  65. data/crates/backtrace-sys2/src/libbacktrace/mtest.c +410 -0
  66. data/crates/backtrace-sys2/src/libbacktrace/nounwind.c +66 -0
  67. data/crates/backtrace-sys2/src/libbacktrace/pecoff.c +957 -0
  68. data/crates/backtrace-sys2/src/libbacktrace/posix.c +104 -0
  69. data/crates/backtrace-sys2/src/libbacktrace/print.c +92 -0
  70. data/crates/backtrace-sys2/src/libbacktrace/read.c +110 -0
  71. data/crates/backtrace-sys2/src/libbacktrace/simple.c +108 -0
  72. data/crates/backtrace-sys2/src/libbacktrace/sort.c +108 -0
  73. data/crates/backtrace-sys2/src/libbacktrace/state.c +72 -0
  74. data/crates/backtrace-sys2/src/libbacktrace/stest.c +137 -0
  75. data/crates/backtrace-sys2/src/libbacktrace/test-driver +148 -0
  76. data/crates/backtrace-sys2/src/libbacktrace/test_format.c +55 -0
  77. data/crates/backtrace-sys2/src/libbacktrace/testlib.c +234 -0
  78. data/crates/backtrace-sys2/src/libbacktrace/testlib.h +110 -0
  79. data/crates/backtrace-sys2/src/libbacktrace/ttest.c +161 -0
  80. data/crates/backtrace-sys2/src/libbacktrace/unittest.c +92 -0
  81. data/crates/backtrace-sys2/src/libbacktrace/unknown.c +65 -0
  82. data/crates/backtrace-sys2/src/libbacktrace/xcoff.c +1606 -0
  83. data/crates/backtrace-sys2/src/libbacktrace/xztest.c +508 -0
  84. data/crates/backtrace-sys2/src/libbacktrace/zstdtest.c +523 -0
  85. data/crates/backtrace-sys2/src/libbacktrace/ztest.c +541 -0
  86. data/ext/pf2/Cargo.toml +1 -0
  87. data/ext/pf2/src/backtrace.rs +127 -0
  88. data/ext/pf2/src/lib.rs +3 -0
  89. data/ext/pf2/src/profile.rs +16 -1
  90. data/ext/pf2/src/profile_serializer.rs +95 -21
  91. data/ext/pf2/src/ringbuffer.rs +7 -0
  92. data/ext/pf2/src/ruby_init.rs +18 -6
  93. data/ext/pf2/src/ruby_internal_apis.rs +47 -0
  94. data/ext/pf2/src/sample.rs +22 -1
  95. data/ext/pf2/src/signal_scheduler/configuration.rs +7 -0
  96. data/ext/pf2/src/signal_scheduler/timer_installer.rs +79 -126
  97. data/ext/pf2/src/signal_scheduler.rs +95 -26
  98. data/ext/pf2/src/timer_thread_scheduler.rs +88 -12
  99. data/ext/pf2/src/util.rs +2 -2
  100. data/lib/pf2/reporter.rb +12 -5
  101. data/lib/pf2/version.rb +1 -1
  102. data/lib/pf2.rb +3 -6
  103. metadata +97 -6
@@ -0,0 +1,182 @@
1
+ /* config.h.in. Generated from configure.ac by autoheader. */
2
+
3
+ /* ELF size: 32 or 64 */
4
+ #undef BACKTRACE_ELF_SIZE
5
+
6
+ /* XCOFF size: 32 or 64 */
7
+ #undef BACKTRACE_XCOFF_SIZE
8
+
9
+ /* Define to 1 if you have the __atomic functions */
10
+ #undef HAVE_ATOMIC_FUNCTIONS
11
+
12
+ /* Define to 1 if you have the `clock_gettime' function. */
13
+ #undef HAVE_CLOCK_GETTIME
14
+
15
+ /* Define to 1 if you have the declaration of `getpagesize', and to 0 if you
16
+ don't. */
17
+ #undef HAVE_DECL_GETPAGESIZE
18
+
19
+ /* Define to 1 if you have the declaration of `strnlen', and to 0 if you
20
+ don't. */
21
+ #undef HAVE_DECL_STRNLEN
22
+
23
+ /* Define to 1 if you have the declaration of `_pgmptr', and to 0 if you
24
+ don't. */
25
+ #undef HAVE_DECL__PGMPTR
26
+
27
+ /* Define to 1 if you have the <dlfcn.h> header file. */
28
+ #undef HAVE_DLFCN_H
29
+
30
+ /* Define if dl_iterate_phdr is available. */
31
+ #undef HAVE_DL_ITERATE_PHDR
32
+
33
+ /* Define to 1 if you have the fcntl function */
34
+ #undef HAVE_FCNTL
35
+
36
+ /* Define if getexecname is available. */
37
+ #undef HAVE_GETEXECNAME
38
+
39
+ /* Define if _Unwind_GetIPInfo is available. */
40
+ #undef HAVE_GETIPINFO
41
+
42
+ /* Define to 1 if you have the <inttypes.h> header file. */
43
+ #undef HAVE_INTTYPES_H
44
+
45
+ /* Define to 1 if you have KERN_PROC and KERN_PROC_PATHNAME in <sys/sysctl.h>.
46
+ */
47
+ #undef HAVE_KERN_PROC
48
+
49
+ /* Define to 1 if you have KERN_PROCARGS and KERN_PROC_PATHNAME in
50
+ <sys/sysctl.h>. */
51
+ #undef HAVE_KERN_PROC_ARGS
52
+
53
+ /* Define if -llzma is available. */
54
+ #undef HAVE_LIBLZMA
55
+
56
+ /* Define to 1 if you have the <link.h> header file. */
57
+ #undef HAVE_LINK_H
58
+
59
+ /* Define if AIX loadquery is available. */
60
+ #undef HAVE_LOADQUERY
61
+
62
+ /* Define to 1 if you have the `lstat' function. */
63
+ #undef HAVE_LSTAT
64
+
65
+ /* Define to 1 if you have the <mach-o/dyld.h> header file. */
66
+ #undef HAVE_MACH_O_DYLD_H
67
+
68
+ /* Define to 1 if you have the <memory.h> header file. */
69
+ #undef HAVE_MEMORY_H
70
+
71
+ /* Define to 1 if you have the `readlink' function. */
72
+ #undef HAVE_READLINK
73
+
74
+ /* Define to 1 if you have the <stdint.h> header file. */
75
+ #undef HAVE_STDINT_H
76
+
77
+ /* Define to 1 if you have the <stdlib.h> header file. */
78
+ #undef HAVE_STDLIB_H
79
+
80
+ /* Define to 1 if you have the <strings.h> header file. */
81
+ #undef HAVE_STRINGS_H
82
+
83
+ /* Define to 1 if you have the <string.h> header file. */
84
+ #undef HAVE_STRING_H
85
+
86
+ /* Define to 1 if you have the __sync functions */
87
+ #undef HAVE_SYNC_FUNCTIONS
88
+
89
+ /* Define to 1 if you have the <sys/ldr.h> header file. */
90
+ #undef HAVE_SYS_LDR_H
91
+
92
+ /* Define to 1 if you have the <sys/link.h> header file. */
93
+ #undef HAVE_SYS_LINK_H
94
+
95
+ /* Define to 1 if you have the <sys/mman.h> header file. */
96
+ #undef HAVE_SYS_MMAN_H
97
+
98
+ /* Define to 1 if you have the <sys/stat.h> header file. */
99
+ #undef HAVE_SYS_STAT_H
100
+
101
+ /* Define to 1 if you have the <sys/types.h> header file. */
102
+ #undef HAVE_SYS_TYPES_H
103
+
104
+ /* Define to 1 if you have the <unistd.h> header file. */
105
+ #undef HAVE_UNISTD_H
106
+
107
+ /* Define to 1 if you have the <windows.h> header file. */
108
+ #undef HAVE_WINDOWS_H
109
+
110
+ /* Define if -lz is available. */
111
+ #undef HAVE_ZLIB
112
+
113
+ /* Define if -lzstd is available. */
114
+ #undef HAVE_ZSTD
115
+
116
+ /* Define to the sub-directory in which libtool stores uninstalled libraries.
117
+ */
118
+ #undef LT_OBJDIR
119
+
120
+ /* Define to the address where bug reports for this package should be sent. */
121
+ #undef PACKAGE_BUGREPORT
122
+
123
+ /* Define to the full name of this package. */
124
+ #undef PACKAGE_NAME
125
+
126
+ /* Define to the full name and version of this package. */
127
+ #undef PACKAGE_STRING
128
+
129
+ /* Define to the one symbol short name of this package. */
130
+ #undef PACKAGE_TARNAME
131
+
132
+ /* Define to the home page for this package. */
133
+ #undef PACKAGE_URL
134
+
135
+ /* Define to the version of this package. */
136
+ #undef PACKAGE_VERSION
137
+
138
+ /* Define to 1 if you have the ANSI C header files. */
139
+ #undef STDC_HEADERS
140
+
141
+ /* Enable extensions on AIX 3, Interix. */
142
+ #ifndef _ALL_SOURCE
143
+ # undef _ALL_SOURCE
144
+ #endif
145
+ /* Enable GNU extensions on systems that have them. */
146
+ #ifndef _GNU_SOURCE
147
+ # undef _GNU_SOURCE
148
+ #endif
149
+ /* Enable threading extensions on Solaris. */
150
+ #ifndef _POSIX_PTHREAD_SEMANTICS
151
+ # undef _POSIX_PTHREAD_SEMANTICS
152
+ #endif
153
+ /* Enable extensions on HP NonStop. */
154
+ #ifndef _TANDEM_SOURCE
155
+ # undef _TANDEM_SOURCE
156
+ #endif
157
+ /* Enable general extensions on Solaris. */
158
+ #ifndef __EXTENSIONS__
159
+ # undef __EXTENSIONS__
160
+ #endif
161
+
162
+
163
+ /* Enable large inode numbers on Mac OS X 10.5. */
164
+ #ifndef _DARWIN_USE_64_BIT_INODE
165
+ # define _DARWIN_USE_64_BIT_INODE 1
166
+ #endif
167
+
168
+ /* Number of bits in a file offset, on hosts where this is settable. */
169
+ #undef _FILE_OFFSET_BITS
170
+
171
+ /* Define for large files, on AIX-style hosts. */
172
+ #undef _LARGE_FILES
173
+
174
+ /* Define to 1 if on MINIX. */
175
+ #undef _MINIX
176
+
177
+ /* Define to 2 if the system does not provide POSIX.1 features except with
178
+ this defined. */
179
+ #undef _POSIX_1_SOURCE
180
+
181
+ /* Define to 1 if you need to in order for `stat' and other things to work. */
182
+ #undef _POSIX_SOURCE