This isn't ready but I wanted to show what I'm running with. More fixes like
D24536 are needed first.
Details
Details
- Reviewers
imp cem markj - Commits
- rS360445: ctfmerge: Assert that there is enough room for types.
Diff Detail
Diff Detail
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 30668 Build 28403: arc lint + arc unit
Event Timeline
Comment Actions
Hmm I had this at Isilon but not here.
--- cddl/contrib/opensolaris/tools/ctf/cvt/merge.c +++ cddl/contrib/opensolaris/tools/ctf/cvt/merge.c @@ -347,7 +347,7 @@ equiv_node(tdesc_t *ctdp, tdesc_t *mtdp, equiv_data_t *ed) int (*equiv)(tdesc_t *, tdesc_t *, equiv_data_t *); int mapping; - if (ctdp->t_emark > ed->ed_clear_mark || + if (ctdp->t_emark > ed->ed_clear_mark && mtdp->t_emark > ed->ed_clear_mark) return (ctdp->t_emark == mtdp->t_emark);
cddl/contrib/opensolaris/tools/ctf/cvt/merge.c | ||
---|---|---|
455 | Are we still doing FreeBSD ifdefs (or ifndef illumos) in our CTF tools? I.e., is there an active upstream here? |
cddl/contrib/opensolaris/tools/ctf/cvt/merge.c | ||
---|---|---|
455 | Not really. At least, in the past I haven't bothered delimiting our modifications unless they were specific to FreeBSD. | |
481 | ISCHILD is kind of a weird predicate to use, but I can't see a nicer way to express it using ctf.h macros. You might add a comment explaining why we do these checks. |