Message ID | 20210730221824.595597-10-rostedt@goodmis.org |
---|---|
State | Superseded |
Headers | show |
Series | libtracefs: Introducing tracefs_sql() to create synthetice events with an SQL line | expand |
diff --git a/src/tracefs-sqlhist.c b/src/tracefs-sqlhist.c index 933b3609733b..887c2441a39e 100644 --- a/src/tracefs-sqlhist.c +++ b/src/tracefs-sqlhist.c @@ -72,6 +72,8 @@ struct expr { struct expr *free_list; struct expr *next; enum expr_type type; + int line; + int idx; union { struct field field; struct filter filter; @@ -300,6 +302,8 @@ static void *create_expr(struct sqlhist_bison *sb, sb->table->exprs = expr; expr->type = type; + expr->line = sb->line_no; + expr->idx = sb->line_idx; switch (type) { case EXPR_FIELD: return &expr->field;