Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix out of bounds bug #10

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

matburnx
Copy link
Contributor

Fix #5, now if the NodeIndex + 1 is out of bounds, the parent has no child
Fix another issue I found where one line trees had the function below as child even though they are not related

     0.00%     0.00%  sh               [kernel.kallsyms]           [k] ghes_notify_nmi
     0.00%     0.00%  sh               [kernel.kallsyms]           [k] nmi_cpu_backtrace

For example, in this case nmi_cpu_backtrace would have been considered as the child of ghes_notify_nmi but they clearly are not (at least in this case) related

Fix another issue I found where one line trees had the function below as child even though they are not related
@guillep
Copy link
Member

guillep commented Jun 27, 2024

Ohoh! We need a test! :)

matburnx and others added 2 commits June 27, 2024 08:34
Changed `testHardestCall` as the file was modified in another PR
@matburnx
Copy link
Contributor Author

I've added one and changed another one due to the changes in the test file being done on another PR

Comment on lines +76 to +80
((self percentageOf: aNodeIndex)
= (self percentageOf: aNodeIndex + 1) and: [
((self readLine: aNodeIndex + 1) findString: '[') = 0 ]) ifTrue: [
everyChildren add: aNodeIndex + 1.
^ everyChildren ].
Copy link
Member

Choose a reason for hiding this comment

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

We should sit and pair a bit on this code ^^

Copy link
Member

@guillep guillep left a comment

Choose a reason for hiding this comment

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

Thanks @matburnx !

@guillep guillep merged commit c78f275 into Alamvic:main Jun 27, 2024
3 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.

Last entry with 0% go out of bounds
2 participants