Skip to content

Conversation

@dalehamel
Copy link
Contributor

Per feedback from @fabled on #929:

If not too much work, could the mechanical conversion from TSD -> libc on the hook/struct be done a separate PR first? And then add the new functionality along with the missing tests in a next PR? I think the mechanical work should be trivial to get reviewed and merged first.

This should not contain any functionality changes, it is just renaming tpbase package to more generically be libc, and the existing TSDInfo struct is nested within a more generic LibcInfo struct as a field. Existing hooks referring to TSDInfo also now more generically refer to LibcInfo.

This is to prepare for adding DTV info to the LibcInfo struct, and potentially other libc specific data in the future.


// Also gather TSD info if applicable.
if tpbase.IsPotentialTSDDSO(elfRef.FileName()) {
if libc.IsPotentialTSDDSO(elfRef.FileName()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is now a bit awkwardly named, but it can potentially match libpthread, so changing constitutes an actual change to the logic. For now, i'm leaving it as-is.

@dalehamel dalehamel marked this pull request as ready for review November 10, 2025 19:34
@dalehamel dalehamel requested review from a team as code owners November 10, 2025 19:34
@fabled fabled merged commit 82f72fe into open-telemetry:main Nov 11, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants