.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2016 Red Hat |
---|
3 | 4 | * Author: Rob Clark <robdclark@gmail.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify it |
---|
6 | | - * under the terms of the GNU General Public License version 2 as published by |
---|
7 | | - * the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
12 | | - * more details. |
---|
13 | | - * |
---|
14 | | - * You should have received a copy of the GNU General Public License along with |
---|
15 | | - * this program. If not, see <http://www.gnu.org/licenses/>. |
---|
16 | 5 | */ |
---|
17 | 6 | |
---|
18 | 7 | #include "msm_drv.h" |
---|
19 | 8 | #include "msm_gem.h" |
---|
| 9 | +#include "msm_gpu_trace.h" |
---|
20 | 10 | |
---|
21 | 11 | static bool msm_gem_shrinker_lock(struct drm_device *dev, bool *unlock) |
---|
22 | 12 | { |
---|
.. | .. |
---|
98 | 88 | mutex_unlock(&dev->struct_mutex); |
---|
99 | 89 | |
---|
100 | 90 | if (freed > 0) |
---|
101 | | - pr_info_ratelimited("Purging %lu bytes\n", freed << PAGE_SHIFT); |
---|
| 91 | + trace_msm_gem_purge(freed << PAGE_SHIFT); |
---|
102 | 92 | |
---|
103 | 93 | return freed; |
---|
104 | 94 | } |
---|
.. | .. |
---|
134 | 124 | *(unsigned long *)ptr += unmapped; |
---|
135 | 125 | |
---|
136 | 126 | if (unmapped > 0) |
---|
137 | | - pr_info_ratelimited("Purging %u vmaps\n", unmapped); |
---|
| 127 | + trace_msm_gem_purge_vmaps(unmapped); |
---|
138 | 128 | |
---|
139 | 129 | return NOTIFY_DONE; |
---|
140 | 130 | } |
---|