我找到了这个带有 systemtap 脚本的repo ,让我可以在我的 dvorak 布局上使用 QWERTY ctrl-shortcuts。不幸的是,我无法让它工作,但我认为它与脚本本身无关。我正在运行 Pop OS,我认为这是因为我需要的带有所有调试符号的 linux-image 不存在。
脚本说我需要安装linux-headers-$(uname -r) linux-image-$(uname -r)-dbg
对我来说,这变成linux-headers-5.11.0-7620-generic linux-image-5.11.0-7620-generic-dbg
linux-headers-5.11.0-7620-generic
存在,我可以使用 apt-get 下载它。
linux-image-5.11.0-7620-generic-dbg
无法使用 apt-get 安装。我可以安装
linux-image-5.11.0-7620-generic
,但这不是一回事。我花时间在网上寻找它并为 apt-get 添加不同的键,但我无法找到任何具有该名称的东西。如果问题是没有安装正确的 linux-image 包,我需要帮助指出我在哪里可以得到它的正确方向。
我尝试按照此处的说明进行操作,但我也对此进行了搜索,但无济于事。我尝试下载和安装linux-image-4.4.0-142-generic-dbgsym_4.4.0-142.168_amd64.ddeb
,但也没有用。
如果这不是问题,我已经提供了脚本的输出。任何帮助表示赞赏。
peyton@pop-os:~/scripts$ sudo stap -g -v dvorak-qwerty.stp
Pass 1: parsed user script and 477 library scripts using 116428virt/91336res/7612shr/83628data kb, in 140usr/30sys/168real ms.
semantic error: resolution failed in DWARF builder
semantic error: resolution failed in DWARF builder
semantic error: while resolving probe point: identifier 'module' at dvorak-qwerty.stp:152:7
source: probe module("evdev").function("evdev_events") {
^
semantic error: no match
semantic error: resolution failed in DWARF builder
Pass 2: analyzed script: 2 probes, 0 functions, 1 embed, 0 globals using 119016virt/94812res/8680shr/86216data kb, in 10usr/0sys/7real ms.
Pass 2: analysis failed. [man error::pass2]
Tip: /usr/share/doc/systemtap/README.Debian should help you get started.