Consider less aggressively mangled names in kernel code

未关闭
#979 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
rust

调研方向

从 lib/opte/src/engine/arp.rs 开始,尤其关注 gen_arp_reply,并复现 issue 中展示的 DTrace fbt probe。跟踪内核代码中的 Rust 符号如何变成 probe 名称,然后确定期望的结果是为该函数使用 mangling 程度更低的名称,还是扩大 xde 覆盖范围;当相关 probe 更容易识别且不丧失唯一性时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

I am still learning the space so apologies for the possibly quite naive request. Anyhow, I noticed that xde's function names are mangled in a rather unfriendly way. To wit, I wanted to DTrace gen_arp_reply and found a rather unpleasantly mangled fbt probe:

root@redacted:~# dtrace -n 'fbt::_ZN4opte6engine3arp13gen_arp_reply17h1b65024303de78e2E:entry { stack(); }'
dtrace: description 'fbt::_ZN4opte6engine3arp13gen_arp_reply17h1b65024303de78e2E:entry ' matched 1 probe
CPU     ID                    FUNCTION:NAME
 60   4275 _ZN4opte6engine3arp13gen_arp_reply17h1b65024303de78e2E:entry
              xde`_ZN75_$LT$oxide_vpc..engine..VpcNetwork$u20$as$u20$opte..engine..NetworkImpl$GT$10handle_pkt17heb8b76b14f6bae95E+0x1ae
              xde`xde_mc_tx+0x2b73
              mac`mac_ring_tx+0x50
              mac`mac_provider_tx+0x6d
              mac`mac_tx+0x28b
              viona`viona_tx+0x325
              viona`viona_worker_tx+0x80
              viona`viona_worker+0x223
              unix`thread_start+0xb
主要语言
Rust
星标
82
派生
16
平均合并
3 天 6 小时
30 天内合并 PR
11

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

oxidecomputer/opte 的其他 Issue

查看 oxidecomputer/opte 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。