aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorXiaomeng Tong <[email protected]>2022-04-29 14:37:00 -0700
committerakpm <[email protected]>2022-04-29 14:37:00 -0700
commit1f4910b3affc982a94d665470f0f700225952108 (patch)
tree818a77e9c466132b1a266e510712943967e8208d /tools/perf/scripts/python
parenteae3cb2e87ff84547e66211b81301a8f9122840f (diff)
damon: vaddr-test: tweak code to make the logic clearer
Move these two lines into the damon_for_each_region loop, it is always for testing the last region. And also avoid to use a list iterator 'r' outside the loop which is considered harmful[1]. [1]: https://lkml.org/lkml/2022/2/17/1032 Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Xiaomeng Tong <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions