Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake/modules/driver.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ else()
# In case you want to test against another driver version (or branch, or commit) just pass the variable -
# ie., `cmake -DDRIVER_VERSION=dev ..`
if(NOT DRIVER_VERSION)
set(DRIVER_VERSION "8.1.0+driver")
set(DRIVER_CHECKSUM "SHA256=182e6787bf86249a846a3baeb4dcd31578b76d4a13efa16ce3f44d66b18a77a6")
set(DRIVER_VERSION "9.0.0+driver")
set(DRIVER_CHECKSUM "SHA256=ef563fe19f9cdbdfcf17cee3e83c79e8387b78a87e0593eb3e2787c9b8540113")
endif()

# cd /path/to/build && cmake /path/to/source
Expand Down
4 changes: 2 additions & 2 deletions cmake/modules/falcosecurity-libs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ else()
# In case you want to test against another falcosecurity/libs version (or branch, or commit) just pass the variable -
# ie., `cmake -DFALCOSECURITY_LIBS_VERSION=dev ..`
if(NOT FALCOSECURITY_LIBS_VERSION)
set(FALCOSECURITY_LIBS_VERSION "0.21.0")
set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=9e977001dd42586df42a5dc7e7a948c297124865a233402e44bdec68839d322a")
set(FALCOSECURITY_LIBS_VERSION "0.22.2")
set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=53cfb7062cac80623dec7496394739aabdfee8a774942f94be0990d81e3b2fbc")
endif()

# cd /path/to/build && cmake /path/to/source
Expand Down
12 changes: 12 additions & 0 deletions userspace/chisel/chisel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1647,6 +1647,12 @@ void sinsp_chisel::do_timeout(sinsp_evt* evt)
}
}

//
// Make the event available to the API
//
lua_pushlightuserdata(m_ls, evt);
lua_setglobal(m_ls, "sievt");

lua_getglobal(m_ls, "on_interval");

lua_pushnumber(m_ls, (double)(ts / 1000000000));
Expand Down Expand Up @@ -1679,6 +1685,12 @@ void sinsp_chisel::do_timeout(sinsp_evt* evt)
{
uint64_t t;

//
// Make the event available to the API
//
lua_pushlightuserdata(m_ls, evt);
lua_setglobal(m_ls, "sievt");

for(t = m_lua_last_interval_sample_time; t <= ts - interval; t += interval)
{
lua_getglobal(m_ls, "on_interval");
Expand Down
2 changes: 1 addition & 1 deletion userspace/sinspui/cursescomponents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const char* spy_text_renderer::process_event_spy(sinsp_evt* evt, int64_t* len)
return NULL;
}
ASSERT(parinfo->m_len == sizeof(int64_t));
*len = *(int64_t*)parinfo->m_val;
*len = *(int64_t*)parinfo->data();
if(*len <= 0)
{
return NULL;
Expand Down
4 changes: 2 additions & 2 deletions userspace/sysdig/sysdig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -847,13 +847,13 @@ captureinfo do_inspect(sinsp *inspector, sinsp_cycledumper *dumper,
if(etype == PPME_GENERIC_E)
{
const sinsp_evt_param *parinfo = ev->get_param(0);
uint16_t id = *(int16_t *)parinfo->m_val;
uint16_t id = *(int16_t *)parinfo->data();
summary_table[PPM_EVENT_MAX + id * 2].m_ncalls++;
}
else if(etype == PPME_GENERIC_X)
{
const sinsp_evt_param *parinfo = ev->get_param(0);
uint16_t id = *(int16_t *)parinfo->m_val;
uint16_t id = *(int16_t *)parinfo->data();
summary_table[PPM_EVENT_MAX + id * 2 + 1].m_ncalls++;
}
else
Expand Down
4 changes: 2 additions & 2 deletions userspace/sysdig/utils/sinsp_syslog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ void sinsp_syslog_decoder::parse(sinsp_evt* evt) {
}

if(parinfo) {
const char* data = parinfo->m_val;
uint32_t datalen = parinfo->m_len;
const char* data = parinfo->data();
uint32_t datalen = parinfo->len();
parse_data(data, datalen);
}
}