We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb24fb5 commit 4763adaCopy full SHA for 4763ada
libafl_intelpt/src/linux.rs
@@ -724,8 +724,7 @@ impl IntelPTBuilder {
724
725
/// Set the size of the perf aux buffer (actual PT traces buffer)
726
pub fn perf_aux_buffer_size(mut self, perf_aux_buffer_size: usize) -> Result<Self, Error> {
727
- // todo:replace with is_multiple_of once stable
728
- if perf_aux_buffer_size % PAGE_SIZE != 0 {
+ if !perf_aux_buffer_size.is_multiple_of(PAGE_SIZE) {
729
return Err(Error::illegal_argument(
730
"IntelPT perf_aux_buffer must be page aligned",
731
));
0 commit comments