dc877563 |
1 | #ifndef TRACESET_H |
2 | #define TRACESET_H |
3 | |
4 | #include <lttv/attribute.h> |
5 | #include <lttv/hook.h> |
6 | #include <ltt/ltt.h> |
7 | |
8 | /* A traceset is a set of traces to be analyzed together. */ |
9 | |
ba576a78 |
10 | typedef struct _LttvTraceset LttvTraceset; |
dc877563 |
11 | |
12 | |
13 | /* Tracesets may be added to, removed from and their content listed. */ |
14 | |
15 | LttvTraceset *lttv_traceset_new(); |
16 | |
17 | void lttv_traceset_destroy(LttvTraceset *s); |
18 | |
19 | void lttv_traceset_add(LttvTraceset *s, LttTrace *t); |
20 | |
21 | unsigned lttv_traceset_number(LttvTraceset *s); |
22 | |
23 | LttTrace *lttv_traceset_get(LttvTraceset *s, unsigned i); |
24 | |
25 | void lttv_traceset_remove(LttvTraceset *s, unsigned i); |
26 | |
27 | |
28 | /* An attributes table is attached to the set and to each trace in the set. */ |
29 | |
30 | LttvAttribute *lttv_traceset_attribute(LttvTraceset *s); |
31 | |
32 | LttvAttribute *lttv_traceset_trace_attribute(LttvTraceset *s, |
33 | unsigned i); |
34 | |
35 | |
36 | #endif // TRACESET_H |
37 | |