When trace-cmd is run with option -M, to set the tracing cpumask, it was not reset to its previous state. The trace-cmd record should put back the original value after using -M for the tracing cpu masks. Fixes https://bugzilla.kernel.org/show_bug.cgi?id=204941 Reported-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx> Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@xxxxxxxxx> --- tracecmd/trace-record.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c index 96d2c1a..69de82a 100644 --- a/tracecmd/trace-record.c +++ b/tracecmd/trace-record.c @@ -2403,6 +2403,7 @@ static void set_mask(struct buffer_instance *instance) path = get_instance_file(instance, "tracing_cpumask"); if (!path) die("could not allocate path"); + reset_save_file(path, RESET_DEFAULT_PRIO); ret = stat(path, &st); if (ret < 0) { -- 2.21.0