Klapper Zhu
2008-Dec-04 19:57 UTC
[dtrace-discuss] ERROR: ctfmerge: Cannot open output file isp for r/w: No such fil
OK, I am trying to dtrace isp(4) module in freebsd 7.
each obj file is converted using:
ctfconvert -L VERSION isp_freebsd.o
and using "ctfdump isp_freebsd.o" I can see CTF info embedded in the
.o file
but in the linked kernel module, I found much less CTF info inside it.
I guess I should use "ctfmerge" to combine the CTF info from each obj
file into the final kernel module, so I did
ctfmerge -L VERSION -o isp.ko isp.o isp_library.o ...
And I got this error:
ERROR: ctfmerge: Cannot open output file isp.ko for r/w: No such file or
directory
In source code (/usr/src/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c), I
found that the outfile
must exist and read/writeable before "ctfmerge -L VERSION" cmd is
issued.
Does this make any sense ?
Also can anybody explain what ''s the meaning of all the options for
ctfconvert and ctfmerge ?
ctfconvert [-gis] -l label | -L labelenv [-o outfile] object_file
ctfmerge [-fgstv] -l label | -L labelenv -o outfile file ...
ctfmerge [-fgstv] -l label | -L labelenv -o outfile -d uniqfile
[-g] [-D uniqlabel] file ...
ctfmerge [-fgstv] -l label | -L labelenv -o outfile -w withfile file ...
ctfmerge [-g] -c srcfile destfile
Thanks.
--
This message posted from opensolaris.org
