Skip to content

Conversation

@sim642
Copy link
Member

@sim642 sim642 commented Jan 23, 2026

While reviewing #1928 I inspected the current access output of the creationLockset analysis to understand why it wasn't precise enough.
While doing so, I noticed that the TID and lockset are printed twice in access output because they are queried from other analyses which are already responsible for outputting those parts.

On a side note, I'm wondering if should_print could be refined further. For example,

creationLockset:{
                [main] -> {}
              }

is a non-empty map, but only containing empty locksets. That can't really rule out any races, can it?

@sim642 sim642 added this to the v2.8.0 Clumsy Clurichaun milestone Jan 23, 2026
@sim642 sim642 requested a review from dabund24 January 23, 2026 08:34
Copy link
Member

@dabund24 dabund24 left a comment

Choose a reason for hiding this comment

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

While doing so, I noticed that the TID and lockset are printed twice in access output because they are queried from other analyses which are already responsible for outputting those parts.

I agree that your modification makes much more sense. I hadn't put enough thought into that.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes duplicate output of TID and lockset components in the creationLockset analysis access output. The TID and lockset are already printed by the threadid and mutex analyses respectively, so printing them again in creationLockset analysis is redundant.

Changes:

  • Override pretty-printing methods (pretty, show, to_yojson, printXml) in the Access module to only output the creation lockset component, delegating to the G module's implementations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: dabund24 <dev@dabund24.de>
@dabund24 dabund24 self-requested a review January 25, 2026 22:21
@sim642 sim642 merged commit 821371d into master Jan 26, 2026
19 checks passed
@sim642 sim642 deleted the creation-lockset-access-print branch January 26, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants