projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
virt plugin: fix some minor style issues
[collectd.git]
/
src
/
intel_rdt.c
diff --git
a/src/intel_rdt.c
b/src/intel_rdt.c
index
667033c
..
df9c9c4
100644
(file)
--- a/
src/intel_rdt.c
+++ b/
src/intel_rdt.c
@@
-25,9
+25,9
@@
* Serhiy Pshyk <serhiyx.pshyk@intel.com>
**/
* Serhiy Pshyk <serhiyx.pshyk@intel.com>
**/
+#include "collectd.h"
#include "common.h"
#include "utils_config_cores.h"
#include "common.h"
#include "utils_config_cores.h"
-#include "collectd.h"
#include <pqos.h>
#include <pqos.h>
@@
-124,7
+124,7
@@
static void rdt_free_cgroups(void) {
static int rdt_default_cgroups(void) {
unsigned num_cores = g_rdt->pqos_cpu->num_cores;
static int rdt_default_cgroups(void) {
unsigned num_cores = g_rdt->pqos_cpu->num_cores;
- g_rdt->cores.cgroups = calloc(num_cores, sizeof(*
(g_rdt->cores.cgroups)
));
+ g_rdt->cores.cgroups = calloc(num_cores, sizeof(*
g_rdt->cores.cgroups
));
if (g_rdt->cores.cgroups == NULL) {
ERROR(RDT_PLUGIN ": Error allocating core groups array");
return -ENOMEM;
if (g_rdt->cores.cgroups == NULL) {
ERROR(RDT_PLUGIN ": Error allocating core groups array");
return -ENOMEM;
@@
-137,7
+137,7
@@
static int rdt_default_cgroups(void) {
char desc[DATA_MAX_NAME_LEN];
/* set core group info */
char desc[DATA_MAX_NAME_LEN];
/* set core group info */
- cgroup->cores = calloc(1, sizeof(*
(cgroup->cores)
));
+ cgroup->cores = calloc(1, sizeof(*
cgroup->cores
));
if (cgroup->cores == NULL) {
ERROR(RDT_PLUGIN ": Error allocating cores array");
rdt_free_cgroups();
if (cgroup->cores == NULL) {
ERROR(RDT_PLUGIN ": Error allocating cores array");
rdt_free_cgroups();
@@
-336,8
+336,8
@@
static int rdt_config(oconfig_item_t *ci) {
return 0;
}
return 0;
}
-static void rdt_submit_derive(c
har *cgroup, char *type, char *type_instanc
e,
- derive_t value) {
+static void rdt_submit_derive(c
onst char *cgroup, const char *typ
e,
+
const char *type_instance,
derive_t value) {
value_list_t vl = VALUE_LIST_INIT;
vl.values = &(value_t){.derive = value};
value_list_t vl = VALUE_LIST_INIT;
vl.values = &(value_t){.derive = value};
@@
-352,8
+352,8
@@
static void rdt_submit_derive(char *cgroup, char *type, char *type_instance,
plugin_dispatch_values(&vl);
}
plugin_dispatch_values(&vl);
}
-static void rdt_submit_gauge(c
har *cgroup, char *type, char *type_instanc
e,
- gauge_t value) {
+static void rdt_submit_gauge(c
onst char *cgroup, const char *typ
e,
+
const char *type_instance,
gauge_t value) {
value_list_t vl = VALUE_LIST_INIT;
vl.values = &(value_t){.gauge = value};
value_list_t vl = VALUE_LIST_INIT;
vl.values = &(value_t){.gauge = value};