public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Wangnan (F)" <wangnan0@huawei.com>
To: Jiri Olsa <jolsa@redhat.com>
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>
Subject: Re: [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist
Date: Mon, 11 Jul 2016 11:20:03 +0800	[thread overview]
Message-ID: <57831063.9020901@huawei.com> (raw)
In-Reply-To: <20160708144845.GF31763@krava>



On 2016/7/8 22:48, Jiri Olsa wrote:
> 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?

Data won't fit. 1 page map make sure the buffer is overwritten.

Thank you.

> thanks,
> jirka

  reply	other threads:[~2016-07-11  3:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-07  5:34 [PATCH v14 0/8] perf tools: Support overwritable ring buffer Wang Nan
2016-07-07  5:34 ` [PATCH v14 1/8] perf tools: Drop redundant evsel->overwrite indicator Wang Nan
2016-07-07  5:34 ` [PATCH v14 2/8] perf evlist: Introduce aux evlist Wang Nan
2016-07-07  5:34 ` [PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist Wang Nan
2016-07-08 14:48   ` Jiri Olsa
2016-07-08 14:48   ` Jiri Olsa
2016-07-08 14:48   ` Jiri Olsa
2016-07-11  3:20     ` Wangnan (F) [this message]
2016-07-07  5:34 ` [PATCH v14 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events Wang Nan
2016-07-08 14:48   ` Jiri Olsa
2016-07-08 14:48   ` Jiri Olsa
2016-07-07  5:34 ` [PATCH v14 5/8] perf record: Read from overwritable ring buffer Wang Nan
2016-07-07  5:34 ` [PATCH v14 6/8] perf tools: Enable overwrite settings Wang Nan
2016-07-07  5:34 ` [PATCH v14 7/8] perf tools: Don't warn about out of order event if write_backward is used Wang Nan
2016-07-07  5:34 ` [PATCH v14 8/8] perf tools: Add --tail-synthesize option Wang Nan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57831063.9020901@huawei.com \
    --to=wangnan0@huawei.com \
    --cc=acme@kernel.org \
    --cc=acme@redhat.com \
    --cc=hekuang@huawei.com \
    --cc=jolsa@kernel.org \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizefan@huawei.com \
    --cc=mhiramat@kernel.org \
    --cc=namhyung@kernel.org \
    --cc=nilayvaish@gmail.com \
    --cc=pi3orama@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox