summaryrefslogtreecommitdiff
path: root/usr/src/lib/libctf/common/libctf.h
diff options
context:
space:
mode:
authorAndy Fiddaman <omnios@citrus-it.co.uk>2020-11-25 15:40:47 +0000
committerAndy Fiddaman <omnios@citrus-it.co.uk>2020-12-17 21:18:28 +0000
commit73197b540cc5f0434c409b68ca9e1a514a6ce91b (patch)
tree77c0340598f2af7e9feab3a729acbe677ca973b9 /usr/src/lib/libctf/common/libctf.h
parentdd4422524768709a579a2a93a10c78a88a6b0ecb (diff)
downloadillumos-gate-73197b540cc5f0434c409b68ca9e1a514a6ce91b.tar.gz
13336 ctfconvert should be able to unconditionally attempt conversion
Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Rich Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/lib/libctf/common/libctf.h')
-rw-r--r--usr/src/lib/libctf/common/libctf.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/src/lib/libctf/common/libctf.h b/usr/src/lib/libctf/common/libctf.h
index 5f0721e99f..8f6a232057 100644
--- a/usr/src/lib/libctf/common/libctf.h
+++ b/usr/src/lib/libctf/common/libctf.h
@@ -91,11 +91,18 @@ typedef enum ctf_convert_flag {
* to CTF format, such as an enum with too many values. This flag
* allows us to continue and convert what we can.
*/
- CTF_ALLOW_TRUNCATION = 0x02
+ CTF_ALLOW_TRUNCATION = 0x02,
+ /*
+ * Conversion is not usually attempted for objects that don't appear
+ * to be built from C sources. This flag overrides this and attempts
+ * conversion anyway.
+ */
+ CTF_FORCE_CONVERSION = 0x04
} ctf_convert_flag_t;
#define CTF_CONVERT_ALL_FLAGS (CTF_ALLOW_MISSING_DEBUG | \
- CTF_ALLOW_TRUNCATION)
+ CTF_ALLOW_TRUNCATION | \
+ CTF_FORCE_CONVERSION)
/* opaque handle for ctfconvert functions */
struct ctf_convert_handle;