blob: 90834a1d9cef77aa1c4025c60473c851267e8092 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env raku
use v6.d;
my @tracepoints = gather for $*IN.slurp.split("\n") {
take $/<tracepoint>.Str if /^SEC.*sys_$<tracepoint>=(<[a..z_0..9]>+)/;
}
say qq:to/END/;
// Code generated - don't change manually!
package tracepoints
var List = []string\{
{@tracepoints.map({ "\"sys_$_\"," }).join("\n\t") }
\}
END
|