*
* The structures should be initialized to zero before use.
*/
-#define LTTNG_EVENT_PADDING1 15
+#define LTTNG_EVENT_PADDING1 14
#define LTTNG_EVENT_PADDING2 LTTNG_SYMBOL_NAME_LEN + 32
struct lttng_event {
enum lttng_event_type type;
int32_t enabled; /* Does not apply: -1 */
pid_t pid;
unsigned char filter; /* filter enabled ? */
+ unsigned char exclusion; /* exclusions added ? */
char padding[LTTNG_EVENT_PADDING1];
}
}
+static
+const char *exclusion_string(int value)
+{
+ switch (value) {
+ case 1: return " [has exclusions]";
+ default: return "";
+ }
+}
+
static const char *loglevel_string(int value)
{
switch (value) {
case LTTNG_EVENT_TRACEPOINT:
{
if (event->loglevel != -1) {
- MSG("%s%s (loglevel: %s (%d)) (type: tracepoint)%s%s",
+ MSG("%s%s (loglevel: %s (%d)) (type: tracepoint)%s%s%s",
indent6,
event->name,
loglevel_string(event->loglevel),
event->loglevel,
enabled_string(event->enabled),
+ exclusion_string(event->exclusion),
filter_string(event->filter));
} else {
- MSG("%s%s (type: tracepoint)%s%s",
+ MSG("%s%s (type: tracepoint)%s%s%s",
indent6,
event->name,
enabled_string(event->enabled),
+ exclusion_string(event->exclusion),
filter_string(event->filter));
}
break;