File tree 3 files changed +3
-3
lines changed 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ samply record ./my-application my-arguments
13
13
On Linux, samply uses perf events. You can grant temporary access by running:
14
14
15
15
``` sh
16
- echo ' 1' | sudo tee /proc/sys/kernel/perf_event_paranoid
16
+ echo ' - 1' | sudo tee /proc/sys/kernel/perf_event_paranoid
17
17
```
18
18
19
19
## Installation
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ samply record ./my-application my-arguments
13
13
On Linux, samply uses perf events. You can grant temporary access by running:
14
14
15
15
``` sh
16
- echo ' 1' | sudo tee /proc/sys/kernel/perf_event_paranoid
16
+ echo ' - 1' | sudo tee /proc/sys/kernel/perf_event_paranoid
17
17
```
18
18
19
19
Visit [ the git repository] ( https://github.com/mstange/samply/ ) for more information.
Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ fn init_profiler(
405
405
eprintln ! ( "In order for samply to work with a non-root user, this level needs" ) ;
406
406
eprintln ! ( "to be set to 1 or lower." ) ;
407
407
eprintln ! ( "You can execute the following command and then try again:" ) ;
408
- eprintln ! ( " echo '1' | sudo tee /proc/sys/kernel/perf_event_paranoid" ) ;
408
+ eprintln ! ( " echo '- 1' | sudo tee /proc/sys/kernel/perf_event_paranoid" ) ;
409
409
eprintln ! ( ) ;
410
410
std:: process:: exit ( 1 ) ;
411
411
}
You can’t perform that action at this time.
0 commit comments