Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/cosmo/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ enum Event {

#[derive(Copy, Clone, PartialEq)]
enum Trace {
Event(Event),
None,
Event(Event),
}

ringbuf!(Trace, 128, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion app/gimlet/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ enum Event {

#[derive(Copy, Clone, PartialEq)]
enum Trace {
Event(Event),
None,
Event(Event),
}

ringbuf!(Trace, 128, Trace::None);
Expand Down
4 changes: 2 additions & 2 deletions drv/cosmo-seq-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ task_slot!(PACKRAT, packrat);

#[derive(Copy, Clone, PartialEq, Count)]
enum Trace {
#[count(skip)]
None,
FpgaInit,
StartFailed(#[count(children)] SeqError),
ContinueBitstreamLoad(usize),
Expand Down Expand Up @@ -78,8 +80,6 @@ enum Trace {
sp5r3: bool,
sp5r4: bool,
},
#[count(skip)]
None,
}
counted_ringbuf!(Trace, 128, Trace::None);

Expand Down
4 changes: 2 additions & 2 deletions drv/gimlet-seq-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ enum I2cTxn {

#[derive(Copy, Clone, PartialEq, Count)]
enum Trace {
#[count(skip)]
None,
Ice40Rails(bool, bool),
IdentValid(#[count(children)] bool),
ChecksumValid(#[count(children)] bool),
Expand Down Expand Up @@ -150,8 +152,6 @@ enum Trace {
retries_remaining: u8,
},
StartFailed(#[count(children)] SeqError),
#[count(skip)]
None,
}

counted_ringbuf!(Trace, 128, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion drv/gimlet-seq-server/src/vcore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pub struct VCore {

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
Initializing,
Initialized,
LimitLoaded,
Expand All @@ -49,7 +50,6 @@ enum Trace {
Fault,
Reading { timestamp: u64, volts: units::Volts },
Error(ResponseCode),
None,
}

ringbuf!(Trace, 120, Trace::None);
Expand Down
6 changes: 3 additions & 3 deletions drv/grapefruit-seq-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ task_slot!(LOADER, spartan7_loader);

#[derive(Copy, Clone, PartialEq, Count)]
enum Trace {
MacsAlreadySet(MacAddressBlock),
IdentityAlreadySet(VpdIdentity),

#[count(skip)]
None,

MacsAlreadySet(MacAddressBlock),
IdentityAlreadySet(VpdIdentity),
}

counted_ringbuf!(Trace, 128, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion drv/i2c-devices/src/adm1272.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ impl core::fmt::Display for Adm1272 {

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
Coefficients(pmbus::Coefficients),
Config(adm1272::PMON_CONFIG::CommandData),
WriteConfig(adm1272::PMON_CONFIG::CommandData),
None,
}

ringbuf!(Trace, 8, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion drv/i2c-devices/src/ds2482.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ pub enum Error {

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
Read(Register, u8),
ReadError(Register, ResponseCode),
Command(Command),
CommandError(Command, ResponseCode),
None,
}

ringbuf!(Trace, 196, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion drv/i2c-devices/src/emc2305.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ fn write_reg16(

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
ZeroTach(Fan),
TachOverflow(u32),
BadFanCount(u8),
None,
}

ringbuf!(Trace, 6, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion drv/i2c-devices/src/lm5066.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ impl core::fmt::Display for Lm5066 {

#[derive(Copy, Clone, PartialEq)]
pub enum Trace {
None,
CurrentCoefficients(pmbus::Coefficients),
PowerCoefficients(pmbus::Coefficients),
DeviceSetup(lm5066::DEVICE_SETUP::CommandData),
None,
}

ringbuf!(Trace, 8, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion drv/i2c-devices/src/lm5066i.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ pub use crate::lm5066::{CurrentLimitStrap, Error};

#[derive(Copy, Clone, PartialEq)]
pub(crate) enum Trace {
None,
CurrentCoefficients(pmbus::Coefficients),
PowerCoefficients(pmbus::Coefficients),
DeviceSetup(lm5066i::DEVICE_SETUP::CommandData),
None,
}

pub struct Lm5066I {
Expand Down
2 changes: 1 addition & 1 deletion drv/i2c-devices/src/max31790.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ fn write_reg16(

#[derive(Copy, Clone, PartialEq)]
enum Trace {
ZeroTach(Fan),
None,
ZeroTach(Fan),
}

ringbuf!(Trace, 6, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion drv/lpc55-spi-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ task_slot!(GPIO, gpio_driver);

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
Irq,
Tx(u8),
Rx(u8),
None,
}

ringbuf!(Trace, 64, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion drv/lpc55-swd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ use zerocopy::IntoBytes;

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
Idcode(u32),
Idr(u32),
MemVal(u32),
ReadCmd,
WriteCmd,
None,
AckErr(Ack),
DongleDetected,
Dhcsr(Dhcsr),
Expand Down
2 changes: 1 addition & 1 deletion drv/oxide-vpd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ struct EepromReader<'a> {

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
EepromError(drv_i2c_devices::at24csw080::Error),
Error(VpdError),
None,
}

ringbuf!(Trace, 4, Trace::None);
Expand Down
5 changes: 2 additions & 3 deletions drv/spartan7-loader/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,14 @@ pub fn claim_spi(_sys: &sys_api::Sys) -> drv_spi_api::Spi {

#[derive(Copy, Clone, PartialEq, Count)]
enum Trace {
#[count(skip)]
None,
FpgaInit,
FpgaInitFailed(#[count(children)] Spartan7Error),
StartFailed(#[count(children)] LoaderError),
ContinueBitstreamLoad(usize),
WaitForDone,
Programmed,

#[count(skip)]
None,
}

#[derive(Copy, Clone, PartialEq, Count)]
Expand Down
4 changes: 2 additions & 2 deletions drv/stm32h7-spi-server-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ pub struct SpiServerCore {

#[derive(Copy, Clone, PartialEq, counters::Count)]
enum Trace {
#[count(skip)]
None,
Start(#[count(children)] SpiOperation, (u16, u16)),
Tx(u8),
Rx(u8),
WaitISR(u32),
#[count(skip)]
None,
}

counted_ringbuf!(Trace, 64, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion drv/stm32h7-update-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ extern "C" {

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
EraseStart,
EraseEnd,
WriteStart,
WriteEnd,
FinishStart,
FinishEnd,
WriteBlock(usize),
None,
}

enum UpdateState {
Expand Down
2 changes: 1 addition & 1 deletion drv/stm32xx-i2c-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ fn configure_mux(

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
SegmentOnError((Mux, Segment)),
Error(u8, ResponseCodeU8),
MuxError(ResponseCodeU8),
Expand All @@ -237,7 +238,6 @@ enum Trace {
SegmentFailed(ResponseCodeU8),
ConfigureFailed(ResponseCodeU8),
Wiggles(u8),
None,
}

ringbuf!(Trace, 160, Trace::None);
Expand Down
4 changes: 2 additions & 2 deletions drv/stm32xx-i2c/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ enum Register {

#[derive(Copy, Clone, Eq, PartialEq, counters::Count)]
enum Trace {
#[count(skip)]
None,
Wait(Register, u32),
Write(Register, u32),
WriteWait(Register, u32),
Expand Down Expand Up @@ -205,8 +207,6 @@ enum Trace {
enabled: bool,
posted: bool,
},
#[count(skip)]
None,
}

counted_ringbuf!(Trace, 48, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion drv/stm32xx-i2c/src/max7358.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ bitfield! {

#[derive(Copy, Clone, Eq, PartialEq)]
enum Trace {
None,
Read(Register, u8),
Write(Register, u8),
None,
}

ringbuf!(Trace, 32, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion task/attest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ use build::{ALIAS_DATA, CERT_DATA, PERMIT_LOG_RESET};

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
Cert,
CertChainLen(u32),
CertLen(usize),
Expand All @@ -58,7 +59,6 @@ enum Trace {
ClientError(ClientError),
StartAttest,
FinishAttest,
None,
}

ringbuf!(Trace, 16, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion task/dump-agent/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ struct ServerImpl {
#[cfg(not(feature = "no-rot"))]
#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
SpRotDump,
SpRotDumpResult(Result<(), DumpAgentError>),
None,
}

#[cfg(not(feature = "no-rot"))]
Expand Down
2 changes: 1 addition & 1 deletion task/dumper/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use zerocopy::FromBytes;

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
DumpInitiated(u32),
SetupFailed(SpCtrlError),
DumpHeader([u8; 4]),
Expand All @@ -33,7 +34,6 @@ enum Trace {
ReinitFailed,
ReinitSucceededButResumeFailed,
ReinitResumed,
None,
}

task_slot!(SP_CTRL, swd);
Expand Down
2 changes: 1 addition & 1 deletion task/gimlet-spd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ const LTC4306_ADDRESS: u8 = 0b1001_010;

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
Ready,
Initiate(u8, bool),
Rx(u8, u8),
Tx(u8, Option<u8>),
MemInitiate(u8),
MemSetOffset(usize, u8),
MuxState(ltc4306::State, ltc4306::State),
None,
}

ringbuf!(Trace, 16, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion task/hiffy/src/lpc55.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ task_slot!(SP_CTRL, swd);

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
Execute((usize, hif::Op)),
Failure(Failure),
Success,
None,
}

ringbuf!(Trace, 64, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion task/hiffy/src/stm32h7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ task_slot!(SYS, sys);

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
Execute((usize, Op)),
Failure(Failure),
#[cfg(feature = "gpio")]
Expand All @@ -42,7 +43,6 @@ enum Trace {
#[cfg(feature = "gpio")]
GpioInput(drv_stm32xx_sys_api::Port),
Success,
None,
}

ringbuf!(Trace, 64, Trace::None);
Expand Down
2 changes: 1 addition & 1 deletion task/hiffy/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ pub(crate) fn run_a_test(

#[derive(Copy, Clone, PartialEq)]
enum Trace {
None,
Execute((usize, hif::Op)),
Failure(Failure),
Success,
RunTest(u32),
None,
}

ringbuf!(Trace, 64, Trace::None);
Expand Down
Loading