projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: rename include dir to babeltrace2
[babeltrace.git]
/
plugins
/
ctf
/
common
/
metadata
/
ast.h
diff --git
a/plugins/ctf/common/metadata/ast.h
b/plugins/ctf/common/metadata/ast.h
index 9e697bdae1cdf906f314996a907d1b79dcabe005..b2eec3602b05b6f255ba4b7447cf79e0eb06d698 100644
(file)
--- a/
plugins/ctf/common/metadata/ast.h
+++ b/
plugins/ctf/common/metadata/ast.h
@@
-20,11
+20,12
@@
#include <stdint.h>
#include <stdio.h>
#include <glib.h>
#include <stdint.h>
#include <stdio.h>
#include <glib.h>
-#include <babeltrace/list-internal.h>
-#include <babeltrace/babeltrace.h>
-#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace
2
/list-internal.h>
+#include <babeltrace
2
/babeltrace.h>
+#include <babeltrace
2
/babeltrace-internal.h>
#include "decoder.h"
#include "decoder.h"
+#include "ctf-meta.h"
// the parameter name (of the reentrant 'yyparse' function)
// data is a pointer to a 'SParserParam' structure
// the parameter name (of the reentrant 'yyparse' function)
// data is a pointer to a 'SParserParam' structure
@@
-95,8
+96,8
@@
struct ctf_node {
} unknown;
struct {
/*
} unknown;
struct {
/*
- * Children nodes are ctf_expression,
type
def,
- *
typealias and type
_specifier_list.
+ * Children nodes are ctf_expression,
field_class_
def,
+ *
field_class_alias and field_class
_specifier_list.
*/
struct bt_list_head declaration_list;
struct bt_list_head trace;
*/
struct bt_list_head declaration_list;
struct bt_list_head trace;
@@
-108,43
+109,43
@@
struct ctf_node {
} root;
struct {
/*
} root;
struct {
/*
- * Children nodes are ctf_expression,
type
def,
- *
typealias and type
_specifier_list.
+ * Children nodes are ctf_expression,
field_class_
def,
+ *
field_class_alias and field_class
_specifier_list.
*/
struct bt_list_head declaration_list;
} event;
struct {
/*
*/
struct bt_list_head declaration_list;
} event;
struct {
/*
- * Children nodes are ctf_expression,
type
def,
- *
typealias and type
_specifier_list.
+ * Children nodes are ctf_expression,
field_class_
def,
+ *
field_class_alias and field_class
_specifier_list.
*/
struct bt_list_head declaration_list;
} stream;
struct {
/*
*/
struct bt_list_head declaration_list;
} stream;
struct {
/*
- * Children nodes are ctf_expression,
type
def,
- *
typealias and type
_specifier_list.
+ * Children nodes are ctf_expression,
field_class_
def,
+ *
field_class_alias and field_class
_specifier_list.
*/
struct bt_list_head declaration_list;
} env;
struct {
/*
*/
struct bt_list_head declaration_list;
} env;
struct {
/*
- * Children nodes are ctf_expression,
type
def,
- *
typealias and type
_specifier_list.
+ * Children nodes are ctf_expression,
field_class_
def,
+ *
field_class_alias and field_class
_specifier_list.
*/
struct bt_list_head declaration_list;
} trace;
struct {
/*
*/
struct bt_list_head declaration_list;
} trace;
struct {
/*
- * Children nodes are ctf_expression,
type
def,
- *
typealias and type
_specifier_list.
+ * Children nodes are ctf_expression,
field_class_
def,
+ *
field_class_alias and field_class
_specifier_list.
*/
struct bt_list_head declaration_list;
} clock;
struct {
/*
*/
struct bt_list_head declaration_list;
} clock;
struct {
/*
- * Children nodes are ctf_expression,
type
def,
- *
typealias and type
_specifier_list.
+ * Children nodes are ctf_expression,
field_class_
def,
+ *
field_class_alias and field_class
_specifier_list.
*/
struct bt_list_head declaration_list;
} callsite;
*/
struct bt_list_head declaration_list;
} callsite;
@@
-178,22
+179,22
@@
struct ctf_node {
} link;
} unary_expression;
struct {
} link;
} unary_expression;
struct {
- struct ctf_node *
type
_specifier_list;
- struct bt_list_head
type
_declarators;
- }
_type
def;
+ struct ctf_node *
field_class
_specifier_list;
+ struct bt_list_head
field_class
_declarators;
+ }
field_class_
def;
/* new type is "alias", existing type "target" */
struct {
/* new type is "alias", existing type "target" */
struct {
- struct ctf_node *
type
_specifier_list;
- struct bt_list_head
type
_declarators;
- }
type
alias_target;
+ struct ctf_node *
field_class
_specifier_list;
+ struct bt_list_head
field_class
_declarators;
+ }
field_class_
alias_target;
struct {
struct {
- struct ctf_node *
type
_specifier_list;
- struct bt_list_head
type
_declarators;
- }
typealias_alias
;
+ struct ctf_node *
field_class
_specifier_list;
+ struct bt_list_head
field_class
_declarators;
+ }
field_class_alias_name
;
struct {
struct ctf_node *target;
struct ctf_node *alias;
struct {
struct ctf_node *target;
struct ctf_node *alias;
- }
type
alias;
+ }
field_class_
alias;
struct {
enum {
TYPESPEC_UNKNOWN = 0,
struct {
enum {
TYPESPEC_UNKNOWN = 0,
@@
-221,11
+222,11
@@
struct ctf_node {
/* For struct, variant and enum */
struct ctf_node *node;
const char *id_type;
/* For struct, variant and enum */
struct ctf_node *node;
const char *id_type;
- }
type
_specifier;
+ }
field_class
_specifier;
struct {
struct {
- /* list of
type
_specifier */
+ /* list of
field_class
_specifier */
struct bt_list_head head;
struct bt_list_head head;
- }
type
_specifier_list;
+ }
field_class
_specifier_list;
struct {
unsigned int const_qualifier;
} pointer;
struct {
unsigned int const_qualifier;
} pointer;
@@
-240,10
+241,10
@@
struct ctf_node {
char *id;
struct {
/* typedec has no pointer list */
char *id;
struct {
/* typedec has no pointer list */
- struct ctf_node *
type
_declarator;
+ struct ctf_node *
field_class
_declarator;
/*
* unary expression (value) or
/*
* unary expression (value) or
- *
type
_specifier_list.
+ *
field_class
_specifier_list.
*/
struct bt_list_head length;
/* for abstract type declarator */
*/
struct bt_list_head length;
/* for abstract type declarator */
@@
-251,7
+252,7
@@
struct ctf_node {
} nested;
} u;
struct ctf_node *bitfield_len;
} nested;
} u;
struct ctf_node *bitfield_len;
- }
type
_declarator;
+ }
field_class
_declarator;
struct {
/* Children nodes are ctf_expression. */
struct bt_list_head expressions;
struct {
/* Children nodes are ctf_expression. */
struct bt_list_head expressions;
@@
-276,26
+277,32
@@
struct ctf_node {
char *enum_id;
/*
* Either NULL, or points to unary expression or
char *enum_id;
/*
* Either NULL, or points to unary expression or
- *
type
_specifier_list.
+ *
field_class
_specifier_list.
*/
*/
- struct ctf_node *container_
type
;
+ struct ctf_node *container_
field_class
;
struct bt_list_head enumerator_list;
int has_body;
} _enum;
struct {
struct bt_list_head enumerator_list;
int has_body;
} _enum;
struct {
- struct ctf_node *
type
_specifier_list;
- struct bt_list_head
type
_declarators;
+ struct ctf_node *
field_class
_specifier_list;
+ struct bt_list_head
field_class
_declarators;
} struct_or_variant_declaration;
struct {
char *name;
char *choice;
} struct_or_variant_declaration;
struct {
char *name;
char *choice;
- /* list of typedef, typealias and declarations */
+ /*
+ * list of field_class_def, field_class_alias and
+ * declarations
+ */
struct bt_list_head declaration_list;
int has_body;
} variant;
struct {
char *name;
struct bt_list_head declaration_list;
int has_body;
} variant;
struct {
char *name;
- /* list of typedef, typealias and declarations */
+ /*
+ * list of field_class_def, field_class_alias and
+ * declarations
+ */
struct bt_list_head declaration_list;
int has_body;
struct bt_list_head min_align; /* align() attribute */
struct bt_list_head declaration_list;
int has_body;
struct bt_list_head min_align; /* align() attribute */
@@
-311,13
+318,17
@@
const char *node_type(struct ctf_node *node);
BT_HIDDEN
struct ctf_visitor_generate_ir *ctf_visitor_generate_ir_create(
BT_HIDDEN
struct ctf_visitor_generate_ir *ctf_visitor_generate_ir_create(
-
const struct ctf_metadata_decoder_config *config
,
- const
char *name
);
+
bt_self_component_source *self_comp
,
+ const
struct ctf_metadata_decoder_config *config
);
void ctf_visitor_generate_ir_destroy(struct ctf_visitor_generate_ir *visitor);
BT_HIDDEN
void ctf_visitor_generate_ir_destroy(struct ctf_visitor_generate_ir *visitor);
BT_HIDDEN
-struct bt_trace *ctf_visitor_generate_ir_get_trace(
+bt_trace_class *ctf_visitor_generate_ir_get_ir_trace_class(
+ struct ctf_visitor_generate_ir *visitor);
+
+BT_HIDDEN
+struct ctf_trace_class *ctf_visitor_generate_ir_borrow_ctf_trace_class(
struct ctf_visitor_generate_ir *visitor);
BT_HIDDEN
struct ctf_visitor_generate_ir *visitor);
BT_HIDDEN
This page took
0.028355 seconds
and
4
git commands to generate.