Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29e32b99 authored by Chunyan Zhang's avatar Chunyan Zhang Committed by Shashank Mittal
Browse files

coresight-etm3x: Support context-ID tracing when PID namespace is enabled



The Coresight ETM drivers already support context-ID tracing, but it won't
work when PID namespace is enabled. This is because when using PID
namespace a process id (ie. VPID) seen from the current namespace differs
from the id (ie. PID) seen by kernel.

So when users write the process id seen by themselves to ETM, there needs
to be a translation from VPID to PID, as such ETM drivers will write the
PID into the Context ID register correctly.

Change-Id: I29727270dd28b8812ffe7b7d2d22dc60f4acb2a9
Signed-off-by: default avatarChunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: a440617e0d882a35accdd32dd7ae180885c6b28c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarShashank Mittal <mittals@codeaurora.org>
parent 68a090e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment