From patchwork Wed Mar 13 06:12:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 1055910 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="cssahHpi"; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44K1kC4xpLz9s47 for ; Wed, 13 Mar 2019 17:13:36 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id EEE643EA1A9 for ; Wed, 13 Mar 2019 07:13:27 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) by picard.linux.it (Postfix) with ESMTP id DE6543EA1A9 for ; Wed, 13 Mar 2019 07:13:24 +0100 (CET) Received: from mail-yw1-xc44.google.com (mail-yw1-xc44.google.com [IPv6:2607:f8b0:4864:20::c44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id E3B4F1400B7E for ; Wed, 13 Mar 2019 07:13:23 +0100 (CET) Received: by mail-yw1-xc44.google.com with SMTP id r188so491523ywb.12 for ; Tue, 12 Mar 2019 23:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=THGhtRxvW9B1gA1nGiwiN2RPquHbnTwlhNkkZcwb6Yw=; b=cssahHpiMwmcD8qy3ha3wUooJFFiw3MipAOQMpipChiYeBlkxC3vt/U8nPKhXRAHbS +4OR9xOWlgpG4SANaesvjZaN/4vgzm0e5z5md3/Xsh92bis3PCqRrrubwGfFOzIbz64H Pv6/RUsVoPwI7aBWCxNd7fsSm/DPzPW7GhgZt1GB7ATTXwWhwJnQguzf9IqoNQ0jUPMp skEg58J1vGBiDAJ96E4xcz2DUDgI2gduho5ir7NqbFx0eTulBWN9qmTFDx1Q+L4g2x80 pDZU9FtLxZj3WO0BLeLPYCUH0vzSDAPN4oIk0hhgt5JzM6I/cOjIn3j5RnvkLhNu4JM/ fHiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=THGhtRxvW9B1gA1nGiwiN2RPquHbnTwlhNkkZcwb6Yw=; b=OywCOlNEbov8Oumb49dmucx7xtVjreiAxq7PgssXI+MOyLc8D3h0C2YwGL8S77tb1A KYcljAVNFLF/DuxgRA2ZzjiWnqmA0l3ycYkrHa+L39UQtTN5AwR427xhpGtv2fOKOCSj m/Ci9CUDFpKhgisg9KjvvZ0agDrMNCa+ikmvefY2KO0vFys5avheDRD7yGWi94aeD11H uxvAXMhmcskfpk2U15D4zy3i7es/L5UTM9V28wHXT6GUpH85S+htDO8llXhOyGdIKxxl aOry71tY4gz3WSAqt6rCrFYXLzuc8NerB4hhFoZJZhiwj672AWTUdVajjulE7MJNdYf6 DMhw== X-Gm-Message-State: APjAAAVxkLioAFrc4fKzMrqSQOVrCTkFDm3qNqeblk5xO9gE3dCCqahN 4sLW/YQNrFwdBnacgikLSsjUbDO3ido= X-Google-Smtp-Source: APXvYqxCjg5blLKFfZtI1EmBFVcxoZ/ZTKlp3Nce4KK+R4eXbc52eAeT+M+Gc6EkvcKZ6kAk2NB+Ww== X-Received: by 2002:a25:4885:: with SMTP id v127mr33766453yba.169.1552457602398; Tue, 12 Mar 2019 23:13:22 -0700 (PDT) Received: from localhost.localdomain ([117.196.233.204]) by smtp.gmail.com with ESMTPSA id b132sm4319949ywh.79.2019.03.12.23.13.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Mar 2019 23:13:21 -0700 (PDT) From: Sumit Garg To: ltp@lists.linux.it Date: Wed, 13 Mar 2019 11:42:50 +0530 Message-Id: <1552457573-1354-1-git-send-email-sumit.garg@linaro.org> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: clamav-milter 0.99.2 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-6.smtp.seeweb.it Cc: daniel.thompson@linaro.org Subject: [LTP] [PATCH v2 0/3] syscalls: add tgkill test-cases X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" This patch-set is inherited from Greg which adds test-cases for tgkill syscall. Changes in v2: - Free allocated memory for threads. - Remove redundant call to stop_threads(). - Apply reviewed-by tag. Greg Hackmann (3): syscalls/tgkill01: add new test syscalls/tgkill02: add new test syscalls/tgkill03: add new test runtest/syscalls | 4 + testcases/kernel/syscalls/tgkill/.gitignore | 3 + testcases/kernel/syscalls/tgkill/Makefile | 10 ++ testcases/kernel/syscalls/tgkill/tgkill.h | 22 +++++ testcases/kernel/syscalls/tgkill/tgkill01.c | 141 ++++++++++++++++++++++++++++ testcases/kernel/syscalls/tgkill/tgkill02.c | 80 ++++++++++++++++ testcases/kernel/syscalls/tgkill/tgkill03.c | 122 ++++++++++++++++++++++++ 7 files changed, 382 insertions(+) create mode 100644 testcases/kernel/syscalls/tgkill/.gitignore create mode 100644 testcases/kernel/syscalls/tgkill/Makefile create mode 100644 testcases/kernel/syscalls/tgkill/tgkill.h create mode 100644 testcases/kernel/syscalls/tgkill/tgkill01.c create mode 100644 testcases/kernel/syscalls/tgkill/tgkill02.c create mode 100644 testcases/kernel/syscalls/tgkill/tgkill03.c