-
Couldn't load subscription status.
- Fork 4
[PWCI] "[v2] graph: fix xstats description allocation" #260
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
base: main
Are you sure you want to change the base?
Conversation
Fix the extended stats name allocation size: instead of allocating RTE_NODE_XSTAT_DESC_SIZE (64 bytes), only sizeof(RTE_NODE_XSTAT_DESC_SIZE) were allocated for each xstat name. Fixes: 070db97 ("graph: support node xstats") Signed-off-by: Christophe Fontaine <cfontain@redhat.com> Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Signed-off-by: 0-day Robot <robot@bytheb.org>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideFix xstats description allocation by correcting the size calculation in stats_mem_populate. Class diagram for xstats description allocation in stats_mem_populateclassDiagram
class rte_graph_cluster_stats {
+int socket_id
+stat
}
class stat {
+xstat_desc
+xstat_count
}
class graph_node {
+node
}
class node {
+name
+xstats
}
class xstats {
+nb_xstats
}
rte_graph_cluster_stats --> stat
stat --> xstat_desc
stat --> xstat_count
graph_node --> node
node --> xstats
xstats --> nb_xstats
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
WalkthroughA memory allocation bug fix in the graph statistics module corrects the size calculation for xstat_desc by removing an incorrect Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: This is an auto submission for "[v2] graph: fix xstats description allocation".
See "http://patchwork.dpdk.org/project/dpdk/list/?series=36490" for details.
Summary by Sourcery
Bug Fixes:
Summary by CodeRabbit