Want abstraction over USDT/SDT split in probes
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- networking
Hướng nghiên cứu
Start by surveying the Port::*_probe methods and their repeated cfg_if! branches for SDT, USDT, and no-op behavior. Compare the argument-conversion paths and determine the intended macro or abstraction boundary. Done means current and future DTrace probes can use the shared abstraction without duplicating the conditional probe setup.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Many of the DTrace probes we have in OPTE are structured such that they automatically switch between USDT and SDT probes depending on whether the crate is compiled for userland (cargo test) or as part of the kernel module (xde):
impl Port {
fn xyz_probe(&self, dir: Direction, pkt: &Packet<Parsed>, msg: String) {
cfg_if::cfg_if! {
if #[cfg(all(not(feature = "std"), not(test)))] {
/* SDT-specific arg conversion: String->CString, ... */
unsafe {
__dtrace_probe_xyz(
/* ... pointers to args ... */
);
}
} else if #[cfg(feature = "usdt")] {
/* USDT-specific arg conversion */
crate::opte_provider::xyz!(
|| (/* ... Rust-friendly args (references, owned types) ... */)
);
} else {
/* feature-flag-driven no-op */
let (..) = (dir, pkt, msg);
}
}
}
}
Many of the Port::*_probe methods have a structure more or less in line with this, which leads to a lot of duplication and noise. We should define a macro or similar abstraction to simplify the implementation of {current, future} DTrace probes we choose to insert.
- Ngôn ngữ chính
- Rust
- Star
- 82
- Fork
- 16
- Merge trung bình
- 3 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của oxidecomputer/opte
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
oxidecomputer/opte#1125 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`PortBuilder::add_layer` doesn't need a mutexCó thể đã có người làm @FelixMcFelix đã nhận 54 ngày trước. Đang mởcleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
oxidecomputer/opte#1061 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
oxidecomputer/opte#1052 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
oxidecomputer/opte#341 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`Layer` creation should not unwrap `KStatNamed`Có thể đã có người làm @FelixMcFelix đã nhận 54 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 40/100
oxidecomputer/opte#1126 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của oxidecomputer/opte
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
qingjian-team/qingjian#1181 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug P2: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
leepokai/Codync#618 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] StreamLifecycleConfig clamps post-TTFT stream timeouts to remaining admission budgetCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
lbjlaq/Antigravity-Manager#4063 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
solutionscay/skiff#297 ·
Maintainer thường phản hồi trong vòng 1 ngày