perf trace/scripting: Add support for script args