2023-01-30 22:43:57 +01:00
|
|
|
/* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC)
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
|
|
|
|
|
|
#ifndef RECORDER_H
|
|
|
|
#define RECORDER_H
|
|
|
|
|
|
|
|
/* Records data into files (Paraver traces only for now) */
|
|
|
|
|
2023-02-02 16:31:43 +01:00
|
|
|
#include "pv/pvt.h"
|
2023-01-30 22:43:57 +01:00
|
|
|
|
|
|
|
#include <linux/limits.h>
|
|
|
|
|
|
|
|
struct recorder {
|
|
|
|
char dir[PATH_MAX]; /* To place the traces */
|
|
|
|
struct pvt *pvt; /* Hash table by name */
|
|
|
|
};
|
|
|
|
|
|
|
|
int recorder_init(struct recorder *rec, const char *dir);
|
|
|
|
struct pvt *recorder_find_pvt(struct recorder *rec, const char *name);
|
|
|
|
struct pvt *recorder_add_pvt(struct recorder *rec, const char *name, long nrows);
|
|
|
|
int recorder_advance(struct recorder *rec, int64_t time);
|
2023-02-01 18:18:58 +01:00
|
|
|
int recorder_finish(struct recorder *rec);
|
2023-01-30 22:43:57 +01:00
|
|
|
|
|
|
|
#endif /* RECORDER_H */
|