diff options
author | Rob Clark <robdclark@chromium.org> | 2021-06-14 18:06:18 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-06-23 17:33:55 +0300 |
commit | 5434941fd45d30dadc7e9e1227cf109bb3796d22 (patch) | |
tree | 2c84a6bbb6b666ad237dec6df3723a9b74ddf76c /drivers/gpu/drm/msm/msm_drv.h | |
parent | c96348a8fbff90ef610b0323218e9d585683bdd2 (diff) | |
download | linux-5434941fd45d30dadc7e9e1227cf109bb3796d22.tar.xz |
drm/msm: Add debugfs to trigger shrinker
Just for the purposes of testing. Write to it the # of objects to scan,
read back the # freed.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20210614150618.729610-1-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_drv.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h index 2c84feaae2ba..1a48a709ffb3 100644 --- a/drivers/gpu/drm/msm/msm_drv.h +++ b/drivers/gpu/drm/msm/msm_drv.h @@ -299,6 +299,10 @@ bool msm_use_mmu(struct drm_device *dev); int msm_ioctl_gem_submit(struct drm_device *dev, void *data, struct drm_file *file); +#ifdef CONFIG_DEBUG_FS +unsigned long msm_gem_shrinker_shrink(struct drm_device *dev, unsigned long nr_to_scan); +#endif + void msm_gem_shrinker_init(struct drm_device *dev); void msm_gem_shrinker_cleanup(struct drm_device *dev); |