diff options
| author | Xin Hao <[email protected]> | 2022-09-07 16:41:16 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-10-03 14:03:03 -0700 |
| commit | 61768a1b37c664faf028d925e6b7825768afcc00 (patch) | |
| tree | 5c01a6aea9dacdd6d4a3b63b9a7793e79245320c /tools/perf/scripts/python | |
| parent | 36001cba4f728e7fa2a58bc69fece22eaeef5cca (diff) | |
mm/damon: simplify damon_ctx check in damon_sysfs_before_terminate
In damon_sysfs_before_terminate(), it needs to check whether ctx->ops.id
supports 'DAMON_OPS_VADDR' or 'DAMON_OPS_FVADDR', there we can use
damon_target_has_pid() instead.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Xin Hao <[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