gpu/trace: add a gpu total memory usage tracepointThis change adds the below gpu memory tracepoint:gpu_mem/gpu_mem_total: track global or proc gpu memory total usagesPer process tracking of tota
gpu/trace: add a gpu total memory usage tracepointThis change adds the below gpu memory tracepoint:gpu_mem/gpu_mem_total: track global or proc gpu memory total usagesPer process tracking of total gpu memory usage in the gem layer is notappropriate and hard to implement with trivial overhead. So for the gfxdevice driver layer to track total gpu memory usage both globally andper process in an easy and uniform way is to integrate the tracepoint inthis patch to the underlying varied implementations of gpu memorytracking system from vendors.Putting this tracepoint in the common trace events can not only helpwean the gfx drivers off of debugfs but also greatly help the downstreamAndroid gpu vendors because debugfs is to be deprecated in the upcomingAndroid release. Then the gpu memory tracking of both Android kernel andthe upstream linux kernel can stay closely, which can benefit the wholekernel eco-system in the long term.Link: http://lkml.kernel.org/r/20200302235044.59163-1-zzyiwei@google.comAcked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>Signed-off-by: Yiwei Zhang <zzyiwei@google.com>Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
show more ...