diff options
Diffstat (limited to 'tools/perf/util/expr.h')
-rw-r--r-- | tools/perf/util/expr.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/perf/util/expr.h b/tools/perf/util/expr.h index 9ed208d93418..fc2b5e824a66 100644 --- a/tools/perf/util/expr.h +++ b/tools/perf/util/expr.h @@ -13,8 +13,14 @@ struct metric_ref; +struct expr_id { + char *id; + struct expr_id *parent; +}; + struct expr_parse_ctx { - struct hashmap ids; + struct hashmap ids; + struct expr_id *parent; }; struct expr_id_data { @@ -25,6 +31,7 @@ struct expr_id_data { const char *metric_expr; bool counted; } ref; + struct expr_id *parent; }; bool is_ref; |