I recorded a test case with: trace-cmd record -e all -M 4 ./userspin And then ran trace-cmd record -e all ./userspin and saw that the tracing CPU mask was still set with 4 when I wanted all CPUs. The trace-cmd record should put back the original value after using -M for the tracing cpu masks.
I'm currently traveling and may be slow to respond. I'll be back at my normal hours on Monday, September 30th. -- Steve
Fixed by commit https://patchwork.kernel.org/patch/11160423/
Fixed by: 4d4db27bd911 ("trace-cmd: Reset CPU mask after setting it in trace-cmd record with option -M")