Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1653126

[PATCH 4/5] perf-script-python.txt: Fix wrong code snippets

From SeongJae Park <sj38.park@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 4/5] perf-script-python.txt: Fix wrong code snippets
Date 2017-05-30 13:20 +0200
Message-ID <tMNlU-6D9-21@gated-at.bofh.it> (permalink)
References <tMNlT-6D9-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This commit fixes wrong code snippets for trace_begin() and trace_end()
function example definition.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
 tools/perf/Documentation/perf-script-python.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/Documentation/perf-script-python.txt b/tools/perf/Documentation/perf-script-python.txt
index 44e51351536f..f723ce41268c 100644
--- a/tools/perf/Documentation/perf-script-python.txt
+++ b/tools/perf/Documentation/perf-script-python.txt
@@ -530,7 +530,7 @@ can implement a set of optional functions:
 gives scripts a chance to do setup tasks:
 
 ----
-def trace_begin:
+def trace_begin():
     pass
 ----
 
@@ -539,7 +539,7 @@ def trace_begin:
  as display results:
 
 ----
-def trace_end:
+def trace_end():
     pass
 ----
 
-- 
2.13.0

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 4/5] perf-script-python.txt: Fix wrong code snippets SeongJae Park <sj38.park@gmail.com> - 2017-05-30 13:20 +0200

csiph-web