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 qemu cov #2875

Merged
merged 3 commits into from
Jan 22, 2025
Merged

Fix qemu cov #2875

merged 3 commits into from
Jan 22, 2025

Conversation

rmalmain
Copy link
Member

move DrCov hook initialization to first_exec to avoid using the hook before it's actually possible.

_state: &mut S,
) where
ET: EmulatorModuleTuple<I, S>,
{
emulator_modules.blocks(
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it make sense / look nicer from an API side to have an extra method that gets called to set up hooks? It'd be called right before this one but have a name that's clearly for setup

Copy link
Member Author

Choose a reason for hiding this comment

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

so, in that case, i guess what you want is to rename first_exec into fuzzing_setup or something similar?
some hooks can be set just after qemu gets initialized or just before the first fuzzing run, depending on the module. so i don't think we can just have a single method to set hooks up

@rmalmain rmalmain merged commit d9e8b59 into main Jan 22, 2025
21 checks passed
@rmalmain rmalmain deleted the fix_qemu_cov branch January 22, 2025 13:05
@rmalmain rmalmain restored the fix_qemu_cov branch January 22, 2025 13:21
@rmalmain rmalmain mentioned this pull request Jan 22, 2025
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