aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorPaul Burton <[email protected]>2018-08-30 11:01:21 -0700
committerPaul Burton <[email protected]>2018-08-31 10:07:21 -0700
commit0f02cfbc3d9e413d450d8d0fd660077c23f67eff (patch)
tree37d29a9eef33764f7974c5863a9f7a7fcdac7d9b /tools/perf/scripts/python/export-to-sqlite.py
parent5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff)
MIPS: VDSO: Match data page cache colouring when D$ aliases
When a system suffers from dcache aliasing a user program may observe stale VDSO data from an aliased cache line. Notably this can break the expectation that clock_gettime(CLOCK_MONOTONIC, ...) is, as its name suggests, monotonic. In order to ensure that users observe updates to the VDSO data page as intended, align the user mappings of the VDSO data page such that their cache colouring matches that of the virtual address range which the kernel will use to update the data page - typically its unmapped address within kseg0. This ensures that we don't introduce aliasing cache lines for the VDSO data page, and therefore that userland will observe updates without requiring cache invalidation. Signed-off-by: Paul Burton <[email protected]> Reported-by: Hauke Mehrtens <[email protected]> Reported-by: Rene Nielsen <[email protected]> Reported-by: Alexandre Belloni <[email protected]> Fixes: ebb5e78cc634 ("MIPS: Initial implementation of a VDSO") Patchwork: https://patchwork.linux-mips.org/patch/20344/ Tested-by: Alexandre Belloni <[email protected]> Tested-by: Hauke Mehrtens <[email protected]> Cc: James Hogan <[email protected]> Cc: [email protected] Cc: [email protected] # v4.4+
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions