Re: [PATCH v4 00/10] tracing: introducing eventfs

From: Steven Rostedt
Date: Fri Jul 21 2023 - 13:31:09 EST


On Fri, 21 Jul 2023 17:17:24 +0000
Nadav Amit <namit@xxxxxxxxxx> wrote:

> [ And “bool" is clearer type for is_freed. ]

Oh, and to answer why I didn't use bool. I want to make sure that it
doesn't use just part of the other elements in the union. If the compiler
decides to use one byte for the bool (which it is perfectly valid to do
so), and it happens to map over a zero of the other elements in the union,
then it will give a false negative.

By using unsigned long, it will be guaranteed to contain some content.

-- Steve