#!/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 "}"