blob: efd5629d2841a48c9d31ad737828762c26952baa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// tracecmd.i
%module ctracecmd
%include "typemaps.i"
%include "constraints.i"
%apply Pointer NONNULL { struct tracecmd_input *handle };
%apply Pointer NONNULL { struct pevent *pevent };
%apply Pointer NONNULL { struct format_field * };
%apply unsigned long long *OUTPUT {unsigned long long *}
%apply int *OUTPUT {int *}
%{
#include "trace-cmd.h"
%}
%ignore trace_seq_vprintf;
/* SWIG can't grok these, define them to nothing */
#define __trace
#define __attribute__(x)
#define __thread
%include "trace-cmd.h"
%include "parse-events.h"
|