From dd4422524768709a579a2a93a10c78a88a6b0ecb Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Wed, 4 Nov 2020 12:07:58 +0000 Subject: 13280 CTF: provide option to truncate and continue Reviewed by: Robert Mustacchi Reviewed by: Igor Kozhukhov Approved by: Rich Lowe --- usr/src/lib/libctf/common/libctf_impl.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'usr/src/lib/libctf/common/libctf_impl.h') diff --git a/usr/src/lib/libctf/common/libctf_impl.h b/usr/src/lib/libctf/common/libctf_impl.h index 0921a3ec1a..6ed2665d11 100644 --- a/usr/src/lib/libctf/common/libctf_impl.h +++ b/usr/src/lib/libctf/common/libctf_impl.h @@ -11,6 +11,7 @@ /* * Copyright 2019 Joyent, Inc. + * Copyright 2020 OmniOS Community Edition (OmniOSce) Association. */ #ifndef _LIBCTF_IMPL_H @@ -29,10 +30,19 @@ extern "C" { #endif -typedef int (*ctf_convert_f)(int, Elf *, uint_t, uint_t, uint_t, - ctf_file_t **, char *, size_t); -extern int ctf_dwarf_convert(int, Elf *, uint_t, uint_t, uint_t, - ctf_file_t **, char *, size_t); +struct ctf_convert_handle { + char *cch_label; + uint_t cch_flags; + uint_t cch_nthreads; + uint_t cch_batchsize; + ctf_convert_warn_f cch_warncb; + void *cch_warncb_arg; +}; + +typedef int (*ctf_convert_f)(ctf_convert_t *, int, Elf *, ctf_file_t **, + char *, size_t); +extern int ctf_dwarf_convert(ctf_convert_t *, int, Elf *, ctf_file_t **, + char *, size_t); /* * Symbol walking -- cgit v1.2.3