From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shuah Khan Subject: Re: [PATCH v4 0/6] selftests: Add futex functional tests Date: Wed, 13 May 2015 17:22:22 -0600 Message-ID: <5553DCAE.2010208@osg.samsung.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Darren Hart , Linux Kernel Mailing List Cc: linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Davidlohr Bueso , KOSAKI Motohiro , chrubis-AlSwsSmVLrQ@public.gmane.org, Shuah Khan List-Id: linux-api@vger.kernel.org On 05/12/2015 10:07 PM, Darren Hart wrote: > Hi Shuah, > > This series begins the process of migrating my futextest tests into kselftest. > I've started with only the functional tests, as the performance and stress may > not be appropriate for kselftest as they stand. > > I cleaned up various complaints from checkpatch, but I ignored others that would > require significant rework of the testcases, such as not using volatile and not > creating new typedefs. > Daren, This patch series is good. kselftest run and install are good. I see the following results. Something you would expect?? No Issues and I am going to get them into 4.2 - should show up in linux-kselftest next. Thanks for adding these. thanks, -- Shuah futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=1 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=1 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=1 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=1 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=2000000000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=2000000000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi_mismatched_ops: Detect mismatched requeue_pi operations Result: PASS futex_requeue_pi_signal_restart: Test signal handling during requeue_pi Arguments: ERROR: Operation not permitted: pthread_create ERROR: Unknown error -1: Creating waiting thread failedResult: ERROR futex_wait_timeout: Block on a futex and wait for timeout Arguments: timeout=100000ns Result: PASS futex_wait_wouldblock: Test the unexpected futex value in FUTEX_WAIT Result: PASS futex_wait_uninitialized_heap: Test the uninitialized futex value in FUTEX_WAIT Result: PASS futex_wait_private_mapped_file: Test the futex value of private file mappings in FUTEX_WAIT Result: PASS -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org | (970) 217-8978 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965646AbbEMXW0 (ORCPT ); Wed, 13 May 2015 19:22:26 -0400 Received: from lists.s-osg.org ([54.187.51.154]:60634 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965125AbbEMXWY (ORCPT ); Wed, 13 May 2015 19:22:24 -0400 Message-ID: <5553DCAE.2010208@osg.samsung.com> Date: Wed, 13 May 2015 17:22:22 -0600 From: Shuah Khan Organization: Samsung Open Source Group User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Darren Hart , Linux Kernel Mailing List CC: linux-api@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Davidlohr Bueso , KOSAKI Motohiro , chrubis@suse.cz, Shuah Khan Subject: Re: [PATCH v4 0/6] selftests: Add futex functional tests References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/12/2015 10:07 PM, Darren Hart wrote: > Hi Shuah, > > This series begins the process of migrating my futextest tests into kselftest. > I've started with only the functional tests, as the performance and stress may > not be appropriate for kselftest as they stand. > > I cleaned up various complaints from checkpatch, but I ignored others that would > require significant rework of the testcases, such as not using volatile and not > creating new typedefs. > Daren, This patch series is good. kselftest run and install are good. I see the following results. Something you would expect?? No Issues and I am going to get them into 4.2 - should show up in linux-kselftest next. Thanks for adding these. thanks, -- Shuah futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=1 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=1 timeout=0ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=1 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=1 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating third party blocker thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=2000000000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=2000000000ns ERROR: Operation not permitted: pthread_create ERROR: Creating waiting thread failed Result: ERROR futex_requeue_pi_mismatched_ops: Detect mismatched requeue_pi operations Result: PASS futex_requeue_pi_signal_restart: Test signal handling during requeue_pi Arguments: ERROR: Operation not permitted: pthread_create ERROR: Unknown error -1: Creating waiting thread failedResult: ERROR futex_wait_timeout: Block on a futex and wait for timeout Arguments: timeout=100000ns Result: PASS futex_wait_wouldblock: Test the unexpected futex value in FUTEX_WAIT Result: PASS futex_wait_uninitialized_heap: Test the uninitialized futex value in FUTEX_WAIT Result: PASS futex_wait_private_mapped_file: Test the futex value of private file mappings in FUTEX_WAIT Result: PASS -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh@osg.samsung.com | (970) 217-8978