]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r282739:
authormarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 7 Jun 2015 19:48:21 +0000 (19:48 +0000)
committermarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 7 Jun 2015 19:48:21 +0000 (19:48 +0000)
commit237f43434eda4d5ec56a015e2865c3747cf36da3
tree8e36b4d0ff4dc8beae2b1139a7871c36409ef046
parent432f971fafde16d1a0d51215ee847eeee2c9de2b
MFC r282739:
ctf_add_type(): when looking up an integer or floating point type in the
list of pending dynamic type definitions, a match on the type name is not
sufficient - we need to compare the type encodings as well. For example,
bitfields have their own distinct type definitions which share the name of
the underlying integer type, and these types aren't generally
interchangeable.

This bug was causing the following libdtrace error when attempting to trace
the th_flags member of a struct tcphdr:
  cg: bad field: off 104 type <32877> bits 539620016

git-svn-id: svn://svn.freebsd.org/base/stable/10@284132 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/common/ctf/ctf_create.c