Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1439530
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jiri Olsa <jolsa@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist |
| Date | Fri, 08 Jul 2016 16:50:01 +0200 |
| Message-ID | <rSFgl-64x-5@gated-at.bofh.it> (permalink) |
| References | <rSacx-2D8-3@gated-at.bofh.it> <rSacy-2D8-27@gated-at.bofh.it> |
| X-Original-To | Wang Nan <wangnan0@huawei.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.6.1 (2016-04-27) |
| X-Scanned-By | MIMEDefang 2.68 on 10.5.11.24 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 08 Jul 2016 14:48:48 +0000 (UTC) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 35 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | acme@kernel.org, lizefan@huawei.com, linux-kernel@vger.kernel.org, pi3orama@163.com, Arnaldo Carvalho de Melo <acme@redhat.com>, Jiri Olsa <jolsa@kernel.org>, Masami Hiramatsu <mhiramat@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Nilay Vaish <nilayvaish@gmail.com>, He Kuang <hekuang@huawei.com> |
| X-Original-Date | Fri, 8 Jul 2016 16:48:45 +0200 |
| X-Original-Message-ID | <20160708144845.GF31763@krava> |
| X-Original-References | <1467869689-214015-1-git-send-email-wangnan0@huawei.com> <1467869689-214015-4-git-send-email-wangnan0@huawei.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1439530 |
Show key headers only | View raw
On Thu, Jul 07, 2016 at 05:34:44AM +0000, Wang Nan wrote:
SNIP
> ret = TEST_FAIL;
> - err = do_test(evlist, opts.mmap_pages, &sample_count,
> + err = do_test(evlist, aux_evlist, opts.mmap_pages,
> + &enter_sample_count, &exit_sample_count,
> &comm_count);
> if (err != TEST_OK)
> goto out_delete_evlist;
>
> - if ((sample_count != NR_ITERS) || (comm_count != NR_ITERS)) {
> - pr_err("Unexpected counter: sample_count=%d, comm_count=%d\n",
> - sample_count, comm_count);
> + if (enter_sample_count != exit_sample_count) {
> + pr_err("Unexpected counter: enter_sample_count=%d, exit_sample_count=%d\n",
> + enter_sample_count, exit_sample_count);
> + goto out_delete_evlist;
> + }
> +
> + if ((exit_sample_count != NR_ITERS) || (comm_count != NR_ITERS)) {
> + pr_err("Unexpected counter: exit_sample_count=%d, comm_count=%d\n",
> + exit_sample_count, comm_count);
> goto out_delete_evlist;
> }
>
> - err = do_test(evlist, 1, &sample_count, &comm_count);
> + err = do_test(evlist, aux_evlist, 1, &dummy, &dummy, &dummy);
why dont you test numbers for 1 page mmap? seems like the data would fit..
is the purpose just to check if we can map just 1 page?
thanks,
jirka
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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