diff --git a/src/arch/aarch64.rs b/src/arch/aarch64.rs index 8f08d1af..0ca1dd00 100644 --- a/src/arch/aarch64.rs +++ b/src/arch/aarch64.rs @@ -27,6 +27,7 @@ pub(crate) struct AArch64ArchitectureOperations { int_register: IntRegisterInterface, processor_info_v2: ProcessorInfoV2Interface, cpu_instruction_query: CpuInstructionQueryInterface, + #[allow(dead_code)] cpu_instrumentation_subscribe: CpuInstrumentationSubscribeInterface, cycle: CycleInterface, } diff --git a/src/arch/arm.rs b/src/arch/arm.rs index 3ff9dc27..65c5ebf4 100644 --- a/src/arch/arm.rs +++ b/src/arch/arm.rs @@ -28,6 +28,7 @@ pub(crate) struct ARMArchitectureOperations { int_register: IntRegisterInterface, processor_info_v2: ProcessorInfoV2Interface, cpu_instruction_query: CpuInstructionQueryInterface, + #[allow(dead_code)] cpu_instrumentation_subscribe: CpuInstrumentationSubscribeInterface, cycle: CycleInterface, } diff --git a/src/arch/mod.rs b/src/arch/mod.rs index d1fddd6f..561568b8 100644 --- a/src/arch/mod.rs +++ b/src/arch/mod.rs @@ -162,6 +162,7 @@ pub trait ArchitectureOperations { fn cpu_instruction_query(&mut self) -> &mut CpuInstructionQueryInterface; /// Return a mutable reference to the interface for subscribing to CPU instrumentation events + #[allow(dead_code)] fn cpu_instrumentation_subscribe(&mut self) -> &mut CpuInstrumentationSubscribeInterface; /// Return a mutable reference to the interface for querying CPU cycles and timing diff --git a/src/arch/risc_v.rs b/src/arch/risc_v.rs index 6eb440a5..3ce9bfe6 100644 --- a/src/arch/risc_v.rs +++ b/src/arch/risc_v.rs @@ -28,6 +28,7 @@ pub(crate) struct RISCVArchitectureOperations { int_register: IntRegisterInterface, processor_info_v2: ProcessorInfoV2Interface, cpu_instruction_query: CpuInstructionQueryInterface, + #[allow(dead_code)] cpu_instrumentation_subscribe: CpuInstrumentationSubscribeInterface, cycle: CycleInterface, } diff --git a/src/arch/x86.rs b/src/arch/x86.rs index 28a39fbe..3b3b59a3 100644 --- a/src/arch/x86.rs +++ b/src/arch/x86.rs @@ -30,6 +30,7 @@ pub(crate) struct X86ArchitectureOperations { int_register: IntRegisterInterface, processor_info_v2: ProcessorInfoV2Interface, cpu_instruction_query: CpuInstructionQueryInterface, + #[allow(dead_code)] cpu_instrumentation_subscribe: CpuInstrumentationSubscribeInterface, cycle: CycleInterface, } diff --git a/src/arch/x86_64.rs b/src/arch/x86_64.rs index 615db506..6d194924 100644 --- a/src/arch/x86_64.rs +++ b/src/arch/x86_64.rs @@ -27,6 +27,7 @@ pub(crate) struct X86_64ArchitectureOperations { int_register: IntRegisterInterface, processor_info_v2: ProcessorInfoV2Interface, cpu_instruction_query: CpuInstructionQueryInterface, + #[allow(dead_code)] cpu_instrumentation_subscribe: CpuInstrumentationSubscribeInterface, cycle: CycleInterface, }