Message ID | 20231224191813.1076074-3-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 014ca2413d0d3a1d6454218c5a17374b335ffb1b |
Headers | show |
Series | libtraceevent/kbuffer: Add more kbuffer APIs | expand |
diff --git a/src/parse-utils.c b/src/parse-utils.c index 9c38e1e644d7..b434e24e44df 100644 --- a/src/parse-utils.c +++ b/src/parse-utils.c @@ -137,6 +137,11 @@ struct kbuffer *tep_kbuffer(struct tep_handle *tep) int long_size; long_size = tep_get_long_size(tep); + + /* If the long_size is not set, then use the commit size */ + if (!long_size) + long_size = tep_get_header_page_size(tep); + if (long_size == 8) long_size = KBUFFER_LSIZE_8; else