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)
Sun, Nov 23, 12:02 PM
Unknown Object (File)
Sun, Nov 23, 10:49 AM
Unknown Object (File)
Oct 27 2025, 7:56 PM
Unknown Object (File)
Oct 27 2025, 5:32 PM
Unknown Object (File)
Oct 27 2025, 2:55 PM
Unknown Object (File)
Oct 24 2025, 3:49 AM
Unknown Object (File)
Oct 18 2025, 4:15 AM
Unknown Object (File)
Oct 17 2025, 6:26 AM

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.