This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rpodolyaka
Recipients docs@python, rpodolyaka
Date 2016-10-18.22:14:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476828887.13.0.166885706979.issue28472@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-10-18 22:14:47rpodolyakasetrecipients: + rpodolyaka, docs@python
2016-10-18 22:14:47rpodolyakasetmessageid: <1476828887.13.0.166885706979.issue28472@psf.upfronthosting.co.za>
2016-10-18 22:14:47rpodolyakalinkissue28472 messages
2016-10-18 22:14:46rpodolyakacreate