summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87c3420)
raw | patch | inline | side by side (parent: 87c3420)
author | Vincent Brillault <git@lerya.net> | |
Wed, 4 Feb 2015 20:47:50 +0000 (21:47 +0100) | ||
committer | Vincent Brillault <git@lerya.net> | |
Sat, 28 Feb 2015 06:35:42 +0000 (07:35 +0100) |
src/turbostat.c | patch | blob | history |
diff --git a/src/turbostat.c b/src/turbostat.c
index aa23e141f93c52ecb873e8c0b782504def2980b8..c767cf16ae13761e51d5c8410f88b3359374210e 100644 (file)
--- a/src/turbostat.c
+++ b/src/turbostat.c
*/
#define _GNU_SOURCE
+#include "collectd.h"
+#include "common.h"
+#include "plugin.h"
+#include "utils_time.h"
+
#include <asm/msr-index.h>
#include <stdarg.h>
#include <stdio.h>
#include <sched.h>
#include <cpuid.h>
-#include "collectd.h"
-#include "common.h"
-#include "plugin.h"
-#include "utils_time.h"
-
#define PLUGIN_NAME "turbostat"
/*
cdtime_t time_even, time_odd, time_delta;
+static const char *config_keys[] =
+{
+ "TCCActivationTemp",
+};
+static const int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
+
/*****************************
* MSR Manipulation helpers *
*****************************/
return ret;
}
-static const char *config_keys[] =
-{
- "TCCActivationTemp",
-};
-static const int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
-
static int
turbostat_config(const char *key, const char *value)
{