Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: luainkernel/lunatik
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4c2d54c5a5fbc9201c2e15afda8e74789c320566
Choose a base ref
..
head repository: luainkernel/lunatik
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 329433bc43990c40338bf29be635692c5ff0bc3a
Choose a head ref
Showing with 4 additions and 3 deletions.
  1. +3 −2 examples/systrack.lua
  2. +1 −1 examples/systrack/probes.lua
5 changes: 3 additions & 2 deletions examples/systrack.lua
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
--

local lunatik = require("lunatik")
local runner = require("lunatik.runner")
local linux = require("linux")
local device = require("device")
local rcu = require("rcu")
@@ -14,7 +15,7 @@ local s = linux.stat
local driver = {name = "systrack", open = nop, release = nop, mode = s.IRUGO}

local systrack = rcu.table()
lunatik._ENV.systrack = systrack
lunatik._ENV.systrack = systrack

local toggle = true
function driver:read()
@@ -28,6 +29,6 @@ function driver:read()
return log
end

driver.probes = lunatik.runtime("systrack/probes", false)
runner.run("examples/systrack/probes", false)
device.new(driver)

2 changes: 1 addition & 1 deletion examples/systrack/probes.lua
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ end

local sizeofnumber = string.packsize("n")

for symbol, address in pairs(syscall) do
for symbol, address in pairs(syscall) do
systrack[symbol] = data.new(sizeofnumber)

local function handler()