Message278944
There are a couple of errors in SystemTap examples from "Instrumenting CPython with DTrace and SystemTap" page (https://docs.python.org/dev/howto/instrumentation.html):
1) in SystemTap double quotes are used to denote string literals. As is examples fail with:
parse error: expected literal string or number
saw: operator ''' at show_call.stp:1:15
source: probe process('python').mark("function__entry") {
2) stap -c option expects a command as a single string argument, not as a list of strings. As is the following example:
$ stap \
show-call-hierarchy.stp \
-c ./python test.py
will not run a test.py script, but instead ./python without any args, thus it will print a
prompt (i.e. >>>) and wait for user input. |
|
Date |
User |
Action |
Args |
2016-10-18 22:14:47 | rpodolyaka | set | recipients:
+ rpodolyaka, docs@python |
2016-10-18 22:14:47 | rpodolyaka | set | messageid: <1476828887.13.0.166885706979.issue28472@psf.upfronthosting.co.za> |
2016-10-18 22:14:47 | rpodolyaka | link | issue28472 messages |
2016-10-18 22:14:46 | rpodolyaka | create | |
|