X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fmarker.h;h=93f6ff610ebb1b43e1ddb00990c5164f9f8e174b;hb=c09a11e9677885425f146617448fc7d1f5affe90;hp=73c7f24796c7d62d5c5e6bca0a20656e0d2e4d8a;hpb=dcf9684256679564d4917b78448381a0d499bce5;p=lttv.git diff --git a/ltt/branches/poly/ltt/marker.h b/ltt/branches/poly/ltt/marker.h index 73c7f247..93f6ff61 100644 --- a/ltt/branches/poly/ltt/marker.h +++ b/ltt/branches/poly/ltt/marker.h @@ -73,6 +73,19 @@ static inline struct marker_info *marker_get_info_from_name(LttTrace *trace, return marker_get_info_from_id(trace, (guint16)(gulong)value); } +static inline char *marker_get_format_from_name(LttTrace *trace, + GQuark name) +{ + gpointer orig_key, value; + int res; + + res = g_hash_table_lookup_extended(trace->markers_format_hash, + (gconstpointer)name, &orig_key, &value); + if (!res) + return NULL; + return (char *)value; +} + static inline struct marker_field *marker_get_field(struct marker_info *info, guint i) {