Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1657501
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 6/6] perf, tools: Add test cases for new data source encoding |
| Date | 2017-06-05 12:40 +0200 |
| Message-ID | <tOXAv-1HK-23@gated-at.bofh.it> (permalink) |
| References | <tO1d7-5RY-7@gated-at.bofh.it> <tO1d8-5RY-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Jun 02, 2017 at 01:12:33PM -0700, Andi Kleen wrote:
SNIP
> + n += perf_mem__lvl_scnprintf(out + n, sizeof out - n, &mi);
> + snprintf(failure, sizeof failure, "unexpected %s", out);
> + TEST_ASSERT_VAL(failure, !strcmp(string, out));
> + return 0;
> +}
> +
> +int test__mem(int subtest __maybe_unused)
> +{
> + int ret = 0;
> +
> + ret |= check(((union perf_mem_data_src) {
> + .mem_lvl = PERF_MEM_LVL_HIT,
> + .mem_lvlx = PERF_MEM_LVLX_L4 }), "N/AL4 hit");
> +
> + ret |= check(((union perf_mem_data_src) {
> + .mem_lvl = PERF_MEM_LVL_MISS,
> + .mem_lvlx = PERF_MEM_LVLX_PMEM }), "N/APMEM miss");
> +
> + ret |= check(((union perf_mem_data_src) {
> + .mem_snoopx = PERF_MEM_SNOOPX_FWD,
> + .mem_lvl = PERF_MEM_LVL_MISS,
> + .mem_lvlx = PERF_MEM_LVLX_RAM }), "ForwardRAM miss");
[jolsa@krava perf]$ ./perf test source -v
5: Test data source output :
--- start ---
test child forked, pid 8689
FAILED tests/mem.c:20 unexpected FwdRAM miss
test child finished with -1
---- end ----
Test data source output: FAILED!
jirka
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/6] perf/x86: Move Nehalem PEBS code to flag Andi Kleen <andi@firstfloor.org> - 2017-06-02 22:20 +0200
[PATCH 4/6] perf/x86: Add support for PEBS sampling persistent RAM on Skylake Andi Kleen <andi@firstfloor.org> - 2017-06-02 22:20 +0200
[PATCH 6/6] perf, tools: Add test cases for new data source encoding Andi Kleen <andi@firstfloor.org> - 2017-06-02 22:20 +0200
Re: [PATCH 6/6] perf, tools: Add test cases for new data source encoding Jiri Olsa <jolsa@redhat.com> - 2017-06-05 12:40 +0200
Re: [PATCH 6/6] perf, tools: Add test cases for new data source encoding Andi Kleen <ak@linux.intel.com> - 2017-06-06 01:00 +0200
[PATCH 3/6] perf, tools: Add support for printing new mem_info encodings Andi Kleen <andi@firstfloor.org> - 2017-06-02 22:20 +0200
[PATCH 2/6] perf/x86: Fix data source decoding for Skylake Andi Kleen <andi@firstfloor.org> - 2017-06-02 22:20 +0200
csiph-web