]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/power/x86/intel_pstate_tracer: Fix non root execution for post processing a...
authorDoug Smythies <doug.smythies@gmail.com>
Tue, 18 Dec 2018 07:34:04 +0000 (23:34 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:22 +0000 (20:02 +0100)
commit5c4c55083953eea6649dc4c19606b5a77daa7030
treed83d95ce27bbe91441c2f141f301fa20d9ab3e55
parent928dbf6a29a1a1a9626103f742ba2e2116a44045
tools/power/x86/intel_pstate_tracer: Fix non root execution for post processing a trace file

[ Upstream commit 663546903c835fe46308b1b1e53d32d1f2b33da9 ]

This script is supposed to be allowed to run with regular user
privileges if a previously captured trace is being post processed.

Commit fbe313884d7d (tools/power/x86/intel_pstate_tracer: Free the
trace buffer memory) introduced a bug that breaks that option.

Commit 35459105deb2 (tools/power/x86/intel_pstate_tracer: Add
optional setting of trace buffer memory allocation) moved the code
but kept the bug.

This patch fixes the issue.

Fixes: 35459105deb2 (tools/power/x86/intel_pstate_tracer: Add optional ...)
Signed-off-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py