Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-03 Thread Thomas Richter
= 114, >>>>   .data_page_size = 115, >>>>   .code_page_size = 116, >>>> +   .ins_lat    = 117, >>>> >>>> And this assignment 117 breaks the test. As mentioned before, member

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-03 Thread Athira Rajeev
>> .cgroup = 114, >>>> .data_page_size = 115, >>>> .code_page_size = 116, >>>> + .ins_lat= 117, >>>> >>>> And this assignment 117 breaks

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Liang, Kan
--- a/tools/perf/arch/x86/include/arch-tests.h +++ b/tools/perf/arch/x86/include/arch-tests.h @@ -10,6 +10,7 @@ int test__rdpmc(struct test *test __maybe_unused, int subtest); int test__insn_x86(struct test *test __maybe_unused, int subtest); int test__intel_pt_pkt_decoder(struct test *test,

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Thomas Richter
On 3/2/21 4:23 PM, Liang, Kan wrote: > > > On 3/2/2021 9:48 AM, Thomas Richter wrote: >> On 3/2/21 3:03 PM, Liang, Kan wrote: >>> >>> + Athira Rajeev >>> >>> On 3/2/2021 8:31 AM, Thomas Richter wrote: Executing perf test 27 fails on s390:    [root@t35lp46 perf]# ./perf test -Fv 27

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Thomas Richter
On 3/2/21 3:03 PM, Liang, Kan wrote: > > + Athira Rajeev > > On 3/2/2021 8:31 AM, Thomas Richter wrote: >> Executing perf test 27 fails on s390: >>   [root@t35lp46 perf]# ./perf test -Fv 27 >>   27: Sample parsing >>   --- start --- >>   end >>   Sample parsing: FAILED! >>   [root@t35lp

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Liang, Kan
On 3/2/2021 9:48 AM, Thomas Richter wrote: On 3/2/21 3:03 PM, Liang, Kan wrote: + Athira Rajeev On 3/2/2021 8:31 AM, Thomas Richter wrote: Executing perf test 27 fails on s390:   [root@t35lp46 perf]# ./perf test -Fv 27   27: Sample parsing   --- start ---   end   Sample pars

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Liang, Kan
+ Athira Rajeev On 3/2/2021 8:31 AM, Thomas Richter wrote: Executing perf test 27 fails on s390: [root@t35lp46 perf]# ./perf test -Fv 27 27: Sample parsing --- start --- end Sample parsing: FAILED! [root@t35lp46 perf]# The root cause is commit c7444297fd3769 ("perf test:

[PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Thomas Richter
Executing perf test 27 fails on s390: [root@t35lp46 perf]# ./perf test -Fv 27 27: Sample parsing --- start --- end Sample parsing: FAILED! [root@t35lp46 perf]# The root cause is commit c7444297fd3769 ("perf test: Support PERF_SAMPLE_WEIGHT_STRUCT") This commit introduced a test cas

[liburing PATCH] flush/test: test flush of dying process

2020-06-07 Thread Pavel Begunkov
Make sure all requests of a going away process are cancelled. Signed-off-by: Pavel Begunkov --- test/io-cancel.c | 102 +++ 1 file changed, 102 insertions(+) diff --git a/test/io-cancel.c b/test/io-cancel.c index 75fbf43..d8b04d9 100644 --- a/test/io-

Re: [PATCH] perf test: Test 6 dumps core on s390

2018-06-11 Thread Jiri Olsa
On Mon, Jun 11, 2018 at 09:00:53AM +0200, Thomas-Mich Richter wrote: > On 06/08/2018 04:53 PM, Kim Phillips wrote: > > On Fri, 8 Jun 2018 15:17:28 +0200 > > Thomas Richter wrote: > > > >> Perf test case 6 "Parse event definition strings" > >> dumps core when executed on s390. > > > > I reported

Re: [PATCH] perf test: Test 6 dumps core on s390

2018-06-11 Thread Thomas-Mich Richter
On 06/08/2018 04:53 PM, Kim Phillips wrote: > On Fri, 8 Jun 2018 15:17:28 +0200 > Thomas Richter wrote: > >> Perf test case 6 "Parse event definition strings" >> dumps core when executed on s390. > > I reported it actually fails on any $ARCH system without > Intel Processor Trace (PT) h/w: > >

Re: [PATCH] perf test: Test 6 dumps core on s390

2018-06-08 Thread Kim Phillips
On Fri, 8 Jun 2018 15:17:28 +0200 Thomas Richter wrote: > Perf test case 6 "Parse event definition strings" > dumps core when executed on s390. I reported it actually fails on any $ARCH system without Intel Processor Trace (PT) h/w: https://www.spinics.net/lists/linux-perf-users/msg06020.html

[PATCH] perf test: Test 6 dumps core on s390

2018-06-08 Thread Thomas Richter
Perf test case 6 "Parse event definition strings" dumps core when executed on s390. Root case is a NULL pointer supplied in function test_event() +---> parse_events() The third parameter is set to NULL: (gdb) where #0 parse_events (evlist=0x149dc90, str=0x133242a "intel_pt//u", err=0x0)

[PATCH 18/30] kconfig: test: test text expansion

2018-04-12 Thread Masahiro Yamada
Here are the test cases I used for developing the text expansion feature. I implemented a similar language as you see in Make. The implementation is different (the source code in GNU Make is much longer, so I did not want to pull it in), but the behavior is hopefully almost the same. I intention

Re: [PATCH 09/14] kconfig: test: test automatic submenu creation

2018-02-07 Thread Ulf Magnusson
On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > If a symbols has dependency on the preceding symbol, the menu entry > should become the submenu of the preceding one, and displayed with > deeper indentation. > > This is done by restructuring the menu tree in menu_finalize(). > It is a bit

[PATCH 09/14] kconfig: test: test automatic submenu creation

2018-02-05 Thread Masahiro Yamada
If a symbols has dependency on the preceding symbol, the menu entry should become the submenu of the preceding one, and displayed with deeper indentation. This is done by restructuring the menu tree in menu_finalize(). It is a bit complicated computation, so let's add a test case. Signed-off-by:

Test test test

2018-01-11 Thread Böszörményi Zoltán
This is only a test to see if UTF-8 content in the From: and the mail body can get through my ISP properly to LKML. árvíztűrő tükörfúrógép ÁRVÍZTŰRŐ TÜKÖRFÚRÓGÉP

[PATCH v3 6/9] memfd-test: test hugetlbfs sealing

2017-11-07 Thread Marc-André Lureau
Remove most of the special-casing of hugetlbfs now that sealing is supported. Signed-off-by: Marc-André Lureau Reviewed-by: Mike Kravetz --- tools/testing/selftests/memfd/memfd_test.c | 150 +++-- 1 file changed, 15 insertions(+), 135 deletions(-) diff --git a/tools/tes

[tip:perf/core] perf test: Test the BPF prologue adding infrastructure

2015-11-23 Thread tip-bot for Wang Nan
Commit-ID: bbb7d4925a05ecd5bbfdbc1147d402b0db203a5a Gitweb: http://git.kernel.org/tip/bbb7d4925a05ecd5bbfdbc1147d402b0db203a5a Author: Wang Nan AuthorDate: Mon, 16 Nov 2015 12:10:14 + Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 18 Nov 2015 17:51:04 -0300 perf test: Test

[PATCH 13/37] perf test: Test the BPF prologue adding infrastructure

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch introduces a new BPF script to test the BPF prologue adding routines. The new script probes at null_lseek, which is the function pointer used when we try to lseek on '/dev/null'. The null_lseek function is chosen because it is used by function pointers, so we don't need

[PATCH 11/16] perf test: Test the BPF prologue adding infrastructure

2015-11-17 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch introduces a new BPF script to test the BPF prologue adding routines. The new script probes at null_lseek, which is the function pointer used when we try to lseek on '/dev/null'. The null_lseek function is chosen because it is used by function pointers, so we don't need

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-17 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 17, 2015 at 12:38:37PM +0800, Wangnan (F) escreveu: > On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: > >How about: > > > > # perf test -v BPF > > 37: Test BPF filter: > > 37.1: test a : Ok > > 37.2: test b

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-17 Thread Wangnan (F)
Hi Arnaldo, On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: [SNIP] I've pushed everything to my perf/ebpf branch, please let me know if what is there is acceptable, then it will be up to Ingo to decide where to put this, if in perf/urgent for this merge window, or in perf/core, for the next

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-16 Thread Wangnan (F)
On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: Em Mon, Nov 16, 2015 at 12:10:14PM +, Wang Nan escreveu: This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is c

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-16 Thread Wangnan (F)
On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: Em Mon, Nov 16, 2015 at 12:10:14PM +, Wang Nan escreveu: This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is c

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-16 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 16, 2015 at 12:10:14PM +, Wang Nan escreveu: > This patch introduces a new BPF script to test BPF prologue. The new > script probes at null_lseek, which is the function pointer when we try > to lseek on '/dev/null'. > > null_lseek is chosen because it is a function pointer, so we d

[PATCH 12/13] perf test: Test BPF prologue

2015-11-16 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTO. By extracting file->f_mode, bp

[PATCH 11/12] perf test: Test BPF prologue

2015-11-13 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTO. By extracting file->f_mode, bp

[PATCH 22/31] perf test: Test BPF prologue

2015-10-14 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTP. By extracting file->f_mode, bp

[PATCH 22/22] perf test: Test BPF prologue

2015-10-08 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTP. By extracting file->f_mode, bp

[PATCH 21/22] perf test: Test BPF prologue

2015-09-23 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTP. By extracting file->f_mode, bp

[PATCH 27/27] perf test: Test BPF prologue

2015-09-06 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTP. By extracting file->f_mode, bp

[PATCH] perf test: Test BPF prologue

2015-09-05 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTP. By extracting file->f_mode, bp

[PATCH 5/5] perf,test: test hists socket filter

2015-09-04 Thread kan . liang
From: Kan Liang Add test case for hists socket filter. Signed-off-by: Kan Liang --- tools/perf/tests/hists_filter.c | 55 + 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/tools/perf/tests/hists_filter.c b/tools/perf/tests/hists_filter.c

[PATCH V6 1/1] perf,test: test cpu topology

2015-09-04 Thread Kan Liang
From: Kan Liang This patch test cpu core_id and socket_id which are stored in perf_env. Based-on-a-patch-by: Jiri Olsa Signed-off-by: Kan Liang --- Changes since jirka's original version - Use pr_debug to replace fprintf - Add date_size to avoid warning - Introduce cpu_map, and compare cor

Re: [PATCH V5 1/1] perf,test: test cpu topology

2015-09-04 Thread Jiri Olsa
On Wed, Sep 02, 2015 at 02:23:02AM -0400, Kan Liang wrote: SNIP > + > +int test_session_topology(void) > +{ > + struct perf_session *session; > + char path[PATH_MAX]; > + struct cpu_map *map; > + struct perf_data_file file = { > + .path = path, > + .mode =

[PATCH V5 1/1] perf,test: test cpu topology

2015-09-02 Thread Kan Liang
From: Kan Liang This patch test cpu core_id and socket_id which are stored in perf_env. Based-on-a-patch-by: Jiri Olsa Signed-off-by: Kan Liang --- Changes since jirka's original version - Use pr_debug to replace fprintf - Add date_size to avoid warning - Introduce cpu_map, and compare cor

Re: [PATCH V4 3/3] perf,test: test cpu topology

2015-09-01 Thread Jiri Olsa
On Tue, Sep 01, 2015 at 11:25:10PM +, Liang, Kan wrote: > > > > > > Em Tue, Sep 01, 2015 at 09:58:13AM -0400, Kan Liang escreveu: > > > From: Jiri Olsa > > > > > > This patch test cpu core_id and socket_id which are stored in perf_env. > > > > > > Signed-off-by: Jiri Olsa > > > Signed-off-

RE: [PATCH V4 3/3] perf,test: test cpu topology

2015-09-01 Thread Liang, Kan
> > Em Tue, Sep 01, 2015 at 09:58:13AM -0400, Kan Liang escreveu: > > From: Jiri Olsa > > > > This patch test cpu core_id and socket_id which are stored in perf_env. > > > > Signed-off-by: Jiri Olsa > > Signed-off-by: Kan Liang > > --- > > > > Changes since jirka's original version > > - Use

Re: [PATCH V4 3/3] perf,test: test cpu topology

2015-09-01 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 01, 2015 at 09:58:13AM -0400, Kan Liang escreveu: > From: Jiri Olsa > > This patch test cpu core_id and socket_id which are stored in perf_env. > > Signed-off-by: Jiri Olsa > Signed-off-by: Kan Liang > --- > > Changes since jirka's original version > - Use pr_debug to replace fpr

[PATCH V4 3/3] perf,test: test cpu topology

2015-09-01 Thread Kan Liang
From: Jiri Olsa This patch test cpu core_id and socket_id which are stored in perf_env. Signed-off-by: Jiri Olsa Signed-off-by: Kan Liang --- Changes since jirka's original version - Use pr_debug to replace fprintf - Add date_size to avoid warning - Introduce cpu_map, and compare core_id a

[PATCH V3 3/3] perf,test: test cpu topology

2015-08-31 Thread Kan Liang
From: Jiri Olsa This patch test cpu core_id and socket_id which are stored in perf_env. Signed-off-by: Jiri Olsa Signed-off-by: Kan Liang --- Changes since jirka's original version - Use pr_debug to replace fprintf - Add date_size to avoid warning - Introduce cpu_map, and compare core_id a

Re: [PATCH V2 2/2] perf,test: test cpu topology

2015-08-29 Thread Jiri Olsa
On Fri, Aug 28, 2015 at 09:43:39AM -0400, Kan Liang wrote: SNIP > + TEST_ASSERT_VAL("failed to get system cpumap", !(map == NULL)); > + > + file.mode = PERF_DATA_MODE_READ; > + session = perf_session__new(&file, false, NULL); > + TEST_ASSERT_VAL("can't get session", session); > +

[PATCH V2 2/2] perf,test: test cpu topology

2015-08-28 Thread Kan Liang
From: Jiri Olsa This patch test cpu core_id and socket_id which are stored in perf_env. Signed-off-by: Jiri Olsa Signed-off-by: Kan Liang --- Changes since jirka's original version - Use pr_debug to replace fprintf - Add date_size to avoid warning - Introduce cpu_map, and compare core_id a

Re: [PATCH v2 03/11] rbtree/test: test rbtree_postorder_for_each_entry_safe()

2013-11-07 Thread Michel Lespinasse
On Wed, Nov 6, 2013 at 5:42 PM, Cody P Schafer wrote: > Signed-off-by: Cody P Schafer > --- > lib/rbtree_test.c | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c > index df6c125..8b3c9dc 100644 > --- a/lib/rbtree_test.c > +++ b/lib/rbtree

[PATCH v2 03/11] rbtree/test: test rbtree_postorder_for_each_entry_safe()

2013-11-06 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- lib/rbtree_test.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c index df6c125..8b3c9dc 100644 --- a/lib/rbtree_test.c +++ b/lib/rbtree_test.c @@ -114,6 +114,16 @@ static int black_path_count(struct rb_node

Re: [PATCH] rbtree/test: test rbtree_postorder_for_each_entry_safe()

2013-11-06 Thread Andrew Morton
On Wed, 6 Nov 2013 13:37:23 -0800 Cody P Schafer wrote: > ... > > --- a/lib/rbtree_test.c > +++ b/lib/rbtree_test.c > @@ -114,6 +114,16 @@ static int black_path_count(struct rb_node *rb) > return count; > } > > +static void check_postorder_foreach(int nr_nodes) > +{ > + struct test

[PATCH] rbtree/test: test rbtree_postorder_for_each_entry_safe()

2013-11-06 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- lib/rbtree_test.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c index df6c125..8b3c9dc 100644 --- a/lib/rbtree_test.c +++ b/lib/rbtree_test.c @@ -114,6 +114,16 @@ static int black_path_count(struct rb_node

test test

2000-11-06 Thread ming_l
test - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/