From patchwork Thu Oct 3 12:07:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 20781 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B43C825CAB for ; Thu, 3 Oct 2013 12:08:05 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r5sf3705970yen.3 for ; Thu, 03 Oct 2013 05:08:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=As+dZcKHJ88RfbUmm83Id6DIp1AO4pkkBzzNGpbFI0o=; b=ZcxC1lwnQ1uPIRPO1AdaxM0g22hkRg/Oefjhs2114lc6qg+cBWFDwW6wP6T8yHu2jp rNjLMx1mMv60yqXal8rqPT975/dHPfP+tvF/GLCf6dvq30ZyVloapNX2rGfo63EhlF1X oLnMkuVMuzTV5XGf2F5Y00aakcApr/Nvp/o4H9aLBvc6mYCn395URpHmYwGNUGQPsIEb 5Hz23zut/pKU25m5f002+EqaHFww/sGoNF9T2yI8D1t7MWlzCD0xFx0DiQqhl9ypdtnq +HfF5qUNqHgO9mDim9mO5hE6M+xlOAjRNDRMX2JHWChdfTlUfMNPTtXsg38pkHfYRMcJ zWYQ== X-Received: by 10.58.201.66 with SMTP id jy2mr974583vec.5.1380802085216; Thu, 03 Oct 2013 05:08:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.233 with SMTP id x9ls878764qef.46.gmail; Thu, 03 Oct 2013 05:08:05 -0700 (PDT) X-Received: by 10.220.16.73 with SMTP id n9mr1066738vca.24.1380802085004; Thu, 03 Oct 2013 05:08:05 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id ge8si1645063vec.67.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 05:08:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id if17so954185vcb.32 for ; Thu, 03 Oct 2013 05:08:04 -0700 (PDT) X-Gm-Message-State: ALoCoQmr3IGB9ds8x++i8EtcurgG31EEUsxR9NgCPC8QzSzdDaxG7s+pOzjO014b0J1LyKIPvmbI X-Received: by 10.220.43.19 with SMTP id u19mr7110073vce.3.1380802084931; Thu, 03 Oct 2013 05:08:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp172859vcz; Thu, 3 Oct 2013 05:08:04 -0700 (PDT) X-Received: by 10.112.126.37 with SMTP id mv5mr6708805lbb.20.1380802083703; Thu, 03 Oct 2013 05:08:03 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by mx.google.com with ESMTPS id b4si3195636lab.176.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 05:08:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.217.178 is neither permitted nor denied by best guess record for domain of maxim.uvarov@linaro.org) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id z5so1881884lbh.23 for ; Thu, 03 Oct 2013 05:08:03 -0700 (PDT) X-Received: by 10.152.87.143 with SMTP id ay15mr6732379lab.2.1380802082729; Thu, 03 Oct 2013 05:08:02 -0700 (PDT) Received: from localhost.localdomain ([92.39.133.154]) by mx.google.com with ESMTPSA id js17sm6021306lab.5.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 05:08:01 -0700 (PDT) From: Maxim Uvarov To: linaro-networking@linaro.org Cc: patches@linaro.org, linaro-kernel@lists.linaro.org, Maxim Uvarov Subject: [PATCH] LTP cacheflush01 add arm variant Date: Thu, 3 Oct 2013 16:07:39 +0400 Message-Id: <1380802059-7977-1-git-send-email-maxim.uvarov@linaro.com> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Cache flush on arm provided via __ARM_NR_cacheflush(unsigned long start, unsigned long end, int flags) defined in ./arch/arm/kernel/traps.c. Flags are not used, providing 0 there. Signed-off-by: Maxim Uvarov --- .../kernel/syscalls/cacheflush/cacheflush01.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testcases/kernel/syscalls/cacheflush/cacheflush01.c b/testcases/kernel/syscalls/cacheflush/cacheflush01.c index 9c02f0a..fae51b4 100644 --- a/testcases/kernel/syscalls/cacheflush/cacheflush01.c +++ b/testcases/kernel/syscalls/cacheflush/cacheflush01.c @@ -137,6 +137,14 @@ int main(int ac, char **av) } /* Invokes cacheflush() with proper parameters */ +#if defined(__arm__) + TEST(ltp_syscall(__ARM_NR_cacheflush, addr, addr + getpagesize(), 0)); + if (TEST_RETURN == 0) { + tst_resm(TPASS, "passed with no errno"); + } else { + tst_resm(TFAIL, "failed with unexpected errno"); + } +#else TEST(ltp_syscall(__NR_cacheflush, addr, getpagesize(), ICACHE)); if (TEST_RETURN == 0) { tst_resm(TPASS, "passed with no errno"); @@ -157,6 +165,7 @@ int main(int ac, char **av) } else { tst_resm(TFAIL, "failed with unexpected errno"); } +#endif cleanup(); tst_exit();