]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tools/power/x86/intel_pstate_tracer: Adjust directory ownership
authorDoug Smythies <doug.smythies@gmail.com>
Tue, 18 Apr 2017 00:12:13 +0000 (17:12 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Apr 2017 00:47:28 +0000 (02:47 +0200)
commit010a522cf2d9a01612b8a95abd787e70ae123ea6
tree8a97fd6c13b6febb983e7a97635a83dde3b672b4
parent4f7d029b9bf009fbee76bb10c0c4351a1870d2f3
tools/power/x86/intel_pstate_tracer: Adjust directory ownership

The intel_pstate_tracer.py script only needs to be run as root
when it is also used to actually acquire the trace data that
it will post process. Otherwise it is generally preferable
that it be run as a regular user.
If run the first time as root the results directory will be
incorrect for any subsequent run as a regular user. For any run
as root the specific testname subdirectory will not allow any
subsequent file saves by a regular user. Typically, and for example,
the regular user might be attempting to save a .csv file converted to
a spreadsheet with added calculations or graphs.

Set the directories and files owner and groups IDs to be the regular
user, if required.

Signed-off-by: Doug Smythies <dsmythies@telus.net>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py