提交 26ddb872 编写于 作者: S SeongJae Park 提交者: Arnaldo Carvalho de Melo

perf script python: Fix wrong code snippets in documentation

This commit fixes wrong code snippets for trace_begin() and trace_end()
function example definition.
Signed-off-by: NSeongJae Park <sj38.park@gmail.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tom Zanussi <tzanussi@gmail.com>
Fixes: cff68e58 ("perf/scripts: Add perf-trace-python Documentation")
Link: http://lkml.kernel.org/r/20170530111827.21732-5-sj38.park@gmail.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 34d4453d
...@@ -532,7 +532,7 @@ can implement a set of optional functions: ...@@ -532,7 +532,7 @@ can implement a set of optional functions:
gives scripts a chance to do setup tasks: gives scripts a chance to do setup tasks:
---- ----
def trace_begin: def trace_begin():
pass pass
---- ----
...@@ -541,7 +541,7 @@ def trace_begin: ...@@ -541,7 +541,7 @@ def trace_begin:
as display results: as display results:
---- ----
def trace_end: def trace_end():
pass pass
---- ----
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册