Hide Forgot
Description of problem: The bcc-lua package is not available in RHEL8. This package is seemingly needed to run lua bpf scripts. Version-Release number of selected component (if applicable): lua-libs-5.3.4-10.el8.x86_64 bcc-debugsource-0.7.0-3.el8.x86_64 bcc-0.7.0-3.el8.x86_64 bcc-debuginfo-0.7.0-3.el8.x86_64 bcc-tools-0.7.0-3.el8.x86_64 python3-bcc-0.7.0-3.el8.x86_64 bcc-tools-debuginfo-0.7.0-3.el8.x86_64 pcp-pmda-bcc-4.2.0-1.el8.x86_64 lua-5.3.4-10.el8.x86_64 Steps to Reproduce: /usr/bin/lua: ============= [root@localhost tools]# cat vfs_write_lua #!/usr/bin/lua local bpf = require('bpf') [root@localhost tools]# ./vfs_write_lua /usr/bin/lua: ./vfs_write_lua:3: module 'bpf' not found: no field package.preload['bpf'] no file '/usr/share/lua/5.3/bpf.lua' no file '/usr/share/lua/5.3/bpf/init.lua' no file '/usr/lib64/lua/5.3/bpf.lua' no file '/usr/lib64/lua/5.3/bpf/init.lua' no file './bpf.lua' no file './bpf/init.lua' no file '/usr/lib64/lua/5.3/bpf.so' no file '/usr/lib64/lua/5.3/loadall.so' no file './bpf.so' stack traceback: [C]: in function 'require' ./vfs_write_lua:3: in main chunk [C]: in ? /usr/bin/env bcc-lua: ===================== [root@localhost tools]# ./vfs_write_lua.lua /usr/bin/env: ‘bcc-lua’: No such file or directory Actual results: Unable to run lua bpf script Expected results: Ability to run. Additional Info: Package is available in Fedora 28 bcc-lua.x86_64 : Standalone tool to run BCC tracers written in Lua
(In reply to John Pittman from comment #0) > Description of problem: > > The bcc-lua package is not available in RHEL8. This package is seemingly > needed to run lua bpf scripts. The bcc-lua is disabled on RHEL8 for the lack of luajit. > > Version-Release number of selected component (if applicable): > > lua-libs-5.3.4-10.el8.x86_64 > bcc-debugsource-0.7.0-3.el8.x86_64 > bcc-0.7.0-3.el8.x86_64 > bcc-debuginfo-0.7.0-3.el8.x86_64 > bcc-tools-0.7.0-3.el8.x86_64 > python3-bcc-0.7.0-3.el8.x86_64 > bcc-tools-debuginfo-0.7.0-3.el8.x86_64 > pcp-pmda-bcc-4.2.0-1.el8.x86_64 > lua-5.3.4-10.el8.x86_64 > > Steps to Reproduce: > > /usr/bin/lua: > ============= > [root@localhost tools]# cat vfs_write_lua Where does that script comes from? Is it part of bcc-tools package. If so that's a mistake. I don't see it in bcc-tools-0.7.0-5 though. > #!/usr/bin/lua > > local bpf = require('bpf') > > [root@localhost tools]# ./vfs_write_lua > /usr/bin/lua: ./vfs_write_lua:3: module 'bpf' not found: > no field package.preload['bpf'] > no file '/usr/share/lua/5.3/bpf.lua' > no file '/usr/share/lua/5.3/bpf/init.lua' > no file '/usr/lib64/lua/5.3/bpf.lua' > no file '/usr/lib64/lua/5.3/bpf/init.lua' > no file './bpf.lua' > no file './bpf/init.lua' > no file '/usr/lib64/lua/5.3/bpf.so' > no file '/usr/lib64/lua/5.3/loadall.so' > no file './bpf.so' > stack traceback: > [C]: in function 'require' > ./vfs_write_lua:3: in main chunk > [C]: in ? > > /usr/bin/env bcc-lua: > ===================== > [root@localhost tools]# ./vfs_write_lua.lua > /usr/bin/env: ‘bcc-lua’: No such file or directory > > Actual results: > > Unable to run lua bpf script > > Expected results: > > Ability to run. > > Additional Info: > > Package is available in Fedora 28 > > bcc-lua.x86_64 : Standalone tool to run BCC tracers written in Lua
Hi Jerome, thanks for looking. It's just a test script that I wrote. Writing a script for bcc in lua is a part of our RHEL8 readiness testing. If there is no plan for bcc-lua support to be in RHEL8, that's fine, just let me know and I will document that on the customer portal.
(In reply to John Pittman from comment #2) > Hi Jerome, thanks for looking. It's just a test script that I wrote. > Writing a script for bcc in lua is a part of our RHEL8 readiness testing. > If there is no plan for bcc-lua support to be in RHEL8, that's fine, just > let me know and I will document that on the customer portal. There is indeed no plan to support bcc-lua in RHEL8. Thanks, I'll close this bz then.