Message ID | 20210803170606.694085-10-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [v3,01/22] libtracefs: Added new API tracefs_sql() | expand |
diff --git a/src/tracefs-sqlhist.c b/src/tracefs-sqlhist.c index 70bcab14cb27..2e301e024d13 100644 --- a/src/tracefs-sqlhist.c +++ b/src/tracefs-sqlhist.c @@ -73,6 +73,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; @@ -301,6 +303,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;