Struct lttng_ust_generate::EventClass
[−]
[src]
pub struct EventClass { /* fields omitted */ }
Represents a class of events that we would like to trace
Methods
impl EventClass
[src]
Represents a class of tracepoints. Every tracepoint of the same class shares the same set of fields. You can have as many tracepoints of the same class as you like, but tracepoint names are namespaced per provider, not per-class.
fn add_field<S: Into<String>>(
&mut self,
field_name: S,
ty: CTFType
) -> &mut Self
[src]
&mut self,
field_name: S,
ty: CTFType
) -> &mut Self
Adds a new field to the tracepoint. See the module level documentation for examples.
fn instantiate<S: Into<String>>(&mut self, instance_name: S) -> &mut Self
[src]
Instantiate the class, creating a new tracepoint. See the module level documentation for examples.
fn instantiate_with_level<S: Into<String>>(
&mut self,
instance_name: S,
level: LogLevel
) -> &mut Self
[src]
&mut self,
instance_name: S,
level: LogLevel
) -> &mut Self
Instantiate the class, creating a new tracepoint. Also allows specification of the level