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

Filterx expr type macros #465

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Conversation

bazsi
Copy link
Member

@bazsi bazsi commented Jan 23, 2025

The current convention is to decide whether we are looking at a specific FilterXExpr instance based on the value of the
"eval" function pointer.

Issue is that #433 will change that pointer at runtime to incorporate expr level visibility into perf backtraces.

This could also be the beginning of a real FilterXExprType struct (to avoid repeating the function pointers into all expr instances), but this PR does not go that far.

NOTE: this does not create FILTERX_EXPR_TYPE_DECLARE() for all exprs, only those which had a filterx_expr_is_XXX() function. As long as noone is checking if an expr is of a specific type, this is optional.

bazsi added 2 commits January 23, 2025 19:13
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
lib/filterx/filterx-expr.h Outdated Show resolved Hide resolved
…on from a macro

Due to axoflow#465 (comment)

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
@bazsi bazsi requested a review from MrAnno January 29, 2025 17:20
@MrAnno MrAnno merged commit 2d5eaa8 into axoflow:main Jan 31, 2025
22 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.

2 participants