X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_config_cores.h;h=d45f848092f5d5ef88c699494fbbe0230d4b0223;hb=711f5b6c86f51061c21bedcaa46214a01de0125c;hp=de79dde232289796f438de9ca19e72dd4014a24c;hpb=bdcb53df8ca1e24732204d519aa87888b603c280;p=collectd.git diff --git a/src/utils_config_cores.h b/src/utils_config_cores.h index de79dde2..d45f8480 100644 --- a/src/utils_config_cores.h +++ b/src/utils_config_cores.h @@ -1,7 +1,7 @@ /** * collectd - src/utils_config_cores.h * - * Copyright(c) 2017 Intel Corporation. All rights reserved. + * Copyright(c) 2018 Intel Corporation. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -28,9 +28,15 @@ #ifndef UTILS_CONFIG_CORES_H #define UTILS_CONFIG_CORES_H 1 +#include "configfile.h" + +#ifndef PRIsz +#define PRIsz "zu" +#endif /* PRIsz */ + struct core_group_s { char *desc; - unsigned *cores; + unsigned int *cores; size_t num_cores; }; typedef struct core_group_s core_group_t; @@ -128,4 +134,3 @@ int config_cores_cmp_cgroups(const core_group_t *cg_a, const core_group_t *cg_b); #endif /* UTILS_CONFIG_CORES_H */ -