DTrace probes for python 2.7.7
Sevan / Venture37
venture37 at gmail.com
Fri Jul 18 17:07:53 UTC 2014
On 17 July 2014 19:00, Sevan / Venture37 <venture37 at gmail.com> wrote:
> On 16 July 2014 05:14, Mark Johnston <markj at freebsd.org> wrote:
>> I've since discovered that the correct way to solve this problem is by
>> adding "-xnolibs" to the dtrace -G flags.
>
> Hi Mark,
> I've amended the line in the Makefile.pre.in & trying to rebuild now.
> It looks like the needs a litte more work as upon install, files are
> not copied into place at the moment
> Did your build pass tests pass after you built? ala
> https://www.jcea.es/artic/python_dtrace.htm
>
> Sevan
Ignoring ports & using the stock python 2.7.8 source & patch, with
Makefile.pre.in modified to add -xnolibs e.g.
"-C -G -xnolibs -s Include/pydtrace.d \"
Include/pydtrace_offsets.sh OTHER Python/ceval.o
Include/pydtrace_offsets > Include/pydtrace_offsets.h
if test "/usr/sbin/dtrace" != "" ; then touch -r Python/ceval.o
Python/ceval.o.ts_dtrace ; touch -r Modules/gcmodule.o
Modules/gcmodule.o.ts_dtrace ; touch -r Objects/classobject.o
Objects/classobject.o.ts_dtrace ; touch -r Objects/typeobject.o
Objects/typeobject.o.ts_dtrace ; /usr/sbin/dtrace -o
Python/pydtrace.o -DPYDTRACE_STACK_HELPER -I. -IInclude -I./Include
-64 -C -G -xnolibs -s Include/pydtrace.d Python/ceval.o
Modules/gcmodule.o Objects/classobject.o Objects/typeobject.o ;
touch -r Python/ceval.o.ts_dtrace Python/ceval.o ; touch -r
Modules/gcmodule.o.ts_dtrace Modules/gcmodule.o ; touch -r
Objects/classobject.o.ts_dtrace Objects/classobject.o ; touch -r
Objects/typeobject.o.ts_dtrace Objects/typeobject.o ; rm
Python/ceval.o.ts_dtrace ; rm Modules/gcmodule.o.ts_dtrace ; rm
Objects/classobject.o.ts_dtrace ; rm Objects/typeobject.o.ts_dtrace ;
else touch Python/pydtrace.o ; fi;
dtrace: failed to compile script Include/pydtrace.d: line 27: useless
declaration
*** Error code 1
More information about the freebsd-dtrace
mailing list