On 2016/7/13 22:06, Jiri Olsa wrote:
On Tue, Jul 12, 2016 at 10:00:03AM +, Wang Nan wrote:
SNIP
-union perf_event *perf_evlist__mmap_read_forward(struct perf_evlist *evlist,
int idx)
+union perf_event *perf_mmap__read_forward(struct perf_mmap *md, bool overwrite)
{
- struct
On 2016/7/13 22:06, Jiri Olsa wrote:
On Tue, Jul 12, 2016 at 10:00:03AM +, Wang Nan wrote:
SNIP
-union perf_event *perf_evlist__mmap_read_forward(struct perf_evlist *evlist,
int idx)
+union perf_event *perf_mmap__read_forward(struct perf_mmap *md, bool overwrite)
{
- struct
On Tue, Jul 12, 2016 at 10:00:03AM +, Wang Nan wrote:
SNIP
> -union perf_event *perf_evlist__mmap_read_forward(struct perf_evlist *evlist,
> int idx)
> +union perf_event *perf_mmap__read_forward(struct perf_mmap *md, bool
> overwrite)
> {
> - struct perf_mmap *md = >mmap[idx];
>
On Tue, Jul 12, 2016 at 10:00:03AM +, Wang Nan wrote:
SNIP
> -union perf_event *perf_evlist__mmap_read_forward(struct perf_evlist *evlist,
> int idx)
> +union perf_event *perf_mmap__read_forward(struct perf_mmap *md, bool
> overwrite)
> {
> - struct perf_mmap *md = >mmap[idx];
>
Currently, evlist mmap related helpers and APIs accept evlist and idx,
and dereference 'struct perf_mmap' by evlist->mmap[idx]. This is
unnecessary, and force a evlist contain only one mmap array.
Following commits are going to introduce multiple mmap array to evlist.
This patch refators those
Currently, evlist mmap related helpers and APIs accept evlist and idx,
and dereference 'struct perf_mmap' by evlist->mmap[idx]. This is
unnecessary, and force a evlist contain only one mmap array.
Following commits are going to introduce multiple mmap array to evlist.
This patch refators those
6 matches
Mail list logo