• S
    trace: Support disabled events in trace-events · 1e2cf2bc
    Stefan Hajnoczi 提交于
    Sometimes it is useful to disable a trace event.  Removing the event
    from trace-events is not enough since source code will call the
    trace_*() function for the event.
    
    This patch makes it easy to build without specific trace events by
    marking them disabled in trace-events:
    
    disable multiwrite_cb(void *mcb, int ret) "mcb %p ret %d"
    
    This builds without the multiwrite_cb trace event.
    Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    
    trace: Allow bulk enabling/disabling of trace events at compile time
    
    For 'simple' trace backend, allow bulk enabling/disabling of trace
    events at compile time.  Trace events that are preceded by 'disable'
    keyword are compiled in, but turned off by default. These can
    individually be turned on using the monitor.  All other trace events are
    enabled by default.
    
    TODO :
    This could be enhanced when the trace-event namespace is partitioned into a
    group and an ID within that group. In such a case, marking a group as enabled
    would automatically enable all trace-events listed under it.
    Signed-off-by: NPrerna Saxena <prerna@linux.vnet.ibm.com>
    Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    1e2cf2bc
trace-events 1.0 KB