libdtrace: workaround missing tcph_t from ctf
commitcd781c3219d9b06c7f597570152b89002e3ef264
authorLauri Tirkkonen <lotheac@iki.fi>
Sun, 6 Nov 2016 15:50:00 +0000 (6 17:50 +0200)
committerLauri Tirkkonen <lotheac@iki.fi>
Mon, 14 Nov 2016 15:06:55 +0000 (14 17:06 +0200)
treeb3769be8ce3ac8ceed106e9422ba5787f284cb9c
parent9a9beeebd70372ceed2ad0968a79553fd96e325f
libdtrace: workaround missing tcph_t from ctf

Now that nca was removed in commit
4de7b7d44ed5ed5e9b1cf1dc3ad5c0cd393660e3, it seems that gcc omits DWARF
for the tcph_t type, and that breaks dtrace as an unfortunate side
effect since it relies on the existence of that type. To work around
this we could add -fno-eliminate-unused-debug-types to some kernel
compilation unit that happens to include inet/tcp.h, but that may pull
in more unused types. For now, let's just drop the typedef into the
dtrace consumer.
usr/src/lib/libdtrace/common/tcp.d.in