diff options
author | Alex Elder <elder@linaro.org> | 2018-04-11 01:25:37 +0300 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2018-05-25 23:53:53 +0300 |
commit | 7070874973eeccd867628a5c9eaefee3e832ccaa (patch) | |
tree | d6d54d74925d87ba9b953d628bb7e69ef36f6fca /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 36b0aefdee6e203f3130d7444bf5103139ecbe25 (diff) | |
download | linux-7070874973eeccd867628a5c9eaefee3e832ccaa.tar.xz |
soc: qcom: smem: fix first cache entry calculation
Cached items are found at the high end of an smem partition. A
cached item's shared memory precedes the private entry structure
that describes it.
The address of the structure describing the first cached item should
be returned by phdr_to_first_cached_entry(). However the function
calculates the start address using the wrong structure size.
Fix this by computing the first item's entry structure address by
subtracting the size of a private entry structure rather than a
partition header structure.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions