diff options
author | SeongJae Park <sj38.park@gmail.com> | 2017-05-30 07:18:26 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-07 19:27:26 -0400 |
commit | 26ddb8722df865aa67fbe459107d2f3f8e5c6829 (patch) | |
tree | 4769b32b8ca894060cdcb24534d1e63295071414 /tools/perf | |
parent | 34d4453dac257be53c21abf2f713c992fb692b5c (diff) |
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: SeongJae 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: cff68e582237 ("perf/scripts: Add perf-trace-python Documentation")
Link: http://lkml.kernel.org/r/20170530111827.21732-5-sj38.park@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/Documentation/perf-script-python.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/Documentation/perf-script-python.txt b/tools/perf/Documentation/perf-script-python.txt index 087b87c956ba..bad6e93cceff 100644 --- a/tools/perf/Documentation/perf-script-python.txt +++ b/tools/perf/Documentation/perf-script-python.txt | |||
@@ -532,7 +532,7 @@ can implement a set of optional functions: | |||
532 | gives scripts a chance to do setup tasks: | 532 | gives scripts a chance to do setup tasks: |
533 | 533 | ||
534 | ---- | 534 | ---- |
535 | def trace_begin: | 535 | def trace_begin(): |
536 | pass | 536 | pass |
537 | ---- | 537 | ---- |
538 | 538 | ||
@@ -541,7 +541,7 @@ def trace_begin: | |||
541 | as display results: | 541 | as display results: |
542 | 542 | ||
543 | ---- | 543 | ---- |
544 | def trace_end: | 544 | def trace_end(): |
545 | pass | 545 | pass |
546 | ---- | 546 | ---- |
547 | 547 | ||