diff options
author | Mathieu Poirier <mathieu.poirier@linaro.org> | 2017-01-23 18:41:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-25 11:46:42 +0100 |
commit | 27a7e2a72c02785156ca3876bd7ca57f56a433ff (patch) | |
tree | f9a8a543b2431c6edd4babababae887ede503774 /drivers/w1 | |
parent | coresight: etm4x: Fix enabling of cycle accurate tracing in perf. (diff) | |
download | linux-27a7e2a72c02785156ca3876bd7ca57f56a433ff.tar.xz linux-27a7e2a72c02785156ca3876bd7ca57f56a433ff.zip |
coresight: etm4x: Fix timestamp configuration when working from perf
When using the ETM4x tracers from the perf interface two trace options are
available: cycle accurate and timestamp.
Enabling the timestamp feature is done by setting TRCCONFIGR.TS (bit 11).
The position of the timestamp bit in that register coincidentally happens
to be the same as what was chosen to enable timestamping from the 'mode'
sysFS entry. The code does the right thing but the semantic is wrong.
This patch sets TRCCONFIGR.TS explicitly, as it is done from the sysFS
interface. That way timestamps are set the same way from both perf and
sysFS and there is no misunderstanding as to what is intended.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1')
0 files changed, 0 insertions, 0 deletions