I run command
sudo stap -ve 'probe begin { log("hello world") exit() }'
and the output is
parse error: unexpected end-of-file
saw: keyword at <input>:1:1
source: probe
^
1 parse error.
Pass 1: parsed user script and 490 library scripts using 139732virt/112040res/5468shr/107060data kb, in 400usr/30sys/434real ms.
Pass 1: parse failed. [man error::pass1]
stap version
stap -V
Systemtap translator/driver (version 4.8/0.165, non-git sources)
Copyright (C) 2005-2022 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.32 ... 6.1.0-rc3
enabled features: PYTHON2 PYTHON3 NLS
I don't know why this happen, I think it should print hello world. is there anyone can help me, thanks a lot.