aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/flamegraph-record
diff options
context:
space:
mode:
authorTakaya Saeki <[email protected]>2024-09-03 10:21:00 +0000
committerAndrew Morton <[email protected]>2024-09-09 16:39:12 -0700
commitfc1b43c422f3deee0cfc221b071c3863dc077646 (patch)
tree1cb9891100673bcd84c2f2d6d8a6dcc3cd8cc053 /tools/perf/scripts/python/bin/flamegraph-record
parente1e4cfd01a6e75dd4c810aeac115340805cf63ff (diff)
filemap: fix the last_index of mm_filemap_get_pages
In commit b6273b55d885 ("filemap: add trace events for get_pages, map_pages, and fault"), mm_filemap_get_pages was added to trace page cache access. However, it tracks an extra page beyond the end of the accessed range. This patch fixes it by replacing last_index with last_index - 1. Link: https://lkml.kernel.org/r/[email protected] Fixes: b6273b55d885 ("filemap: add trace events for get_pages, map_pages, and fault") Signed-off-by: Takaya Saeki <[email protected]> Cc: Junichi Uekawa <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Steven Rostedt (Google) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/flamegraph-record')
0 files changed, 0 insertions, 0 deletions