Message ID | 20250410212112.45e673ad@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 6680daed8a7111c6365aaa2844ff03b26bab0bcb |
Headers | show |
Series | libtracefs: Have tracefs_sql() cast handle stacktrace | expand |
diff --git a/src/tracefs-sqlhist.c b/src/tracefs-sqlhist.c index 67be678..30c8ccc 100644 --- a/src/tracefs-sqlhist.c +++ b/src/tracefs-sqlhist.c @@ -1450,6 +1450,10 @@ static int verify_field_type(struct tep_handle *tep, if (tfield->flags & (TEP_FIELD_IS_STRING | TEP_FIELD_IS_ARRAY)) goto fail_type; ret = TRACEFS_HIST_KEY_BUCKETS; + } else if (!strcmp(type, "stacktrace")) { + if (!(tfield->flags & (TEP_FIELD_IS_ARRAY))) + goto fail_type; + ret = TRACEFS_HIST_KEY_STACKTRACE; } else { parse_error(sb, field->raw, "Cast of '%s' to unknown type '%s'\n",