Skip to content
  • Josh DuBois's avatar
    648b4823
    trace/simple: Enable tracing on startup only if the user specifies a trace option · 648b4823
    Josh DuBois authored
    
    
    Tracing can be enabled at the command line or via the
    monitor. Command-line trace options are recorded during
    trace_opt_parse(), but tracing is not enabled until the various
    front-ends later call trace_init_file(). If the user passes a trace
    option on the command-line, remember that and enable tracing during
    trace_init_file().  Otherwise, trace_init_file() should record the
    trace file specified by the frontend and avoid enabling traces
    until the user requests them via the monitor.
    
    This fixes 1b7157be and also
    db25d56c, by allowing the user
    to enable traces on the command line and also avoiding
    unwanted trace-<pid> files when the user has not asked for them.
    
    Fixes: 1b7157be
    Signed-off-by: default avatarJosh DuBois <josh@joshdubois.com>
    Message-id: 20200816174610.20253-1-josh@joshdubois.com
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    648b4823
    trace/simple: Enable tracing on startup only if the user specifies a trace option
    Josh DuBois authored
    
    
    Tracing can be enabled at the command line or via the
    monitor. Command-line trace options are recorded during
    trace_opt_parse(), but tracing is not enabled until the various
    front-ends later call trace_init_file(). If the user passes a trace
    option on the command-line, remember that and enable tracing during
    trace_init_file().  Otherwise, trace_init_file() should record the
    trace file specified by the frontend and avoid enabling traces
    until the user requests them via the monitor.
    
    This fixes 1b7157be and also
    db25d56c, by allowing the user
    to enable traces on the command line and also avoiding
    unwanted trace-<pid> files when the user has not asked for them.
    
    Fixes: 1b7157be
    Signed-off-by: default avatarJosh DuBois <josh@joshdubois.com>
    Message-id: 20200816174610.20253-1-josh@joshdubois.com
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Loading