Thermal library and tools
cover Thermal library and tools
This series provides a thermal library providing the basic callback oriented netlink communication and events with the thermal framework, a temperature capture tool and a thermal monitoring skeleton using the thermal library.
Changelog:
- V1:
- Took into account RFC comments (unsubscribe, error enum, thermal daemon renamed to thermal-engine)
Daniel Lezcano (4):
tools/lib/thermal: Add a thermal library
tools/thermal: Add util library
tools/thermal: A temperature capture tool
tools/thermal: Add thermal daemon skeleton
tools/Makefile | 36 +- tools/lib/thermal/.gitignore | 2 + tools/lib/thermal/Build | 5 + tools/lib/thermal/Makefile | 165 ++++++++ tools/lib/thermal/commands.c | 351 ++++++++++++++++ tools/lib/thermal/events.c | 164 ++++++++ tools/lib/thermal/include/thermal.h | 141 +++++++ tools/lib/thermal/libthermal.map | 25 ++ tools/lib/thermal/libthermal.pc.template | 12 + tools/lib/thermal/sampling.c | 75 ++++ tools/lib/thermal/thermal.c | 126 ++++++ tools/lib/thermal/thermal_nl.c | 215 ++++++++++ tools/lib/thermal/thermal_nl.h | 46 ++ tools/thermal/lib/Build | 3 + tools/thermal/lib/Makefile | 158 +++++++ .../thermal/lib/libthermal_tools.pc.template | 12 + tools/thermal/lib/log.c | 77 ++++ tools/thermal/lib/log.h | 31 ++ tools/thermal/lib/mainloop.c | 135 ++++++ tools/thermal/lib/mainloop.h | 14 + tools/thermal/lib/thermal-tools.h | 10 + tools/thermal/lib/uptimeofday.c | 40 ++ tools/thermal/lib/uptimeofday.h | 12 + tools/thermal/thermal-engine/Build | 2 + tools/thermal/thermal-engine/Makefile | 27 ++ tools/thermal/thermal-engine/thermal-engine.c | 287 +++++++++++++ tools/thermal/thermometer/Build | 2 + tools/thermal/thermometer/Makefile | 23 + tools/thermal/thermometer/thermometer.c | 393 ++++++++++++++++++ tools/thermal/thermometer/thermometer.conf | 5 + 30 files changed, 2591 insertions(+), 3 deletions(-) create mode 100644 tools/lib/thermal/.gitignore create mode 100644 tools/lib/thermal/Build create mode 100644 tools/lib/thermal/Makefile create mode 100644 tools/lib/thermal/commands.c create mode 100644 tools/lib/thermal/events.c create mode 100644 tools/lib/thermal/include/thermal.h create mode 100644 tools/lib/thermal/libthermal.map create mode 100644 tools/lib/thermal/libthermal.pc.template create mode 100644 tools/lib/thermal/sampling.c create mode 100644 tools/lib/thermal/thermal.c create mode 100644 tools/lib/thermal/thermal_nl.c create mode 100644 tools/lib/thermal/thermal_nl.h create mode 100644 tools/thermal/lib/Build create mode 100644 tools/thermal/lib/Makefile create mode 100644 tools/thermal/lib/libthermal_tools.pc.template create mode 100644 tools/thermal/lib/log.c create mode 100644 tools/thermal/lib/log.h create mode 100644 tools/thermal/lib/mainloop.c create mode 100644 tools/thermal/lib/mainloop.h create mode 100644 tools/thermal/lib/thermal-tools.h create mode 100644 tools/thermal/lib/uptimeofday.c create mode 100644 tools/thermal/lib/uptimeofday.h create mode 100644 tools/thermal/thermal-engine/Build create mode 100644 tools/thermal/thermal-engine/Makefile create mode 100644 tools/thermal/thermal-engine/thermal-engine.c create mode 100644 tools/thermal/thermometer/Build create mode 100644 tools/thermal/thermometer/Makefile create mode 100644 tools/thermal/thermometer/thermometer.c create mode 100644 tools/thermal/thermometer/thermometer.conf
Signature · 1 line
2.25.1
PATCH 1/4 tools/lib/thermal: Add a thermal library
The thermal framework implements a netlink notification mechanism to be used by the userspace to have a thermal configuration discovery, trip point changes or violation, cooling device changes notifications, etc...
This library provides a level of abstraction for the thermal netlink notification allowing the userspace to connect to the notification mechanism more easily. The library is callback oriented.
--- tools/Makefile | 14 +- tools/lib/thermal/.gitignore | 2 + tools/lib/thermal/Build | 5 + tools/lib/thermal/Makefile | 165 +++++++++++ tools/lib/thermal/commands.c | 351 +++++++++++++++++++++++ tools/lib/thermal/events.c | 164 +++++++++++ tools/lib/thermal/include/thermal.h | 141 +++++++++ tools/lib/thermal/libthermal.map | 25 ++ tools/lib/thermal/libthermal.pc.template | 12 + tools/lib/thermal/sampling.c | 75 +++++ tools/lib/thermal/thermal.c | 126 ++++++++ tools/lib/thermal/thermal_nl.c | 215 ++++++++++++++ tools/lib/thermal/thermal_nl.h | 46 +++ 13 files changed, 1339 insertions(+), 2 deletions(-) create mode 100644 tools/lib/thermal/.gitignore create mode 100644 tools/lib/thermal/Build create mode 100644 tools/lib/thermal/Makefile create mode 100644 tools/lib/thermal/commands.c create mode 100644 tools/lib/thermal/events.c create mode 100644 tools/lib/thermal/include/thermal.h create mode 100644 tools/lib/thermal/libthermal.map create mode 100644 tools/lib/thermal/libthermal.pc.template create mode 100644 tools/lib/thermal/sampling.c create mode 100644 tools/lib/thermal/thermal.c create mode 100644 tools/lib/thermal/thermal_nl.c create mode 100644 tools/lib/thermal/thermal_nl.h
tools/Makefile +12 -2
@@ -31,6 +31,7 @@ help: @echo ' bootconfig - boot config tool' @echo ' spi - spi tools' @echo ' tmon - thermal monitoring and tuning tool' + @echo ' thermal - thermal library' @echo ' tracing - misc tracing tools' @echo ' turbostat - Intel CPU idle stats and freq reporting tool' @echo ' usb - USB testing tools'
@@ -85,6 +86,9 @@ perf: FORCE selftests: FORCE $(call descend,testing/$@) +thermal: FORCE + $(call descend,lib/$@) + turbostat x86_energy_perf_policy intel-speed-select: FORCE $(call descend,power/x86/$@)
@@ -101,7 +105,7 @@ all: acpi cgroup counter cpupower gpio hv firewire \ perf selftests bootconfig spi turbostat usb \ virtio vm bpf x86_energy_perf_policy \ tmon freefall iio objtool kvm_stat wmi \ - pci debugging tracing + pci debugging tracing thermal acpi_install: $(call descend,power/$(@:_install=),install)
@@ -115,6 +119,9 @@ cgroup_install counter_install firewire_install gpio_install hv_install iio_inst selftests_install: $(call descend,testing/$(@:_install=),install) +thermal_install: + $(call descend,lib/$(@:_install=),install) + turbostat_install x86_energy_perf_policy_install intel-speed-select_install: $(call descend,power/x86/$(@:_install=),install)
@@ -160,6 +167,9 @@ perf_clean: selftests_clean: $(call descend,testing/$(@:_clean=),clean) +thermal_clean: + $(call descend,lib/thermal,clean) + turbostat_clean x86_energy_perf_policy_clean intel-speed-select_clean: $(call descend,power/x86/$(@:_clean=),clean)
@@ -177,6 +187,6 @@ clean: acpi_clean cgroup_clean counter_clean cpupower_clean hv_clean firewire_cl vm_clean bpf_clean iio_clean x86_energy_perf_policy_clean tmon_clean \ freefall_clean build_clean libbpf_clean libsubcmd_clean \ gpio_clean objtool_clean leds_clean wmi_clean pci_clean firmware_clean debugging_clean \ - intel-speed-select_clean tracing_clean + intel-speed-select_clean tracing_clean thermal_clean .PHONY: FORCE
tools/lib/thermal/.gitignore new file +2 -0
@@ -0,0 +1,2 @@ +libthermal.so* +libthermal.pc
tools/lib/thermal/Build new file +5 -0
@@ -0,0 +1,5 @@ +libthermal-y += commands.o +libthermal-y += events.o +libthermal-y += thermal_nl.o +libthermal-y += sampling.o +libthermal-y += thermal.o
tools/lib/thermal/Makefile new file +165 -0
165 lines not on this page · raw message
tools/lib/thermal/commands.c new file +351 -0
351 lines not on this page · raw message
tools/lib/thermal/events.c new file +164 -0
164 lines not on this page · raw message
tools/lib/thermal/include/thermal.h new file +141 -0
141 lines not on this page · raw message
tools/lib/thermal/libthermal.map new file +25 -0
@@ -0,0 +1,25 @@ +LIBTHERMAL_0.0.1 { + global: + thermal_init; + for_each_thermal_zone; + for_each_thermal_trip; + for_each_thermal_cdev; + thermal_zone_find_by_name; + thermal_zone_find_by_id; + thermal_zone_discover; + thermal_init; + thermal_events_init; + thermal_events_handle; + thermal_events_fd; + thermal_cmd_init; + thermal_cmd_get_tz; + thermal_cmd_get_cdev; + thermal_cmd_get_trip; + thermal_cmd_get_governor; + thermal_cmd_get_temp; + thermal_sampling_init; + thermal_sampling_handle; + thermal_sampling_fd; +local: + *; +};
tools/lib/thermal/libthermal.pc.template new file +12 -0
@@ -0,0 +1,12 @@ +# SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) + +prefix=@PREFIX@ +libdir=@LIBDIR@ +includedir=${prefix}/include + +Name: libthermal +Description: thermal library +Requires: libnl-3.0 libnl-genl-3.0 +Version: @VERSION@ +Libs: -L${libdir} -lnl-genl-3 -lnl-3 +Cflags: -I${includedir} -I{include}/libnl3
tools/lib/thermal/sampling.c new file +75 -0
75 lines not on this page · raw message
tools/lib/thermal/thermal.c new file +126 -0
126 lines not on this page · raw message
tools/lib/thermal/thermal_nl.c new file +215 -0
215 lines not on this page · raw message
tools/lib/thermal/thermal_nl.h new file +46 -0
46 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH 2/4 tools/thermal: Add util library
In reply to Daniel LezcanoThe next changes will provide a couple of tools using some common functions provided by this library.
It provides basic wrappers for:
- mainloop
- logging
- timestamp
--- tools/thermal/lib/Build | 3 + tools/thermal/lib/Makefile | 158 ++++++++++++++++++ .../thermal/lib/libthermal_tools.pc.template | 12 ++ tools/thermal/lib/log.c | 77 +++++++++ tools/thermal/lib/log.h | 31 ++++ tools/thermal/lib/mainloop.c | 135 +++++++++++++++ tools/thermal/lib/mainloop.h | 14 ++ tools/thermal/lib/thermal-tools.h | 10 ++ tools/thermal/lib/uptimeofday.c | 40 +++++ tools/thermal/lib/uptimeofday.h | 12 ++ 10 files changed, 492 insertions(+) create mode 100644 tools/thermal/lib/Build create mode 100644 tools/thermal/lib/Makefile create mode 100644 tools/thermal/lib/libthermal_tools.pc.template create mode 100644 tools/thermal/lib/log.c create mode 100644 tools/thermal/lib/log.h create mode 100644 tools/thermal/lib/mainloop.c create mode 100644 tools/thermal/lib/mainloop.h create mode 100644 tools/thermal/lib/thermal-tools.h create mode 100644 tools/thermal/lib/uptimeofday.c create mode 100644 tools/thermal/lib/uptimeofday.h
tools/thermal/lib/Build new file +3 -0
@@ -0,0 +1,3 @@ +libthermal_tools-y += mainloop.o +libthermal_tools-y += log.o +libthermal_tools-y += uptimeofday.o
tools/thermal/lib/Makefile new file +158 -0
158 lines not on this page · raw message
tools/thermal/lib/libthermal_tools.pc.template new file +12 -0
@@ -0,0 +1,12 @@ +# SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) + +prefix=@PREFIX@ +libdir=@LIBDIR@ +includedir=${prefix}/include + +Name: libthermal +Description: thermal library +Requires: libnl-3.0 libnl-genl-3.0 +Version: @VERSION@ +Libs: -L${libdir} -lnl-genl-3 -lnl-3 +Cflags: -I${includedir} -I{include}/libnl3
tools/thermal/lib/log.c new file +77 -0
77 lines not on this page · raw message
tools/thermal/lib/log.h new file +31 -0
@@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +/* Copyright (C) 2022, Linaro Ltd - Daniel Lezcano <[email protected]> */ +#ifndef __THERMAL_TOOLS_LOG_H +#define __THERMAL_TOOLS_LOG_H + +#include <syslog.h> + +#ifndef __maybe_unused +#define __maybe_unused __attribute__((__unused__)) +#endif + +#define TO_SYSLOG 0x1 +#define TO_STDOUT 0x2 +#define TO_STDERR 0x4 + +extern void logit (int level,const char *format, ...); + +#define DEBUG (fmt, ...) logit(LOG_DEBUG, "%s(%d): " fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__) +#define INFO (fmt, ...) logit(LOG_INFO, fmt, ##__VA_ARGS__) +#define NOTICE (fmt, ...) logit(LOG_NOTICE, fmt, ##__VA_ARGS__) +#define WARN (fmt, ...) logit(LOG_WARNING, fmt, ##__VA_ARGS__) +#define ERROR (fmt, ...) logit(LOG_ERR, fmt, ##__VA_ARGS__) +#define CRITICAL (fmt, ...) logit(LOG_CRIT, fmt, ##__VA_ARGS__) +#define ALERT (fmt, ...) logit(LOG_ALERT, fmt, ##__VA_ARGS__) +#define EMERG (fmt, ...) logit(LOG_EMERG, fmt, ##__VA_ARGS__) + +int log_init (int level,const char *ident,int options); +int log_str2level (const char *lvl); +void log_exit (void ); + +#endif
tools/thermal/lib/mainloop.c new file +135 -0
135 lines not on this page · raw message
tools/thermal/lib/mainloop.h new file +14 -0
@@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +/* Copyright (C) 2022, Linaro Ltd - Daniel Lezcano <[email protected]> */ +#ifndef __THERMAL_TOOLS_MAINLOOP_H +#define __THERMAL_TOOLS_MAINLOOP_H + +typedef int (*mainloop_callback_t )(int fd,void *data); + +extern int mainloop (unsigned int timeout); +extern int mainloop_add (int fd,mainloop_callback_t cb,void *data); +extern int mainloop_del (int fd); +extern int mainloop_init (void ); +extern void mainloop_fini (void ); + +#endif
tools/thermal/lib/thermal-tools.h new file +10 -0
@@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +/* Copyright (C) 2022, Linaro Ltd - Daniel Lezcano <[email protected]> */ +#ifndef __THERMAL_TOOLS +#define __THERMAL_TOOLS + +#include "log.h" +#include "mainloop.h" +#include "uptimeofday.h" + +#endif
tools/thermal/lib/uptimeofday.c new file +40 -0
@@ -0,0 +1,40 @@ +// SPDX-License-Identifier: LGPL-2.1+ +// Copyright (C) 2022, Linaro Ltd - Daniel Lezcano <[email protected]> +#include <stdio.h> +#include <sys/time.h> +#include <linux/sysinfo.h> +#include "thermal-tools.h" + +static unsigned long __offset; +static struct timeval __tv; + +int uptimeofday_init (void ) +{ +struct sysinfo info; + +if (sysinfo (&info)) +return -1 ; + +gettimeofday (&__tv,NULL ); + + __offset = __tv.tv_sec - info.uptime; + +return 0 ; +} + +unsigned long getuptimeofday_ms (void ) +{ +gettimeofday (&__tv,NULL ); + +return ((__tv.tv_sec - __offset) *1000 ) + (__tv.tv_usec /1000 ); +} + +struct timespec msec_to_timespec (int msec) +{ +struct timespec tv = { + .tv_sec = (time_t)(msec /1000 ), + .tv_nsec = (msec - tv.tv_sec) *1000000 , + }; + +return tv; +}
tools/thermal/lib/uptimeofday.h new file +12 -0
@@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +/* Copyright (C) 2022, Linaro Ltd - Daniel Lezcano <[email protected]> */ +#ifndef __THERMAL_TOOLS_UPTIMEOFDAY_H +#define __THERMAL_TOOLS_UPTIMEOFDAY_H +#include <sys/sysinfo.h> +#include <sys/time.h> + +int uptimeofday_init (void ); +unsigned long getuptimeofday_ms (void ); +struct timespec msec_to_timespec (int msec); + +#endif
Signature · 1 line
2.25.1
PATCH 3/4 tools/thermal: A temperature capture tool
In reply to Daniel LezcanoThe 'thermometer' tool allows to capture the temperature of a set of thermal zones defined in a configuration file at a specified rate.
It is designed to have the lowest possible overhead. It will write the captured temperature per thermal zone per file so making easier to write a gnuplot script.
--- tools/Makefile | 16 +- tools/thermal/thermometer/Build | 2 + tools/thermal/thermometer/Makefile | 23 ++ tools/thermal/thermometer/thermometer.c | 393 +++++++++++++++++++++ tools/thermal/thermometer/thermometer.conf | 5 + 5 files changed, 436 insertions(+), 3 deletions(-) create mode 100644 tools/thermal/thermometer/Build create mode 100644 tools/thermal/thermometer/Makefile create mode 100644 tools/thermal/thermometer/thermometer.c create mode 100644 tools/thermal/thermometer/thermometer.conf
tools/Makefile +13 -3
@@ -31,6 +31,7 @@ help: @echo ' bootconfig - boot config tool' @echo ' spi - spi tools' @echo ' tmon - thermal monitoring and tuning tool' + @echo ' thermometer - temperature capture tool' @echo ' thermal - thermal library' @echo ' tracing - misc tracing tools' @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
@@ -95,6 +96,9 @@ turbostat x86_energy_perf_policy intel-speed-select: FORCE tmon: FORCE $(call descend,thermal/$@) +thermometer: FORCE + $(call descend,thermal/$@) + freefall: FORCE $(call descend,laptop/$@)
@@ -105,7 +109,7 @@ all: acpi cgroup counter cpupower gpio hv firewire \ perf selftests bootconfig spi turbostat usb \ virtio vm bpf x86_energy_perf_policy \ tmon freefall iio objtool kvm_stat wmi \ - pci debugging tracing thermal + pci debugging tracing thermal thermometer acpi_install: $(call descend,power/$(@:_install=),install)
@@ -128,6 +132,9 @@ turbostat_install x86_energy_perf_policy_install intel-speed-select_install: tmon_install: $(call descend,thermal/$(@:_install=),install) +thermometer_install: + $(call descend,thermal/$(@:_install=),install) + freefall_install: $(call descend,laptop/$(@:_install=),install)
@@ -140,7 +147,7 @@ install: acpi_install cgroup_install counter_install cpupower_install gpio_insta virtio_install vm_install bpf_install x86_energy_perf_policy_install \ tmon_install freefall_install objtool_install kvm_stat_install \ wmi_install pci_install debugging_install intel-speed-select_install \ - tracing_install + tracing_install thermometer_install acpi_clean: $(call descend,power/acpi,clean)
@@ -173,6 +180,9 @@ thermal_clean: turbostat_clean x86_energy_perf_policy_clean intel-speed-select_clean: $(call descend,power/x86/$(@:_clean=),clean) +thermometer_clean: + $(call descend,thermal/thermometer,clean) + tmon_clean: $(call descend,thermal/tmon,clean)
@@ -187,6 +197,6 @@ clean: acpi_clean cgroup_clean counter_clean cpupower_clean hv_clean firewire_cl vm_clean bpf_clean iio_clean x86_energy_perf_policy_clean tmon_clean \ freefall_clean build_clean libbpf_clean libsubcmd_clean \ gpio_clean objtool_clean leds_clean wmi_clean pci_clean firmware_clean debugging_clean \ - intel-speed-select_clean tracing_clean thermal_clean + intel-speed-select_clean tracing_clean thermal_clean thermometer_clean .PHONY: FORCE
tools/thermal/thermometer/Build new file +2 -0
@@ -0,0 +1,2 @@ +thermometer-y += thermometer.o +
tools/thermal/thermometer/Makefile new file +23 -0
@@ -0,0 +1,23 @@ +# SPDX-License-Identifier: GPL-2.0 +# Makefile for cgroup tools + +ifeq ($(srctree),) +srctree := $(patsubst %/,%,$(dir $(CURDIR))) +srctree := $(patsubst %/,%,$(dir $(srctree))) +srctree := $(patsubst %/,%,$(dir $(srctree))) +# $(info Determined 'srctree' to be $(srctree)) +endif + +CFLAGS = -Wall -Wextra +CFLAGS += -I$(srctree)/tools/thermal/lib + +LDFLAGS = -L$(srctree)/tools/thermal/lib +LDFLAGS += -lthermal_tools +LDFLAGS += -lconfig + +all: thermometer +%: %.c + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + +clean: + $(RM) thermometer
tools/thermal/thermometer/thermometer.c new file +393 -0
393 lines not on this page · raw message
tools/thermal/thermometer/thermometer.conf new file +5 -0
@@ -0,0 +1,5 @@ + +thermal-zones = ( + { name = "cpu[0-7]-thermal"; + polling = 100; } + )
Signature · 1 line
2.25.1
PATCH 4/4 tools/thermal: Add thermal daemon skeleton
In reply to Daniel LezcanoThis change provides a simple daemon skeleton. It provides an example of how to use the thermal library.
The goal of this skeleton is to give a base brick for anyone interested in writing its own thermal engine.
In the future, it will evolve with more features.
--- tools/Makefile | 16 +- tools/thermal/thermal-engine/Build | 2 + tools/thermal/thermal-engine/Makefile | 27 ++ tools/thermal/thermal-engine/thermal-engine.c | 287 ++++++++++++++++++ 4 files changed, 329 insertions(+), 3 deletions(-) create mode 100644 tools/thermal/thermal-engine/Build create mode 100644 tools/thermal/thermal-engine/Makefile create mode 100644 tools/thermal/thermal-engine/thermal-engine.c
tools/Makefile +13 -3
@@ -32,6 +32,7 @@ help: @echo ' spi - spi tools' @echo ' tmon - thermal monitoring and tuning tool' @echo ' thermometer - temperature capture tool' + @echo ' thermal-engine - thermal monitoring tool' @echo ' thermal - thermal library' @echo ' tracing - misc tracing tools' @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
@@ -99,6 +100,9 @@ tmon: FORCE thermometer: FORCE $(call descend,thermal/$@) +thermal-engine: FORCE thermal + $(call descend,thermal/$@) + freefall: FORCE $(call descend,laptop/$@)
@@ -109,7 +113,7 @@ all: acpi cgroup counter cpupower gpio hv firewire \ perf selftests bootconfig spi turbostat usb \ virtio vm bpf x86_energy_perf_policy \ tmon freefall iio objtool kvm_stat wmi \ - pci debugging tracing thermal thermometer + pci debugging tracing thermal thermometer thermal-engine acpi_install: $(call descend,power/$(@:_install=),install)
@@ -135,6 +139,9 @@ tmon_install: thermometer_install: $(call descend,thermal/$(@:_install=),install) +thermal-engine_install: + $(call descend,thermal/$(@:_install=),install) + freefall_install: $(call descend,laptop/$(@:_install=),install)
@@ -147,7 +154,7 @@ install: acpi_install cgroup_install counter_install cpupower_install gpio_insta virtio_install vm_install bpf_install x86_energy_perf_policy_install \ tmon_install freefall_install objtool_install kvm_stat_install \ wmi_install pci_install debugging_install intel-speed-select_install \ - tracing_install thermometer_install + tracing_install thermometer_install thermal-engine_install acpi_clean: $(call descend,power/acpi,clean)
@@ -183,6 +190,9 @@ turbostat_clean x86_energy_perf_policy_clean intel-speed-select_clean: thermometer_clean: $(call descend,thermal/thermometer,clean) +thermal-engine_clean: + $(call descend,thermal/thermal-engine,clean) + tmon_clean: $(call descend,thermal/tmon,clean)
@@ -197,6 +207,6 @@ clean: acpi_clean cgroup_clean counter_clean cpupower_clean hv_clean firewire_cl vm_clean bpf_clean iio_clean x86_energy_perf_policy_clean tmon_clean \ freefall_clean build_clean libbpf_clean libsubcmd_clean \ gpio_clean objtool_clean leds_clean wmi_clean pci_clean firmware_clean debugging_clean \ - intel-speed-select_clean tracing_clean thermal_clean thermometer_clean + intel-speed-select_clean tracing_clean thermal_clean thermometer_clean thermal-engine_clean .PHONY: FORCE
tools/thermal/thermal-engine/Build new file +2 -0
@@ -0,0 +1,2 @@ +thermal-engine-y += thermal-engine.o +
tools/thermal/thermal-engine/Makefile new file +27 -0
@@ -0,0 +1,27 @@ +# SPDX-License-Identifier: GPL-2.0 +# Makefile for thermal tools + +ifeq ($(srctree),) +srctree := $(patsubst %/,%,$(dir $(CURDIR))) +srctree := $(patsubst %/,%,$(dir $(srctree))) +srctree := $(patsubst %/,%,$(dir $(srctree))) +# $(info Determined 'srctree' to be $(srctree)) +endif + +CFLAGS = -Wall -Wextra +CFLAGS += -I$(srctree)/tools/thermal/lib +CFLAGS += -I$(srctree)/tools/lib/thermal/include + +LDFLAGS = -L$(srctree)/tools/thermal/lib +LDFLAGS += -L$(srctree)/tools/lib/thermal +LDFLAGS += -lthermal_tools +LDFLAGS += -lthermal +LDFLAGS += -lconfig +LDFLAGS += -lnl-genl-3 -lnl-3 + +all: thermal-engine +%: %.c + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + +clean: + $(RM) thermal-engine
tools/thermal/thermal-engine/thermal-engine.c new file +287 -0
287 lines not on this page · raw message
Signature · 1 line
2.25.1
Hi,
What shall I do with this series? Is everyone ok with it?
Quoted 76 lines · Daniel Lezcano
This series provides a thermal library providing the basic callback oriented netlink communication and events with the thermal framework, a temperature capture tool and a thermal monitoring skeleton using the thermal library.
Changelog:
- V1:
- Took into account RFC comments (unsubscribe, error enum, thermal daemon renamed to thermal-engine)Daniel Lezcano (4):
tools/lib/thermal: Add a thermal library
tools/thermal: Add util library
tools/thermal: A temperature capture tool
tools/thermal: Add thermal daemon skeletontools/Makefile | 36 +- tools/lib/thermal/.gitignore | 2 + tools/lib/thermal/Build | 5 + tools/lib/thermal/Makefile | 165 ++++++++ tools/lib/thermal/commands.c | 351 ++++++++++++++++ tools/lib/thermal/events.c | 164 ++++++++ tools/lib/thermal/include/thermal.h | 141 +++++++ tools/lib/thermal/libthermal.map | 25 ++ tools/lib/thermal/libthermal.pc.template | 12 + tools/lib/thermal/sampling.c | 75 ++++ tools/lib/thermal/thermal.c | 126 ++++++ tools/lib/thermal/thermal_nl.c | 215 ++++++++++ tools/lib/thermal/thermal_nl.h | 46 ++ tools/thermal/lib/Build | 3 + tools/thermal/lib/Makefile | 158 +++++++ .../thermal/lib/libthermal_tools.pc.template | 12 + tools/thermal/lib/log.c | 77 ++++ tools/thermal/lib/log.h | 31 ++ tools/thermal/lib/mainloop.c | 135 ++++++ tools/thermal/lib/mainloop.h | 14 + tools/thermal/lib/thermal-tools.h | 10 + tools/thermal/lib/uptimeofday.c | 40 ++ tools/thermal/lib/uptimeofday.h | 12 + tools/thermal/thermal-engine/Build | 2 + tools/thermal/thermal-engine/Makefile | 27 ++ tools/thermal/thermal-engine/thermal-engine.c | 287 +++++++++++++ tools/thermal/thermometer/Build | 2 + tools/thermal/thermometer/Makefile | 23 + tools/thermal/thermometer/thermometer.c | 393 ++++++++++++++++++ tools/thermal/thermometer/thermometer.conf | 5 + 30 files changed, 2591 insertions(+), 3 deletions(-)create mode 100644
tools/lib/thermal/.gitignore
create mode 100644tools/lib/thermal/Build
create mode 100644tools/lib/thermal/Makefile
create mode 100644tools/lib/thermal/commands.c
create mode 100644tools/lib/thermal/events.c
create mode 100644tools/lib/thermal/include/thermal.hcreate mode 100644tools/lib/thermal/libthermal.mapcreate mode 100644tools/lib/thermal/libthermal.pc.templatecreate mode 100644tools/lib/thermal/sampling.c
create mode 100644tools/lib/thermal/thermal.c
create mode 100644tools/lib/thermal/thermal_nl.ccreate mode 100644tools/lib/thermal/thermal_nl.hcreate mode 100644tools/thermal/lib/Build
create mode 100644tools/thermal/lib/Makefile
create mode 100644tools/thermal/lib/libthermal_tools.pc.templatecreate mode 100644tools/thermal/lib/log.c
create mode 100644tools/thermal/lib/log.h
create mode 100644tools/thermal/lib/mainloop.c
create mode 100644tools/thermal/lib/mainloop.h
create mode 100644tools/thermal/lib/thermal-tools.hcreate mode 100644tools/thermal/lib/uptimeofday.ccreate mode 100644tools/thermal/lib/uptimeofday.hcreate mode 100644tools/thermal/thermal-engine/Buildcreate mode 100644tools/thermal/thermal-engine/Makefilecreate mode 100644tools/thermal/thermal-engine/thermal-engine.ccreate mode 100644tools/thermal/thermometer/Buildcreate mode 100644tools/thermal/thermometer/Makefilecreate mode 100644tools/thermal/thermometer/thermometer.ccreate mode 100644tools/thermal/thermometer/thermometer.conf
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Hi Daniel,
Quoted 5 lines · Daniel Lezcano
Hi,
What shall I do with this series? Is everyone ok with it?
Want to try out on a system and check. But unfortunately couldn't get to it yet. Hope to get to it next week. Is that OK?
Thanks,
Srinivas
Quoted 87 lines · Daniel Lezcano
Quoted 82 lines
This series provides a thermal library providing the basic callback oriented
netlink communication and events with the thermal framework, a temperature
capture tool and a thermal monitoring skeleton using the thermal library.Changelog:
- V1:
- Took into account RFC comments (unsubscribe, error enum, thermal daemon
renamed to thermal-engine)Daniel Lezcano (4):
tools/lib/thermal: Add a thermal library
tools/thermal: Add util library
tools/thermal: A temperature capture tool
tools/thermal: Add thermal daemon skeletontools/Makefile | 36 +- tools/lib/thermal/.gitignore | 2 + tools/lib/thermal/Build | 5 + tools/lib/thermal/Makefile | 165 ++++++++ tools/lib/thermal/commands.c | 351
++++++++++++++++
tools/lib/thermal/events.c | 164 ++++++++ tools/lib/thermal/include/thermal.h | 141 +++++++ tools/lib/thermal/libthermal.map | 25 ++ tools/lib/thermal/libthermal.pc.template | 12 + tools/lib/thermal/sampling.c | 75 ++++ tools/lib/thermal/thermal.c | 126 ++++++ tools/lib/thermal/thermal_nl.c | 215 ++++++++++ tools/lib/thermal/thermal_nl.h | 46 ++ tools/thermal/lib/Build | 3 + tools/thermal/lib/Makefile | 158 +++++++ .../thermal/lib/libthermal_tools.pc.template | 12 + tools/thermal/lib/log.c | 77 ++++ tools/thermal/lib/log.h | 31 ++ tools/thermal/lib/mainloop.c | 135 ++++++ tools/thermal/lib/mainloop.h | 14 + tools/thermal/lib/thermal-tools.h | 10 + tools/thermal/lib/uptimeofday.c | 40 ++ tools/thermal/lib/uptimeofday.h | 12 + tools/thermal/thermal-engine/Build | 2 + tools/thermal/thermal-engine/Makefile | 27 ++tools/thermal/thermal-engine/thermal-engine.c| 287 +++++++++++++ tools/thermal/thermometer/Build | 2 + tools/thermal/thermometer/Makefile | 23 + tools/thermal/thermometer/thermometer.c | 393
++++++++++++++++++
tools/thermal/thermometer/thermometer.conf | 5 +30 files changed, 2591 insertions(+), 3 deletions(-)create mode 100644
tools/lib/thermal/.gitignore
create mode 100644tools/lib/thermal/Build
create mode 100644tools/lib/thermal/Makefile
create mode 100644tools/lib/thermal/commands.c
create mode 100644tools/lib/thermal/events.c
create mode 100644tools/lib/thermal/include/thermal.hcreate mode 100644tools/lib/thermal/libthermal.mapcreate mode 100644tools/lib/thermal/libthermal.pc.templatecreate mode 100644tools/lib/thermal/sampling.c
create mode 100644tools/lib/thermal/thermal.c
create mode 100644tools/lib/thermal/thermal_nl.ccreate mode 100644tools/lib/thermal/thermal_nl.hcreate mode 100644tools/thermal/lib/Build
create mode 100644tools/thermal/lib/Makefile
create mode 100644tools/thermal/lib/libthermal_tools.pc.templatecreate mode 100644tools/thermal/lib/log.c
create mode 100644tools/thermal/lib/log.h
create mode 100644tools/thermal/lib/mainloop.c
create mode 100644tools/thermal/lib/mainloop.h
create mode 100644tools/thermal/lib/thermal-tools.hcreate mode 100644tools/thermal/lib/uptimeofday.ccreate mode 100644tools/thermal/lib/uptimeofday.hcreate mode 100644tools/thermal/thermal-engine/Buildcreate mode 100644tools/thermal/thermal-engine/Makefilecreate mode 100644tools/thermal/thermal-engine/thermal-engine.ccreate mode 100644tools/thermal/thermometer/Buildcreate mode 100644tools/thermal/thermometer/Makefilecreate mode 100644tools/thermal/thermometer/thermometer.ccreate mode 100644tools/thermal/thermometer/thermometer.conf
Hi Srinivas,
Quoted 10 lines · srinivas pandruvada
Hi Daniel,
Quoted 5 lines · Daniel Lezcano
Hi,
What shall I do with this series? Is everyone ok with it?
Want to try out on a system and check. But unfortunately couldn't get to it yet. Hope to get to it next week. Is that OK?
Oh, great! Thanks for trying it out. Yes, I think next week is fine
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Hi Daniel,
Quoted 5 lines · Daniel Lezcano
Hi,
What shall I do with this series? Is everyone ok with it?
Some comments
1. White space errors while applying
$git am ../daniel/\[PATCH\ v1\ 1_4\]\ tools_lib_thermal_\ Add\ a\
thermal\ library.mbox
Applying: tools/lib/thermal: Add a thermal library .git/rebase-apply/patch:234: trailing whitespace. clean:
.git/rebase-apply/patch:715: trailing whitespace.
nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TEMP]), arg); .git/rebase-apply/patch:878: trailing whitespace.
.git/rebase-apply/patch:879: trailing whitespace. struct thermal_handler; .git/rebase-apply/patch:1103: trailing whitespace. }
warning: squelched 5 whitespace errors
warning: 10 lines add whitespace errors.
$git am ../daniel/\[PATCH\ v1\ 2_4\]\ tools_thermal_\ Add\ util\
library.mbox
Applying: tools/thermal: Add util library .git/rebase-apply/patch:152: trailing whitespace. clean:
.git/rebase-apply/patch:259: trailing whitespace.
.git/rebase-apply/patch:285: trailing whitespace.
.git/rebase-apply/patch:385: trailing whitespace.
.git/rebase-apply/patch:392: trailing whitespace.
/*
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
$git am ../daniel/\[PATCH\ v1\ 3_4\]\ tools_thermal_\ A\ temperature\
capture\ tool.mbox
Applying: tools/thermal: A temperature capture tool .git/rebase-apply/patch:165: trailing whitespace.
regex_t regex;
.git/rebase-apply/patch:205: trailing whitespace.
.git/rebase-apply/patch:208: trailing whitespace.
.git/rebase-apply/patch:249: trailing whitespace.
.git/rebase-apply/patch:265: trailing whitespace.
warning: squelched 13 whitespace errors
warning: 18 lines add whitespace errors.
$ git am ../daniel/\[PATCH\ v1\ 4_4\]\ tools_thermal_\ Add\ thermal\ daemon\ skeleton.mbox Applying: tools/thermal: Add thermal daemon skeleton .git/rebase-apply/patch:170: trailing whitespace. } .git/rebase-apply/patch:186: trailing whitespace.
.git/rebase-apply/patch:197: trailing whitespace.
.git/rebase-apply/patch:199: trailing whitespace.
.git/rebase-apply/patch:348: trailing whitespace.
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.
2. No help or man pagethermal_engine has some options. There is no --help or man
3. Silent failure
For example:
$sudo ./thermal-engine
4.
sudo ./thermometer
Options;
* config: 'thermometer.conf'
* log level: '7'
* postfix: -2022-02-28_16:51:33
* output: .
What an user can do?
Thanks,
Srinivas
Quoted 87 lines · Daniel Lezcano
Quoted 82 lines
This series provides a thermal library providing the basic callback oriented
netlink communication and events with the thermal framework, a temperature
capture tool and a thermal monitoring skeleton using the thermal library.Changelog:
- V1:
- Took into account RFC comments (unsubscribe, error enum, thermal daemon
renamed to thermal-engine)Daniel Lezcano (4):
tools/lib/thermal: Add a thermal library
tools/thermal: Add util library
tools/thermal: A temperature capture tool
tools/thermal: Add thermal daemon skeletontools/Makefile | 36 +- tools/lib/thermal/.gitignore | 2 + tools/lib/thermal/Build | 5 + tools/lib/thermal/Makefile | 165 ++++++++ tools/lib/thermal/commands.c | 351
++++++++++++++++
tools/lib/thermal/events.c | 164 ++++++++ tools/lib/thermal/include/thermal.h | 141 +++++++ tools/lib/thermal/libthermal.map | 25 ++ tools/lib/thermal/libthermal.pc.template | 12 + tools/lib/thermal/sampling.c | 75 ++++ tools/lib/thermal/thermal.c | 126 ++++++ tools/lib/thermal/thermal_nl.c | 215 ++++++++++ tools/lib/thermal/thermal_nl.h | 46 ++ tools/thermal/lib/Build | 3 + tools/thermal/lib/Makefile | 158 +++++++ .../thermal/lib/libthermal_tools.pc.template | 12 + tools/thermal/lib/log.c | 77 ++++ tools/thermal/lib/log.h | 31 ++ tools/thermal/lib/mainloop.c | 135 ++++++ tools/thermal/lib/mainloop.h | 14 + tools/thermal/lib/thermal-tools.h | 10 + tools/thermal/lib/uptimeofday.c | 40 ++ tools/thermal/lib/uptimeofday.h | 12 + tools/thermal/thermal-engine/Build | 2 + tools/thermal/thermal-engine/Makefile | 27 ++tools/thermal/thermal-engine/thermal-engine.c| 287 +++++++++++++ tools/thermal/thermometer/Build | 2 + tools/thermal/thermometer/Makefile | 23 + tools/thermal/thermometer/thermometer.c | 393
++++++++++++++++++
tools/thermal/thermometer/thermometer.conf | 5 +30 files changed, 2591 insertions(+), 3 deletions(-)create mode 100644
tools/lib/thermal/.gitignore
create mode 100644tools/lib/thermal/Build
create mode 100644tools/lib/thermal/Makefile
create mode 100644tools/lib/thermal/commands.c
create mode 100644tools/lib/thermal/events.c
create mode 100644tools/lib/thermal/include/thermal.hcreate mode 100644tools/lib/thermal/libthermal.mapcreate mode 100644tools/lib/thermal/libthermal.pc.templatecreate mode 100644tools/lib/thermal/sampling.c
create mode 100644tools/lib/thermal/thermal.c
create mode 100644tools/lib/thermal/thermal_nl.ccreate mode 100644tools/lib/thermal/thermal_nl.hcreate mode 100644tools/thermal/lib/Build
create mode 100644tools/thermal/lib/Makefile
create mode 100644tools/thermal/lib/libthermal_tools.pc.templatecreate mode 100644tools/thermal/lib/log.c
create mode 100644tools/thermal/lib/log.h
create mode 100644tools/thermal/lib/mainloop.c
create mode 100644tools/thermal/lib/mainloop.h
create mode 100644tools/thermal/lib/thermal-tools.hcreate mode 100644tools/thermal/lib/uptimeofday.ccreate mode 100644tools/thermal/lib/uptimeofday.hcreate mode 100644tools/thermal/thermal-engine/Buildcreate mode 100644tools/thermal/thermal-engine/Makefilecreate mode 100644tools/thermal/thermal-engine/thermal-engine.ccreate mode 100644tools/thermal/thermometer/Buildcreate mode 100644tools/thermal/thermometer/Makefilecreate mode 100644tools/thermal/thermometer/thermometer.ccreate mode 100644tools/thermal/thermometer/thermometer.conf
Hi Srinivas,
thanks for your feedbacks, I'll fix that.
-- Daniel
Quoted 183 lines · srinivas pandruvada
Hi Daniel,
Quoted 5 lines · Daniel Lezcano
Hi,
What shall I do with this series? Is everyone ok with it?
Some comments
1. White space errors while applying
$git am ../daniel/\[PATCH\ v1\ 1_4\]\ tools_lib_thermal_\ Add\ a\
thermal\ library.mbox
Applying:tools/lib/thermal: Add a thermal library .git/rebase-apply/patch:234: trailing whitespace. clean:
.git/rebase-apply/patch:715: trailing whitespace.
nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TEMP]), arg); .git/rebase-apply/patch:878: trailing whitespace..git/rebase-apply/patch:879: trailing whitespace. struct
thermal_handler; .git/rebase-apply/patch:1103: trailing whitespace. }
warning: squelched 5 whitespace errors
warning: 10 lines add whitespace errors.$git am ../daniel/\[PATCH\ v1\ 2_4\]\ tools_thermal_\ Add\ util\
library.mbox
Applying:tools/thermal: Add util library .git/rebase-apply/patch:152: trailing whitespace. clean:
.git/rebase-apply/patch:259: trailing whitespace..git/rebase-apply/patch:285: trailing whitespace.
.git/rebase-apply/patch:385: trailing whitespace.
.git/rebase-apply/patch:392: trailing whitespace.
/*warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
$git am ../daniel/\[PATCH\ v1\ 3_4\]\ tools_thermal_\ A\ temperature\
capture\ tool.mbox
Applying:tools/thermal: A temperature capture tool .git/rebase-apply/patch:165: trailing whitespace.regex_t regex;.git/rebase-apply/patch:205: trailing whitespace.
.git/rebase-apply/patch:208: trailing whitespace.
.git/rebase-apply/patch:249: trailing whitespace.
.git/rebase-apply/patch:265: trailing whitespace.
warning: squelched 13 whitespace errors
warning: 18 lines add whitespace errors.$ git am ../daniel/\[PATCH\ v1\ 4_4\]\ tools_thermal_\ Add\ thermal\ daemon\ skeleton.mbox Applying: tools/thermal: Add thermal daemon skeleton .git/rebase-apply/patch:170: trailing whitespace. } .git/rebase-apply/patch:186: trailing whitespace..git/rebase-apply/patch:197: trailing whitespace.
.git/rebase-apply/patch:199: trailing whitespace.
.git/rebase-apply/patch:348: trailing whitespace.
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.2. No help or man page
thermal_enginehas some options. There is no --help or man3. Silent failure
For example:
$sudo ./thermal-engine4.
sudo ./thermometer
Options;
* config: 'thermometer.conf'
* log level: '7'
* postfix: -2022-02-28_16:51:33
* output: .What an user can do?
Thanks,
SrinivasQuoted 87 lines · Daniel Lezcano
Quoted 82 lines
This series provides a thermal library providing the basic callback oriented
netlink communication and events with the thermal framework, a temperature
capture tool and a thermal monitoring skeleton using the thermal library.Changelog:
- V1:
- Took into account RFC comments (unsubscribe, error enum,
thermal daemon
renamed to thermal-engine)Daniel Lezcano (4):
tools/lib/thermal: Add a thermal library
tools/thermal: Add util library
tools/thermal: A temperature capture tool
tools/thermal: Add thermal daemon skeletontools/Makefile | 36 +- tools/lib/thermal/.gitignore | 2 + tools/lib/thermal/Build | 5 + tools/lib/thermal/Makefile | 165 ++++++++ tools/lib/thermal/commands.c | 351 ++++++++++++++++ tools/lib/thermal/events.c | 164 ++++++++ tools/lib/thermal/include/thermal.h | 141 +++++++ tools/lib/thermal/libthermal.map | 25 ++ tools/lib/thermal/libthermal.pc.template | 12 + tools/lib/thermal/sampling.c | 75 ++++ tools/lib/thermal/thermal.c | 126 ++++++ tools/lib/thermal/thermal_nl.c | 215 ++++++++++ tools/lib/thermal/thermal_nl.h | 46 ++ tools/thermal/lib/Build | 3 + tools/thermal/lib/Makefile | 158 +++++++ .../thermal/lib/libthermal_tools.pc.template | 12 + tools/thermal/lib/log.c | 77 ++++ tools/thermal/lib/log.h | 31 ++ tools/thermal/lib/mainloop.c | 135 ++++++ tools/thermal/lib/mainloop.h | 14 + tools/thermal/lib/thermal-tools.h | 10 + tools/thermal/lib/uptimeofday.c | 40 ++ tools/thermal/lib/uptimeofday.h | 12 + tools/thermal/thermal-engine/Build | 2 + tools/thermal/thermal-engine/Makefile | 27 ++ tools/thermal/thermal-engine/thermal-engine.c | 287 +++++++++++++ tools/thermal/thermometer/Build | 2 + tools/thermal/thermometer/Makefile | 23 + tools/thermal/thermometer/thermometer.c | 393 ++++++++++++++++++ tools/thermal/thermometer/thermometer.conf | 5 + 30 files changed, 2591 insertions(+), 3 deletions(-)create mode 100644
tools/lib/thermal/.gitignore
create mode 100644tools/lib/thermal/Build
create mode 100644tools/lib/thermal/Makefile
create mode 100644tools/lib/thermal/commands.c
create mode 100644tools/lib/thermal/events.c
create mode 100644tools/lib/thermal/include/thermal.hcreate mode 100644tools/lib/thermal/libthermal.mapcreate mode 100644tools/lib/thermal/libthermal.pc.templatecreate mode 100644tools/lib/thermal/sampling.c
create mode 100644tools/lib/thermal/thermal.c
create mode 100644tools/lib/thermal/thermal_nl.ccreate mode 100644tools/lib/thermal/thermal_nl.hcreate mode 100644tools/thermal/lib/Build
create mode 100644tools/thermal/lib/Makefile
create mode 100644tools/thermal/lib/libthermal_tools.pc.templatecreate mode 100644tools/thermal/lib/log.c
create mode 100644tools/thermal/lib/log.h
create mode 100644tools/thermal/lib/mainloop.c
create mode 100644tools/thermal/lib/mainloop.h
create mode 100644tools/thermal/lib/thermal-tools.hcreate mode 100644tools/thermal/lib/uptimeofday.ccreate mode 100644tools/thermal/lib/uptimeofday.hcreate mode 100644tools/thermal/thermal-engine/Buildcreate mode 100644tools/thermal/thermal-engine/Makefilecreate mode 100644tools/thermal/thermal-engine/thermal-engine.ccreate mode 100644tools/thermal/thermometer/Buildcreate mode 100644tools/thermal/thermometer/Makefilecreate mode 100644tools/thermal/thermometer/thermometer.ccreate mode 100644tools/thermal/thermometer/thermometer.conf
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog