@@ -148,6 +148,14 @@ percentage utilization of the engine, whereas drm-engine-<keystr> only reflects
time active without considering what frequency the engine is operating as a
percentage of it's maximum frequency.
+- drm-comm: <valstr>
+
+Returns the clients executable path.
+
+- drm-cmdline: <valstr>
+
+Returns the clients cmdline.
+
Implementation Details
======================
@@ -148,12 +148,26 @@ int msm_gpu_pm_suspend(struct msm_gpu *gpu)
return 0;
}
+static void get_comm_cmdline(struct msm_file_private *ctx, char **comm, char **cmd);
+
void msm_gpu_show_fdinfo(struct msm_gpu *gpu, struct msm_file_private *ctx,
struct drm_printer *p)
{
+ char *comm, *cmdline;
+
+ get_comm_cmdline(ctx, &comm, &cmdline);
+
drm_printf(p, "drm-engine-gpu:\t%llu ns\n", ctx->elapsed_ns);
drm_printf(p, "drm-cycles-gpu:\t%llu\n", ctx->cycles);
drm_printf(p, "drm-maxfreq-gpu:\t%u Hz\n", gpu->fast_rate);
+
+ if (comm)
+ drm_printf(p, "drm-comm:\t%s\n", comm);
+ if (cmdline)
+ drm_printf(p, "drm-cmdline:\t%s\n", cmdline);
+
+ kfree(comm);
+ kfree(cmdline);
}
int msm_gpu_hw_init(struct msm_gpu *gpu)