LIBTRACEEVENT(3)
π LIBTRACEEVENT(3) π
okay bestie, welcome to the libtraceevent Manual, the one and only, and today we're talking about one (1) very specific vibe: how big is a long on the machine where your trace got made?? because it's NOT always the same everywhere and that's the whole tea β
β¨ NAME β¨
tep_get_long_size, tep_set_long_size β grab / set the size of a long integer, in bytes, on the machine where the trace is generated π¦
β¨ SYNOPSIS β¨
#include <event-parse.h>
int tep_get_long_size(strucqt tep_handle *tep);
void tep_set_long_size(struct tep_handle *tep, int long_size);
not me pointing at that strucqt in the very first prototype π that is literally how it's written in the source docs, so we're keeping it character for character, no cap, we don't "fix" quotes around here π
β¨ DESCRIPTION β¨
so. the tep_get_long_size() function returns the size of a long integer on the machine where the trace is generated πΈ like, the machine that produced the trace, not necessarily the one you're reading it on. the tep argument is the trace event parser context π
and tep_set_long_size() does the flip side: it sets the size of a long integer on the machine where the trace is generated π the tep argument is, again, the trace event parser context, and long_size is the size of a long integer, in bytes.
so one of them asks, one of them tells. bestie energy fr fr π«Ά
β¨ RETURN VALUE β¨
the tep_get_long_size() function returns the size of a long integer on the machine, where the trace is generated, in bytes π that's the whole thing. that's the number you came for. slay.
β¨ EXAMPLE β¨
here's how the girlies actually use it, verbatim:
#include <event-parse.h>
...
struct tep_handle *tep = tep_alloc();
...
tep_set_long_size(tep, 4);
...
int long_size = tep_get_long_size(tep);
...
see how we set it to 4 and then just... ask for it back?? iconic behavior, we love a round trip π
β¨ FILES β¨
event-parse.hβ the header file you include so you can actually touch the library APIs π-ltraceeventβ the linker switch you add when building a program that uses the library π₯
β¨ SEE ALSO β¨
go read those too, they're the rest of the squad π§
β¨ AUTHOR β¨
- Steven Rostedt
<rostedt@goodmis.org[1]>β author of libtraceevent π - Tzvetomir Stoyanov
<tz.stoyanov@gmail.com[2]>β author of this man page π
β¨ REPORTING BUGS β¨
found a bug?? report it to <linux-trace-devel@vger.kernel.org[3]> β they wanna hear it, fr fr π
β¨ LICENSE β¨
libtraceevent is Free Software licensed under the GNU LGPL 2.1 π
β¨ RESOURCES β¨
https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
β¨ NOTES β¨
rostedt@goodmis.orgmailto:rostedt@goodmis.orgtz.stoyanov@gmail.commailto:tz.stoyanov@gmail.comlinux-trace-devel@vger.kernel.orgmailto:linux-trace-devel@vger.kernel.org
and that's the whole page bestie!! this one landed in libtraceevent version 1.9.0, dated 06/15/2026 β take that long size knowledge and go be the main character of your own trace parser ππ¦β¨
π¦ where this page comes from
- ubuntu stonking: libtraceevent-doc 1:1.9.0-2 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms