Displaying 3 results from an estimated 3 matches for "nvkm_perfmon_mthd_query_signal".
2015 Jun 08
2
[PATCH RFC 05/20] pm: reorganize the nvif interface
...83,10 +83,10 @@ nvkm_perfsig_find(struct nvkm_pm *ppm, const char *name, u32 size,
> * Perfmon object classes
> ******************************************************************************/
> static int
> -nvkm_perfctr_query(struct nvkm_object *object, void *data, u32 size)
> +nvkm_perfmon_mthd_query_signal(struct nvkm_object *object, void *data, u32 size)
> {
> union {
> - struct nvif_perfctr_query_v0 v0;
> + struct nvif_perfmon_query_signal_v0 v0;
> } *args = data;
> struct nvkm_device *device = nv_device(object);
> st...
2015 Jun 07
21
[PATCH RFC 00/20] expose global performance counters
Hello,
This series exposes global performance counters (PCOUNTER) to the userspace
through the nvif interface by reworking most of the code related to the PM
engine.
This interface will allow the userspace to control and monitor complex hardware
events like the proprietary driver already does, for example with CUPTI and
PerfKit.
For now, this series only exposes performance counters on NV50,
2017 Dec 04
0
[PATCH] drm: nouveau: use correct string length
...ig(dom);
- strncpy(args->v0.name, dom->name, sizeof(args->v0.name));
+ strncpy(args->v0.name, dom->name, sizeof(args->v0.name) - 1);
/* Currently only global counters (PCOUNTER) are implemented
* but this will be different for local counters (MP). */
@@ -514,7 +514,7 @@ nvkm_perfmon_mthd_query_signal(struct nvkm_perfmon *perfmon,
"/%s/%02x", dom->name, si);
} else {
strncpy(args->v0.name, sig->name,
- sizeof(args->v0.name));
+ sizeof(args->v0.name) - 1);
}
args->v0.signal = si;
@@ -572,7 +572,7 @@ nvkm_perfmon_mthd_query_source(struct nvkm_...