Project

General

Profile

Bug #135

Documentation should mention that lttng_event must be initialized to 0 to use the default values

Added by Raphaël Beamonte over 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
02/28/2012
Due date:
% Done:

100%

Estimated time:

Description

If we do not initialize the struct lttng_event to 0, the lttng sessiond might return a fatal error when executing (if the value of the loglevel_type is set to an unknown value).
Documentation should mention that we can (have to ?) initialize to 0 the structure with :

struct lttng_event event = {0};

Or

struct lttng_event event;
memset(&event, 0, sizeof(struct lttng_event)));

Also available in: Atom PDF