Dynamic Load Balance 3.6.1+32-59d1
talp_hwc.h
Go to the documentation of this file.
1/*********************************************************************************/
2/* Copyright 2009-2026 Barcelona Supercomputing Center */
3/* */
4/* This file is part of the DLB library. */
5/* */
6/* DLB is free software: you can redistribute it and/or modify */
7/* it under the terms of the GNU Lesser General Public License as published by */
8/* the Free Software Foundation, either version 3 of the License, or */
9/* (at your option) any later version. */
10/* */
11/* DLB is distributed in the hope that it will be useful, */
12/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
13/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14/* GNU Lesser General Public License for more details. */
15/* */
16/* You should have received a copy of the GNU Lesser General Public License */
17/* along with DLB. If not, see <https://www.gnu.org/licenses/>. */
18/*********************************************************************************/
19
20#ifndef TALP_HWC_H
21#define TALP_HWC_H
22
23#include "talp/talp_types.h"
24#include <stdbool.h>
25
26typedef struct SubProcessDescriptor subprocess_descriptor_t;
27typedef struct hwc_measurements hwc_measurements_t;
28
30int talp_hwc_thread_init(void);
31void talp_hwc_finalize(void);
34void talp_hwc_submit(const hwc_measurements_t *raw);
36
37#endif /* TALP_HWC_H */
Definition: backend.h:46
Definition: spd.h:33
int talp_hwc_init(const subprocess_descriptor_t *spd)
Definition: talp_hwc.c:47
void talp_hwc_submit(const hwc_measurements_t *raw)
Definition: talp_hwc.c:130
int talp_hwc_thread_init(void)
Definition: talp_hwc.c:83
bool talp_hwc_collect(hwc_measurements_t *out)
Definition: talp_hwc.c:148
void talp_hwc_finalize(void)
Definition: talp_hwc.c:94
void talp_hwc_on_state_change(talp_sample_state_t old_state, talp_sample_state_t new_state)
Definition: talp_hwc.c:113
void talp_hwc_thread_finalize(void)
Definition: talp_hwc.c:106
talp_sample_state_t
Definition: talp_types.h:31