The NetBSD Project

CVS log for src/external/cddl/osnet/dist/tools/ctf/cvt/tdata.c

[BACK] Up to [cvs.NetBSD.org] / src / external / cddl / osnet / dist / tools / ctf / cvt

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9.12.1 / (download) - annotate - [select for diffs], Fri Jun 30 17:13:50 2023 UTC (9 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Pull up following revision(s) (requested by riastradh in ticket #221):

	external/cddl/osnet/dist/tools/ctf/cvt/ctfmerge.c: revision 1.18
	external/cddl/osnet/sys/sys/opentypes.h: revision 1.7
	tools/compat/configure: revision 1.100
	external/cddl/osnet/dist/tools/ctf/cvt/barrier.c: revision 1.6
	external/cddl/osnet/dist/tools/ctf/cvt/barrier.h: revision 1.4
	external/cddl/osnet/dist/tools/ctf/cvt/barrier.c: revision 1.7
	external/cddl/osnet/dist/tools/ctf/cvt/barrier.c: revision 1.8
	tools/compat/configure.ac: revision 1.100
	external/cddl/osnet/dist/tools/ctf/cvt/tdata.c: revision 1.10
	tools/compat/nbtool_config.h.in: revision 1.54

ctfmerge: error check sem_*() and pthread_*() APIs

terminate() if sem_*() returns -1 or pthread_*() returns != 0.
(Set errno from pthread_*() so terminate() prints the strerror message).

Note: Failing on errors instead of ignoring them helps identify
reasons for intermittent failures, such as those on macOS host builds:

  ERROR: nbctfmerge: barrier_init: sem_init(bar_sem): Function not implemented

ctfmerge: fix macOS semaphore implementation

Use dispatch_semaphore_create() if present instead of sem_init().
macOS doesn't actually implement sem_init() (et al)
(even though it provides the prototypes as deprecated).

This was detected by the previous commit to ctfmerge
that added error handling.

Implement ctfmerge's barrier operations in terms of
dispatch(3) APIs such as dispatch_semaphore_create() (et al).

Update tools/compat/configure.ac to find dispatch_semaphore_create().
Fixes ctfmerge on macOS hosts.

Inspired by https://stackoverflow.com/a/27847103

tools/compat: regen for dispatch_semaphore_create

ctfmerge: fix macOS semaphore implementation, part 2
dispatch_semaphore_signal() doesn't return an error, just an
indicator of whether a thread was woken or not, so there's
no need to fail on non-zero return.

osnet: on macOS, use <mach/boolean.h> for boolean_t
macOS/x86_64 defines boolean_t as 'unsigned int' not 'int',
which causes a build issue with tools/ctfmerge on that host
after my recent fixes for macOS semaphores.

So use the <mach/boolean.h> instead of a local typedef ifdef __APPLE__.
May fix a macOS/x86_64 build issue reported by cjep@.
Builds fine on NetBSD/amd64 or macOS/arm.

Note: this compat stuff is clunky, and based on the commit log,
annoyingly error prone. A newer sync of osnet from upstream /may/
improve a lot of these compat typedef workarounds for solaris types...

Revision 1.10 / (download) - annotate - [select for diffs], Tue May 23 18:54:58 2023 UTC (10 months, 3 weeks ago) by lukem
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored)

ctfmerge: error check sem_*() and pthread_*() APIs

terminate() if sem_*() returns -1 or pthread_*() returns != 0.
(Set errno from pthread_*() so terminate() prints the strerror message).

Note: Failing on errors instead of ignoring them helps identify
reasons for intermittent failures, such as those on macOS host builds:
  ERROR: nbctfmerge: barrier_init: sem_init(bar_sem): Function not implemented

Revision 1.8.14.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:20 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Sync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Mon May 28 21:05:06 2018 UTC (5 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-10-base, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: netbsd-10
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored)

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Mon May 28 20:52:55 2018 UTC (5 years, 10 months ago) by chs
Branch: sun, FreeBSD
CVS Tags: CDDL-FreeBSD-r315983
Changes since 1.1.1.2: +25 -17 lines
Diff to previous 1.1.1.2 (colored)

import new CDDL dtrace and ZFS code from FreeBSD svn r315983.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Mar 18 17:07:23 2016 UTC (8 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat
Changes since 1.7: +2 -0 lines
Diff to previous 1.7 (colored)

Add support for c++ classes.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 18 16:37:09 2016 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

spell restrict

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 18 16:24:26 2016 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.5: +14 -13 lines
Diff to previous 1.5 (colored)

Add references, comments.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Mar 18 16:12:46 2016 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.4: +1 -0 lines
Diff to previous 1.4 (colored)

add references.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 27 23:43:53 2010 UTC (14 years, 1 month ago) by haad
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Changes since 1.3: +4 -5 lines
Diff to previous 1.3 (colored)

Merge NetBSD local changes to new zfs version 22 sources.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sat Feb 27 22:30:39 2010 UTC (14 years, 1 month ago) by haad
Branch: sun, FreeBSD
CVS Tags: osnet-20100224
Changes since 1.1.1.1: +4 -5 lines
Diff to previous 1.1.1.1 (colored)

Import new Opensolaris sources for zfs/dtrace.

Opensolaris mercurial changeset: 11751:58c0c8f4305f

Revision 1.3 / (download) - annotate - [select for diffs], Wed Feb 24 21:53:26 2010 UTC (14 years, 1 month ago) by darran
Branch: MAIN
Changes since 1.2: +4 -0 lines
Diff to previous 1.2 (colored)

DTrace: Get the CTF tools building as part of the toolchain.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Feb 21 00:49:56 2010 UTC (14 years, 1 month ago) by darran
Branch: MAIN
CVS Tags: darran-pre-netbsd
Changes since 1.1: +25 -17 lines
Diff to previous 1.1 (colored)

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Feb 20 04:34:44 2010 UTC (14 years, 1 month ago) by darran
Branch: sun, FreeBSD
CVS Tags: osnet-20081117, darran-pre-freebsd
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import the rest of Opensolaris 20081117 needed for DTrace. No conflicts
with ZFS.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Feb 20 04:34:44 2010 UTC (14 years, 1 month ago) by darran
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>