Message ID | 20210810204818.880714-9-rostedt@goodmis.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | libtracefs: APIs to read a trace event hist file | expand |
diff --git a/src/tracefs-hist-data.c b/src/tracefs-hist-data.c index 0f811d6e3154..90c9cb2c7df8 100644 --- a/src/tracefs-hist-data.c +++ b/src/tracefs-hist-data.c @@ -399,6 +399,9 @@ static int __do_key_val(struct tracefs_hist_data *hdata, break; } + if (hdata->current_key_type->type < TRACEFS_HIST_KEY_MAX) + key->flags |= (1 << hdata->current_key_type->type); + return 0; }