oxidecomputer / oxidecomputer/opte

Moment raw/atomic timestamps should be represented as `AtomicI64`

Open Beginner friendly
#1,052 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
77
Forks
11
Avg merge
9d 20h
Merged PRs (30d)
8

Description

https://github.com/oxidecomputer/opte/blob/16ef8c60a15fa6b0afd02c5f23f742c20b818f97/lib/opte/src/ddi/time.rs#L96-L106

hrtime_t is equivalent to i64, so we should not be exporting the raw timestamp value as a u64 (or using it in flow entries as an AtomicU64, for that matter).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at lib/opte/src/ddi/time.rs lines 96-106 and trace the raw timestamp type into flow entries. Confirm the hrtime_t representation and update the exported value and flow-entry atomic type to match it, then check for remaining u64 or AtomicU64 uses in this timestamp path.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
85/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.