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, Oct 18, 4:15 AM
Unknown Object (File)
Fri, Oct 17, 6:26 AM
Unknown Object (File)
Sun, Oct 12, 11:50 PM
Unknown Object (File)
Sun, Oct 12, 12:20 PM
Unknown Object (File)
Sun, Oct 12, 12:20 PM
Unknown Object (File)
Sun, Oct 12, 12:20 PM
Unknown Object (File)
Sun, Oct 12, 12:20 PM
Unknown Object (File)
Sun, Oct 12, 1:22 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 65523
Build 62406: arc lint + arc unit

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.