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: 160194 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp13941580jad; Tue, 12 Mar 2019 23:13:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzu+Hawqhd1S8XJJ0iO8VNBmfyJsmxPz5kBMFYeNypVH/uNWmovIYXD0v4Ck4L2UbyorOtu X-Received: by 2002:a1c:8088:: with SMTP id b130mr897434wmd.96.1552457610907; Tue, 12 Mar 2019 23:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552457610; cv=none; d=google.com; s=arc-20160816; b=cHQSCZOo2HXHCLorVjM8uVnPYpoQg3GoivAN9jLwvv+quizmmI5bDIW7EQZiLZ1tiT JaFKSm+eurDurTrf3coANBrTTDf59o4gyxM120XD7GEqYP7zr1S8ili8zTNyb67+SIwg WeGNO2Lp8iNCEIlIRnBgbCtT0Aicw8rxxckhj2qUKrxz5lXYuYC2fInhBkMaFMXy5Sac jrrpKIIlc6wFYTTTXCIJJn8olkOD0Hb9xzyYfQHcw744FIQlvl41CUetWCzZTkldPSD1 fjYnOW4+8cgpj9l4vqepdwGMmFDG2QJdZj9N8qQMGQaSDmg0Zq7Cd76jMXHqkG87mMiE fxsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:delivered-to; bh=/VgWBhkDBQ6MdO94l2lqZnNE2xBl7zev5iQMv4okICU=; b=aU3Mb7xnOZEYkQhY91NNJz8r33QMsrKZ+jtsQI4daWiVzKdvFPmF2kRLF9LEa5lWPS hc7iDXu28JhGEYBdnhOKtolE54jYY01ZubSO6X+eB4lOSJk7vfBbxgpZDbcl4XjMYOu8 oOFgNDu785aByYk4GgWowQZJeXAH0Ejarw+2pZHztaNUYNaLhemOhuAW9SwAUlf19Zf3 TP5qLIL/gfZFyguqdDewFO+ZcGlbLNk317+SC1K27/n5AUgsfsY9rDLcmTJJmFRkNDtM X34p4SF73d3EIrZb8TbBwm+uFpC92w8L1evRTwR7+CxB5uREaCzcfBTGtxbYciXdGVZt fKUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cssahHpi; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from picard.linux.it (picard.linux.it. [213.254.12.146]) by mx.google.com with ESMTPS id m5si6619636wrq.87.2019.03.12.23.13.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Mar 2019 23:13:30 -0700 (PDT) Received-SPF: pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) client-ip=213.254.12.146; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cssahHpi; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 70A223EA383 for ; Wed, 13 Mar 2019 07:13:30 +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-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+patch=linaro.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