History log of /external/mesa3d/src/gallium/auxiliary/hud/hud_sensors_temp.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
381edca826ee27b1a49f19b0731c777bdf241b20 24-Oct-2016 Steven Toth <stoth@kernellabs.com> gallium/hud: protect against and initialization race

In the event that multiple threads attempt to install a graph
concurrently, protect the shared list.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/auxiliary/hud/hud_sensors_temp.c
6ffed086795aaa84ab35668bb59d712cdde34da3 24-Oct-2016 Steven Toth <stoth@kernellabs.com> gallium/hud: fix a problem where objects are free'd while in use.

Instead of trying to maintain a reference counted list of valid HUD
objects, and freeing them accordingly, creating race conditions
between unanticipated multiple threads, simply accept they're
allocated once and never released until the process terminates.

They're a shared resource between multiple threads, so accept
they're always available for use.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/auxiliary/hud/hud_sensors_temp.c
e00fdd643b98c0ec22a05089c338cb5142003282 06-Oct-2016 Steven Toth <stoth@kernellabs.com> gallium/hud: Remove superfluous debug

No longer required.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
/external/mesa3d/src/gallium/auxiliary/hud/hud_sensors_temp.c
1d466b9b04662d41a403ea8fd617a5365750b1de 29-Sep-2016 Steven Toth <stoth@kernellabs.com> gallium/hud: Add power sensor support

Implement support for power based sensors, reporting units in
milli-watts and watts.

Also, minor cleanup - change the related if block to a switch.

Tested with two different power sensors, including the nouveau
'power1' sensors on a GTX950 card.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/hud/hud_sensors_temp.c
8c60bcb4c317026e017a8ecffe303fd4e7f0db33 28-Sep-2016 Steven Toth <stoth@kernellabs.com> gallium/hud: Add support for block I/O, network I/O and lmsensor stats

V8: Feedback based on peer review
convert if block into a switch
Constify some func args

V7: Increase precision when measuring lmsensors volts
Flatten patch series.

V6: Feedback based on peer review
Simplify sensor initialization (arg passing).
Constify some func args

V5: Feedback based on peer review
Convert sprintf to snprintf
Convert char * to const char *
int arg converted to bool
Func changes to take a filename vs a larger struct.
Omit the space between '*' and the param name.

V4: Merged with master as of 2016/9/27 6pm

V3: Flatten the entire patchset ready for the ML

V2: Additional seperate patches based on feedback
a) configure.ac: Add a comment related to libsensors

b) HUD: Disable Block/NIC I/O stats by default.
Implement configuration option --enable-gallium-extra-hud=yes
and enable both statistics when this option is enabled.

c) Configure.ac: Minor cleanup to user visible configuration settings

d) Configure.ac: HUD stats - build system improvements
Move the -lsensors out of a deeper Makefile, bring it into the configure.ac.
Also, rename a compiler directive to more closely follow the standard.

V1: Initial release to the ML
Three new features:
1. Disk/block I/O device read/write stats MB/ps.
2. Network Interface RX/TX transfer statistics as a percentage
of the overall NIC speed.
3. lmsensor power, voltage and temperature sensors.

The lmsensor changes makes a dependency on libsensors so support
for the change is opt out by default.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/hud/hud_sensors_temp.c