Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
241b245d
Commit
241b245d
authored
Oct 18, 2016
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always use double quotes for SystemTap string literals (closes #28472)
Patch by Roman Podoliaka.
parent
4a7ebaf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Doc/howto/instrumentation.rst
Doc/howto/instrumentation.rst
+5
-5
No files found.
Doc/howto/instrumentation.rst
View file @
241b245d
...
...
@@ -210,7 +210,7 @@ hierarchy of a Python script:
.. code-block:: c
probe process(
'python'
).mark("function__entry") {
probe process(
"python"
).mark("function__entry") {
filename = user_string($arg1);
funcname = user_string($arg2);
lineno = $arg3;
...
...
@@ -219,7 +219,7 @@ hierarchy of a Python script:
thread_indent(1), funcname, filename, lineno);
}
probe process(
'python'
).mark("function__return") {
probe process(
"python"
).mark("function__return") {
filename = user_string($arg1);
funcname = user_string($arg2);
lineno = $arg3;
...
...
@@ -234,7 +234,7 @@ It can be invoked like this:
$ stap \
show-call-hierarchy.stp \
-c
./python test.py
-c
"./python test.py"
The output looks like this::
...
...
@@ -259,11 +259,11 @@ For a `--enable-shared` build of CPython, the markers are contained within the
libpython shared library, and the probe's dotted path needs to reflect this. For
example, this line from the above example::
probe process(
'python'
).mark("function__entry") {
probe process(
"python"
).mark("function__entry") {
should instead read::
probe process(
'python'
).library("libpython3.6dm.so.1.0").mark("function__entry") {
probe process(
"python"
).library("libpython3.6dm.so.1.0").mark("function__entry") {
(assuming a debug build of CPython 3.6)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment