Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mawk: line 19: syntax error at or near , #74

Open
jibanes opened this issue Aug 22, 2018 · 3 comments
Open

mawk: line 19: syntax error at or near , #74

jibanes opened this issue Aug 22, 2018 · 3 comments

Comments

@jibanes
Copy link

jibanes commented Aug 22, 2018

jibanes@wopr:~$ sudo ./opensnoop -d 1 omfg
Tracing open()s for filenames containing "omfg" for 1 seconds (buffered)...
COMM PID FD FILE
mawk: line 19: syntax error at or near ,

Ending tracing...

@jibanes
Copy link
Author

jibanes commented Aug 22, 2018

seems to work fine if using gawk, not mawk.

@jamagin
Copy link

jamagin commented Apr 2, 2019

I'm experiencing this too, it seems to be caused by 6f53237
mawk only accepts a two-argument from of match()

@remort
Copy link

remort commented Nov 12, 2020

Still doesn't work either with mawk or awk:
Using of -d seems to enable mawk in bash script.

opensnoop-perf -d 10 firefox
Tracing open()s for filenames containing "firefox" for 10 seconds (buffered)...
COMM             PID      FD FILE
mawk: line 19: syntax error at or near ,
^C
Ending tracing...

# opensnoop-perf firefox
Tracing open()s for filenames containing "firefox". Ctrl-C to end.
COMM             PID      FD FILE
awk: line 19: syntax error at or near ,

Ending tracing...

Ubuntu 2020, perf-tools-unstable/focal,focal,now 1.0.1~20200130+git49b8cdf-1ubuntu1 all [installed],
Kernel: 5.4.0-52-generic

UPDATE: installing gawk via apt and hardcoding use=gawk in opensnoop-perf bash script seems to solve issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants