Analyzer collect-luajit-ffnames

Name

collect-luajit-ffnames - Collect LuaJIT ffnames

This analyzer extracts the names of FFI (Foreign Function Interface) functions registered in LuaJIT-based applications such as OpenResty and Kong. It captures the complete list of C functions accessible from Lua code through FFI bindings. The analyzer outputs tabular data showing available FFI functions, facilitating debugging of FFI-related issues and verification of library integrations.

Resource Category

Miscellaneous.

Application Type & Technical Stack

  • OpenResty
  • Kong
  • APISIX

Command Line Syntax

The analyzer can be invoked directly on the command-line via the orxray utility from the openresty-xray-cli software package.

Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).

# PID is the target process PID.
orxray analyzer run collect-luajit-ffnames -p PID

# trace a shell command directly
orxray analyzer run collect-luajit-ffnames -c SHELL_CMD

Tracing Multiple Processes

Not supported.

Output Formats

  • Tables
  • Plain Texts

Author

The OpenResty Inc. Team.

Copyright (C) by OpenResty Inc. All rights reserved.