Files
nannyagent/scripts/debug_trace_script.sh
Harshavardhan Musanalli 794111cb44 somewhat working ebpf bpftrace
2025-11-08 20:42:07 +01:00

20 lines
603 B
Bash
Executable File

#!/bin/bash
# Test the current script generation
echo "Testing tracepoint script generation..."
# Simulate what the failing test does
echo "Target: syscalls:sys_enter_openat"
echo "ProbeType: t"
echo ""
echo "Generated bpftrace script would be:"
echo "tracepoint:syscalls:sys_enter_openat {"
echo " printf(\"TRACE|%d|%d|%d|%s|syscalls:sys_enter_openat|file access\\n\", nsecs, pid, tid, comm, arg2@user);"
echo "}"
echo ""
echo "This is INVALID - should be:"
echo "tracepoint:syscalls:sys_enter_openat {"
echo " printf(\"TRACE|%d|%d|%d|%s|openat|file access\\n\", nsecs, pid, tid, comm);"
echo "}"