New submission from Roman Podoliaka:

There are a couple of errors in SystemTap examples from "Instrumenting CPython 
with DTrace and SystemTap" page 

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

will not run a script, but instead ./python without any args, thus it 
will print a
prompt (i.e. >>>) and wait for user input.

assignee: docs@python
components: Documentation
files: patch.diff
keywords: patch
messages: 278944
nosy: docs@python, rpodolyaka
priority: normal
severity: normal
status: open
title: SystemTap usage examples in docs are incorrect
versions: Python 3.6
Added file:

Python tracker <>
Python-bugs-list mailing list

Reply via email to