Page MenuHomeFreeBSD

lib: Move libopencsd to /usr/lib and make private
ClosedPublic

Authored by andrew on Jul 17 2025, 4:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 11, 7:53 PM
Unknown Object (File)
Thu, Apr 9, 8:46 PM
Unknown Object (File)
Tue, Apr 7, 9:15 PM
Unknown Object (File)
Mon, Apr 6, 6:46 PM
Unknown Object (File)
Feb 23 2026, 5:58 PM
Unknown Object (File)
Feb 23 2026, 5:58 PM
Unknown Object (File)
Feb 23 2026, 5:58 PM
Unknown Object (File)
Feb 21 2026, 12:40 PM

Details

Summary

libopencsd is used to decode Arm CoreSight traces. It isn't needed
during the boot so can be moved to /usr/lib, and may change it's API
so can be marked as private as onlt the future hwt tool will use it.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/libopencsd/Makefile
1

removing this means the library will be installed in the FreeBSD-utilities package. is this what we want?

if it's only used by one subsystem (hwt) it may make more sense for it to remain a separate package so it can be removed when that subsystem isn't installed.

kevans added inline comments.
lib/libopencsd/Makefile
1

I think the correct thing to do here would be to proactively place it in an hwt package if we expect hwt will arrive before 15.0 branches.

i landed D51374 to fix the build for now, so if we change the package here, release/packages/ucl/libopencsd-all.ucl should be renamed or deleted as appropriate.

lib/libopencsd/Makefile
1

if it's only used by hwt i am fine with this also.

lib/libopencsd/Makefile
1

If we are creating a new package it should probably be a performance tools package & include the hwpmc bits.

Rebase + remove libopencsd-all.ucl

This revision was not accepted when it landed; it landed in state Needs Review.Aug 5 2025, 2:34 PM
This revision was automatically updated to reflect the committed changes.