diff options
author | Rob Clark <robdclark@chromium.org> | 2020-09-01 18:41:55 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-09-10 01:25:54 +0300 |
commit | fdf38426cda6b5b3232f1fa470b5fa86734d7872 (patch) | |
tree | 9ac327c9bbf763ded4893f0f796fe2d82eac622f /drivers/gpu/drm/msm/msm_gpu_trace.h | |
parent | 74c0a69cc5bee0eb1f1cf740f7480095c4a94fe7 (diff) | |
download | linux-fdf38426cda6b5b3232f1fa470b5fa86734d7872.tar.xz |
drm/msm: Convert shrinker msgs to tracepoints
This reduces the spam in dmesg when we start hitting the shrinker, and
replaces it with something we can put on a timeline while profiling or
debugging system issues.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu_trace.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu_trace.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu_trace.h b/drivers/gpu/drm/msm/msm_gpu_trace.h index 07572ab179fa..1079fe551279 100644 --- a/drivers/gpu/drm/msm/msm_gpu_trace.h +++ b/drivers/gpu/drm/msm/msm_gpu_trace.h @@ -114,6 +114,32 @@ TRACE_EVENT(msm_gmu_freq_change, TP_printk("freq=%u, perf_index=%u", __entry->freq, __entry->perf_index) ); + +TRACE_EVENT(msm_gem_purge, + TP_PROTO(u32 bytes), + TP_ARGS(bytes), + TP_STRUCT__entry( + __field(u32, bytes) + ), + TP_fast_assign( + __entry->bytes = bytes; + ), + TP_printk("Purging %u bytes", __entry->bytes) +); + + +TRACE_EVENT(msm_gem_purge_vmaps, + TP_PROTO(u32 unmapped), + TP_ARGS(unmapped), + TP_STRUCT__entry( + __field(u32, unmapped) + ), + TP_fast_assign( + __entry->unmapped = unmapped; + ), + TP_printk("Purging %u vmaps", __entry->unmapped) +); + #endif #undef TRACE_INCLUDE_PATH |