X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Ftypes.h;fp=include%2Fbabeltrace%2Ftypes.h;h=6dd08fc5440ca2404d5a3f9fa8dbb8ade6fff790;hp=ab78fa29dc0dc782775a5ec25db36e66dede911e;hb=c40a57e579977be9eb7682480428a89af5ca529c;hpb=220e0cbec97669ccfe4ed8a7e69c73c9ac72062d diff --git a/include/babeltrace/types.h b/include/babeltrace/types.h index ab78fa29..6dd08fc5 100644 --- a/include/babeltrace/types.h +++ b/include/babeltrace/types.h @@ -148,6 +148,10 @@ struct declaration_integer { struct ctf_clock *clock; }; +#ifdef ENABLE_DEBUGINFO +struct debug_info_source; +#endif + struct definition_integer { struct bt_definition p; struct declaration_integer *declaration; @@ -156,6 +160,17 @@ struct definition_integer { uint64_t _unsigned; int64_t _signed; } value; + +#ifdef ENABLE_DEBUGINFO + /* + * Debug infos (NULL if not set). + * + * This is extended debug informations set by the CTF input plugin + * itself when available. If it's set, then this integer definition + * is the "_ip" field of the stream event context. + */ + struct debug_info_source *debug_info_src; +#endif }; struct declaration_float { @@ -527,6 +542,8 @@ void bt_append_scope_path(const char *path, GArray *q); */ struct bt_definition *bt_lookup_definition(const struct bt_definition *definition, const char *field_name); +struct bt_definition *bt_lookup_definition_by_quark(const struct bt_definition *definition, + GQuark quark); struct definition_integer *bt_lookup_integer(const struct bt_definition *definition, const char *field_name, int signedness);