From patchwork Wed Jun 20 22:47:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 9515 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id EA10823E1B for ; Wed, 20 Jun 2012 22:48:06 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id B9D05A18399 for ; Wed, 20 Jun 2012 22:48:06 +0000 (UTC) Received: by yenq6 with SMTP id q6so6814232yen.11 for ; Wed, 20 Jun 2012 15:48:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding :x-content-scanned:x-cbid:x-gm-message-state; bh=sdg++ROCM3O4zS30qjX51BjYNKW5O5E7s5lkYqgZFrw=; b=XYYkwSFCwnh5fWNs5/rRE4QnKETocybB95QCt6MaW1klnNVOZR6YGf+sqPpFmcj32T yqUpGvJSUaZy+okxSyGG6kq5DXSYENc+g4mdQi1yw2KeqiT/1ZnjXncPf7oUOFXCWrTR YvrCGZRIg5iEtb35g0LeVqEGIqTzMuoTCjY8CriggjsGG7Q5bllxXXUqCtknFD9JSBoC ivcANvrOw2NvUQ88WYRHNikWEfxIsxowzkYkJC1pYoqq1iveQAB2+OgW0cdM7QnEwpj0 92JSkX163uWAvBxuobcRVflvxOi0wTozSih1UXwvaaMy59+/kncZAoCwDVbT9n2xgW1O 5x4A== Received: by 10.50.87.227 with SMTP id bb3mr5966898igb.57.1340232485790; Wed, 20 Jun 2012 15:48:05 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp204138ibb; Wed, 20 Jun 2012 15:48:05 -0700 (PDT) Received: by 10.236.185.167 with SMTP id u27mr30052171yhm.32.1340232484739; Wed, 20 Jun 2012 15:48:04 -0700 (PDT) Received: from e35.co.us.ibm.com (e35.co.us.ibm.com. [32.97.110.153]) by mx.google.com with ESMTPS id z7si943715yhh.144.2012.06.20.15.48.04 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jun 2012 15:48:04 -0700 (PDT) Received-SPF: neutral (google.com: 32.97.110.153 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=32.97.110.153; Authentication-Results: mx.google.com; spf=neutral (google.com: 32.97.110.153 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) smtp.mail=john.stultz@linaro.org Received: from /spool/local by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 20 Jun 2012 16:48:04 -0600 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 20 Jun 2012 16:48:00 -0600 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 6AFED19D804A; Wed, 20 Jun 2012 22:47:57 +0000 (WET) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q5KMlwRN245680; Wed, 20 Jun 2012 16:47:58 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q5KMlvl2029049; Wed, 20 Jun 2012 16:47:58 -0600 Received: from kernel.stglabs.ibm.com (kernel.stglabs.ibm.com [9.114.214.19]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q5KMls1w028868; Wed, 20 Jun 2012 16:47:56 -0600 From: John Stultz To: LKML Cc: =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Russell King , Paul Gortmaker , Alexander Shishkin , John Stultz Subject: [PATCH 02/15] ARM: etm: Don't limit tracing to only non-secure code. Date: Wed, 20 Jun 2012 18:47:34 -0400 Message-Id: <1340232467-6023-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1340232467-6023-1-git-send-email-john.stultz@linaro.org> References: <1340232467-6023-1-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12062022-6148-0000-0000-000006E7150A X-Gm-Message-State: ALoCoQlsOBlkdWq7jIXDflEZzHPlu5ne71mL1eZvi+zBV3PCEYElcjzrIaGJXXCfdXh/2NbIvO6J From: Arve Hjønnevåg On some systems kernel code is considered secure, and this code already limits tracing to the kernel text segment which results in no trace data. CC: Russell King CC: Paul Gortmaker CC: Alexander Shishkin Acked-by: Alexander Shishkin Signed-off-by: Arve Hjønnevåg Signed-off-by: John Stultz --- arch/arm/kernel/etm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/etm.c b/arch/arm/kernel/etm.c index bd295e8..d7622f9 100644 --- a/arch/arm/kernel/etm.c +++ b/arch/arm/kernel/etm.c @@ -56,7 +56,7 @@ static inline bool trace_isrunning(struct tracectx *t) static int etm_setup_address_range(struct tracectx *t, int n, unsigned long start, unsigned long end, int exclude, int data) { - u32 flags = ETMAAT_ARM | ETMAAT_IGNCONTEXTID | ETMAAT_NSONLY | \ + u32 flags = ETMAAT_ARM | ETMAAT_IGNCONTEXTID | ETMAAT_IGNSECURITY | ETMAAT_NOVALCMP; if (n < 1 || n > t->ncmppairs)