News for hackers. Stuff that matters.
Re:Instant replay: Debugging C and C++ programs with rr by kevincox on Tuesday May 04, 2021 @09:59AM (#27037647)
Note that there is a significant difference in that `tee` also outputs the file. For something like this a single line with a single character is unlikely to bother anyone, but if you are trying to write an image to a disk it will be rather unpleasant.

I tend to use the following:

    echo 1 | sudo zsh -c '>/proc/sys/kernel/perf_event_paranoid'
or even

    <<<1 sudo zsh -c '>/proc/sys/kernel/perf_event_paranoid'
Re:Instant replay: Debugging C and C++ programs with rr by chrismorgan on Tuesday May 04, 2021 @12:59PM (#27039767)
Yeah, if it’s more then you’ll probably want to feed tee’s stdout to /dev/null.