Skip to content

pcp-system-tools: restore backward compatibility with older pmapi versions#2509

Closed
orasagar wants to merge 1 commit intoperformancecopilot:mainfrom
orasagar:pcp-bug-fix
Closed

pcp-system-tools: restore backward compatibility with older pmapi versions#2509
orasagar wants to merge 1 commit intoperformancecopilot:mainfrom
orasagar:pcp-bug-fix

Conversation

@orasagar
Copy link
Contributor

@orasagar orasagar commented Mar 2, 2026

Commit 0a37ed0 introduced support for pmapi version 4, but upgrading to the latest pmapi is not currently desired. This change updates pcp-iostat, mpstat, pidstat, and ps to fall back to tv_usec when tv_nsec is unavailable during timestamp delta calculation, ensuring compatibility with older pmapi versions and collectors that only expose tv_usec.

Commit 0a37ed0 introduced support for pmapi version 4, but upgrading to the latest pmapi is not currently desired. This change updates pcp-iostat, mpstat, pidstat, and ps to fall back to tv_usec when tv_nsec is unavailable during timestamp delta calculation, ensuring compatibility with older pmapi versions and collectors that only expose tv_usec.
@orasagar orasagar changed the title system-tools: restore backward compatibility with older pmapi versions pcp-system-tools: restore backward compatibility with older pmapi versions Mar 2, 2026
@kmcdonell
Copy link
Member

I'm going to "speak" with @orasagar via email to understand the use case here ... a priori I don't think this is the sort of thing we want to carry forward in the PCP code base.

@natoscott
Copy link
Member

Agreed, I don't think this category of changes should be merged upstream.

@orasagar
Copy link
Contributor Author

orasagar commented Mar 4, 2026

@natoscott after having discussion with @kmcdonell i do also agree that it should not be upstream, closing this out

@orasagar orasagar closed this Mar 4, 2026
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