Date: Tue, 15 Aug 2017 20:17:03 +0300 From: Anatoly <anatoly@kazanfieldhockey.ru> To: freebsd-dtrace@freebsd.org Subject: how to trace linux_open, linux_stat Message-ID: <20170815201703.6e3052e5@asd2>
next in thread | raw e-mail | index | archive | help
Hello, I'm new to dtrace. I'm trying to run propiertary linux
application "1C thin client" (i386) using emulators/linux-c6 under
FreeBSD 11.1 amd64. Application starts, then stops shortly with error
message box and same error in log file:
9db1fa37-b455-4f3f-b8dd-7de0ea7d6da3: File shared access error
'v8stg://c:/1/FileStorage': ./src/storage.cpp(5013)
Thats why I put my hands on dtrace and trying to find out what this app
want to do. I'm not experienced in such a things, so I just take a
look at output of dtrace -l, and noted that there is linux_open and
linux_stat. Then I tried:
dtrace -n '::linux_open:entry { printf("%s %s", execname,
copyinstr(arg0)); }'
Thig gives output like:
dtrace: error on enabled probe ID 1 (ID 51007:
fbt:linux:linux_open:entry): invalid address (0xfffff80061022940) in
action #2 at DIF offset 12
How can I print out arg0 here? With just (non-linux) open:entry it
works.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170815201703.6e3052e5>
