diff options
author | Andy Fiddaman <omnios@citrus-it.co.uk> | 2020-11-04 12:07:58 +0000 |
---|---|---|
committer | Andy Fiddaman <omnios@citrus-it.co.uk> | 2020-12-17 21:17:56 +0000 |
commit | dd4422524768709a579a2a93a10c78a88a6b0ecb (patch) | |
tree | 7716bcc59f22cd4891503a8bc22e17710a774d28 /usr/src/lib/libctf/common/libctf_impl.h | |
parent | 93d78aba5b32996fc2ae893a6237a0d3972f86b2 (diff) | |
download | illumos-joyent-dd4422524768709a579a2a93a10c78a88a6b0ecb.tar.gz |
13280 CTF: provide option to truncate and continue
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Approved by: Rich Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/lib/libctf/common/libctf_impl.h')
-rw-r--r-- | usr/src/lib/libctf/common/libctf_impl.h | 18 |
1 files changed, 14 insertions, 4 deletions
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 |