]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/video/udlfb.h
Staging: udlfb: Add functions to expose sysfs metrics and controls
authorBernie Thompson <bernie@plugable.com>
Mon, 15 Feb 2010 14:46:08 +0000 (06:46 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:43:00 +0000 (16:43 -0800)
commit7d9485e2c53caaaed9606a39de1c2746cc9ba262
treeae7433e46e2e14d97d8ee7e4382f35b6b9a68de9
parent4574203f45eb26b3fd76a171a77dd298dc1dc1ae
Staging: udlfb: Add functions to expose sysfs metrics and controls

Add sysfs controls for edid and performance metrics

There are 8 new files exposed in /sys/class/graphics/fb*

edid - returns 128 byte edid blog, suitable for parsing with parse-edid
metrics_bytes_identical
metrics_bytes_rendered
metrics_bytes_sent
metrics_cpu_kcycles_used
metrics_misc
and metrics_reset, which resets all perf metrics to zero

The 6 perf metrics are of type atomic_t.
So these metrics return precise results for short benchmarks, but
any test approx a minute or longer runtime may roll over.

Signed-off-by: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/udlfb/udlfb.c
drivers/staging/udlfb/udlfb.h