diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2013-10-18 08:29:12 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-10-21 10:19:43 -0400 |
commit | c83fa7f2549cb60bc4d429de31096546f659ce6d (patch) | |
tree | fce39c10a8791ca660c16a9f3613e03bd00263d8 /tools/perf/util | |
parent | 2100f778d44b9c25bd13d38c24a999e2caf1ae3d (diff) |
perf evlist: Fix perf_evlist__mmap comments
Put the comments into the correct kernel-doc format and correct
reference to perf_evlist__read_on_cpu() which should be
perf_evlist__mmap_read().
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1382099356-4918-16-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/evlist.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 07ba0a43afd2..acef94a5ff9e 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c | |||
@@ -738,20 +738,17 @@ int perf_evlist__parse_mmap_pages(const struct option *opt, const char *str, | |||
738 | return 0; | 738 | return 0; |
739 | } | 739 | } |
740 | 740 | ||
741 | /** perf_evlist__mmap - Create per cpu maps to receive events | 741 | /** |
742 | * | 742 | * perf_evlist__mmap - Create mmaps to receive events. |
743 | * @evlist - list of events | 743 | * @evlist: list of events |
744 | * @pages - map length in pages | 744 | * @pages: map length in pages |
745 | * @overwrite - overwrite older events? | 745 | * @overwrite: overwrite older events? |
746 | * | ||
747 | * If overwrite is false the user needs to signal event consuption using: | ||
748 | * | ||
749 | * struct perf_mmap *m = &evlist->mmap[cpu]; | ||
750 | * unsigned int head = perf_mmap__read_head(m); | ||
751 | * | 746 | * |
752 | * perf_mmap__write_tail(m, head) | 747 | * If @overwrite is %false the user needs to signal event consumption using |
748 | * perf_mmap__write_tail(). Using perf_evlist__mmap_read() does this | ||
749 | * automatically. | ||
753 | * | 750 | * |
754 | * Using perf_evlist__read_on_cpu does this automatically. | 751 | * Return: %0 on success, negative error code otherwise. |
755 | */ | 752 | */ |
756 | int perf_evlist__mmap(struct perf_evlist *evlist, unsigned int pages, | 753 | int perf_evlist__mmap(struct perf_evlist *evlist, unsigned int pages, |
757 | bool overwrite) | 754 | bool overwrite) |