2018-03-06 01:53:50 +01:00
|
|
|
#ifndef _BTF_ENCODER_H_
|
|
|
|
#define _BTF_ENCODER_H_ 1
|
2019-01-15 18:28:24 +01:00
|
|
|
/*
|
|
|
|
SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
2019-01-18 19:42:37 +01:00
|
|
|
Copyright (C) 2019 Facebook
|
|
|
|
|
|
|
|
Derived from ctf_encoder.h, which is:
|
|
|
|
Copyright (C) Arnaldo Carvalho de Melo <acme@redhat.com>
|
2019-01-15 18:28:24 +01:00
|
|
|
*/
|
2018-03-06 01:53:50 +01:00
|
|
|
|
2021-06-03 15:43:21 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2021-06-11 21:22:05 +02:00
|
|
|
struct btf_encoder;
|
2021-06-02 14:32:56 +02:00
|
|
|
struct btf;
|
2018-03-06 01:53:50 +01:00
|
|
|
struct cu;
|
2021-06-03 15:12:41 +02:00
|
|
|
|
2021-06-09 15:54:10 +02:00
|
|
|
struct btf_encoder *btf_encoder__new(struct cu *cu, struct btf *base_btf, bool skip_encoding_vars, bool force, bool gen_floats, bool verbose);
|
2021-06-03 15:12:41 +02:00
|
|
|
void btf_encoder__delete(struct btf_encoder *encoder);
|
|
|
|
|
2021-06-08 19:43:35 +02:00
|
|
|
int btf_encoder__encode(struct btf_encoder *encoder, const char *detached_filename);
|
2018-12-18 23:09:39 +01:00
|
|
|
|
2021-06-14 20:57:29 +02:00
|
|
|
int btf_encoder__encode_cu(struct btf_encoder *encoder, struct cu *cu);
|
2018-03-06 01:53:50 +01:00
|
|
|
|
|
|
|
#endif /* _BTF_ENCODER_H_ */
|