From c348a8df36583faa39786fbb1de1b4cac9fb4cd0 Mon Sep 17 00:00:00 2001
From: Georges Da Costa <dacosta@irit.fr>
Date: Sat, 20 Apr 2024 19:29:44 +0200
Subject: [PATCH] Corrects the documentation on how to use RAPL on Intel as
 user

---
 README.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index a6d840e..99fa085 100644
--- a/README.md
+++ b/README.md
@@ -77,7 +77,7 @@ make
 ```
 You may want to run `./configure.sh --help` to see configuration options.
 
-To use `amd_rapl` you have to load the module `msr`
+To use `amd_rapl` you have to load the module `msr` and use mojitO/S as root
 ```bash
 sudo modprobe msr
 ```
@@ -85,10 +85,10 @@ To execute mojitos without being root to monitor performance counters
 ```bash
 sudo sh -c 'echo 0 >/proc/sys/kernel/perf_event_paranoid'
 ```
-To execute mojitos without being root for accessing RAPL
+To execute mojitos without being root for accessing RAPL on Intel
 ```bash
-sudo chmod a+w /sys/class/powercap/intel-rapl/*/*
-sudo chmod a+w /sys/class/powercap/intel-rapl/*/*/*
+sudo chmod a+r /sys/class/powercap/intel-rapl/*/*
+sudo chmod a+r /sys/class/powercap/intel-rapl/*/*/*
 ```
 
 For now likwid backend needs mojitos to run root privileges
-- 
GitLab