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


Groups > linux.kernel > #1439538

Re: [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist

From Jiri Olsa <jolsa@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist
Date 2016-07-08 16:50 +0200
Message-ID <rSFgm-64x-27@gated-at.bofh.it> (permalink)
References <rSacx-2D8-3@gated-at.bofh.it> <rSacy-2D8-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jul 07, 2016 at 05:34:44AM +0000, Wang Nan wrote:

SNIP

>  }
> diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h
> index 99bcc02..d736cd3 100644
> --- a/tools/perf/util/evlist.h
> +++ b/tools/perf/util/evlist.h
> @@ -149,6 +149,14 @@ union perf_event *perf_evlist__mmap_read_backward(struct perf_evlist *evlist,
>  						  int idx);
>  void perf_evlist__mmap_read_catchup(struct perf_evlist *evlist, int idx);
>  
> +static inline void perf_evlist__mmap_read_catchup_all(struct perf_evlist *evlist)
> +{
> +	int i;
> +
> +	for (i = 0; i < evlist->nr_mmaps; i++)
> +		perf_evlist__mmap_read_catchup(evlist, i);
> +}

any reason for this to be inline and not
static within tests/backward-ring-buffer.c?

thanks,
jirka

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v14 0/8] perf tools: Support overwritable ring buffer Wang Nan <wangnan0@huawei.com> - 2016-07-07 07:40 +0200
  [PATCH v14 5/8] perf record: Read from overwritable ring buffer Wang Nan <wangnan0@huawei.com> - 2016-07-07 07:40 +0200
  [PATCH v14 7/8] perf tools: Don't warn about out of order event if write_backward is used Wang Nan <wangnan0@huawei.com> - 2016-07-07 07:40 +0200
  [PATCH v14 8/8] perf tools: Add --tail-synthesize option Wang Nan <wangnan0@huawei.com> - 2016-07-07 07:40 +0200
  [PATCH v14 2/8] perf evlist: Introduce aux evlist Wang Nan <wangnan0@huawei.com> - 2016-07-07 07:40 +0200
  [PATCH v14 1/8] perf tools: Drop redundant evsel->overwrite indicator Wang Nan <wangnan0@huawei.com> - 2016-07-07 07:40 +0200
  [PATCH v14 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events Wang Nan <wangnan0@huawei.com> - 2016-07-07 07:40 +0200
    Re: [PATCH v14 4/8] perf record: Introduce rec->overwrite_evlist for  overwritable events Jiri Olsa <jolsa@redhat.com> - 2016-07-08 16:50 +0200
    Re: [PATCH v14 4/8] perf record: Introduce rec->overwrite_evlist for  overwritable events Jiri Olsa <jolsa@redhat.com> - 2016-07-08 16:50 +0200
  [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist Wang Nan <wangnan0@huawei.com> - 2016-07-07 07:40 +0200
    Re: [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist Jiri Olsa <jolsa@redhat.com> - 2016-07-08 16:50 +0200
      Re: [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist "Wangnan (F)" <wangnan0@huawei.com> - 2016-07-11 05:30 +0200
    Re: [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist Jiri Olsa <jolsa@redhat.com> - 2016-07-08 16:50 +0200
    Re: [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist Jiri Olsa <jolsa@redhat.com> - 2016-07-08 16:50 +0200

csiph-web