Skip to content

Commit 07430c3

Browse files
authored
Luajit: work with any binary that starts with the string "luajit" (#234)
For example, the standalone "luajit" binary in the openresty docker containers is a symlink to something called `luajit-2.1.ROLLING`
1 parent e09be72 commit 07430c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

interpreter/luajit/luajit.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ func (l *luajitInstance) Detach(ebpf interpreter.EbpfHandler, pid libpf.PID) err
129129
func Loader(ebpf interpreter.EbpfHandler, info *interpreter.LoaderInfo) (interpreter.Data, error) {
130130
base := path.Base(info.FileName())
131131
if !strings.HasPrefix(base, "libluajit-5.1.so") &&
132-
base != "luajit" && base != "nginx" && base != "openresty" {
132+
!strings.HasPrefix(base, "luajit") &&
133+
base != "nginx" && base != "openresty" {
133134
return nil, nil
134135
}
135136

0 commit comments

Comments
 (0)