From patchwork Wed Jun 13 02:01:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 9254 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 4EA9923E37 for ; Wed, 13 Jun 2012 02:02:13 +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 1F151A183AF for ; Wed, 13 Jun 2012 02:02:13 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so155440yen.11 for ; Tue, 12 Jun 2012 19:02:12 -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-ibm-iss-spamdetectors :x-ibm-iss-detailinfo:x-gm-message-state; bh=68GhsPyHU36x72Ud73wHRJ53wQ6N6hMkka1i82dCtMc=; b=Lhl6Ryn9UBNOlIfpyOIiBQpjxZEsmZUcShfM/g29vRFVBxl57pqDMl2IcH1WSPj773 AISjTu6jKjCvrBeBacXRvjkQPn/OapKfoE8zQlnYAHaWW1Rb+CbO1L89jD1dMm7hZ8zA W7gkOyCcikEPHyLjYnMsk66DkBohdIa0FaIZQiVGUSqGWnOgUPPK/9suYITqPcmmSh0N ALL+tmeOP8nJSeS9bBmqzHrsSJpHx4Lggo7XJkHtM+kCI5GcSdSw+wNqX2pUb/kzAfsf BCqos/lj3ts6uMBBp2AUn1C51HnVqYc/dEtCvZpUSwRuasGz+gCREiBHwN2etlYbXqCU uvmA== Received: by 10.50.40.193 with SMTP id z1mr9774548igk.0.1339552932389; Tue, 12 Jun 2012 19:02:12 -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 v20csp200448ibb; Tue, 12 Jun 2012 19:02:11 -0700 (PDT) Received: by 10.68.212.138 with SMTP id nk10mr45542244pbc.93.1339552931165; Tue, 12 Jun 2012 19:02:11 -0700 (PDT) Received: from e34.co.us.ibm.com (e34.co.us.ibm.com. [32.97.110.152]) by mx.google.com with ESMTPS id vv4si4883508pbc.342.2012.06.12.19.02.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Jun 2012 19:02:11 -0700 (PDT) Received-SPF: pass (google.com: domain of jstultz@us.ibm.com designates 32.97.110.152 as permitted sender) client-ip=32.97.110.152; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jstultz@us.ibm.com designates 32.97.110.152 as permitted sender) smtp.mail=jstultz@us.ibm.com Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 12 Jun 2012 20:02:09 -0600 Received: from d01dlp03.pok.ibm.com (9.56.224.17) by e34.co.us.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 12 Jun 2012 20:01:43 -0600 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id 1B80DC9005A; Tue, 12 Jun 2012 22:01:42 -0400 (EDT) Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q5D21ggY157852; Tue, 12 Jun 2012 22:01:42 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q5D7WYVx027669; Wed, 13 Jun 2012 03:32:34 -0400 Received: from kernel.beaverton.ibm.com (kernel.beaverton.ibm.com [9.47.67.96]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q5D7WXxc027653; Wed, 13 Jun 2012 03:32:34 -0400 Received: by kernel.beaverton.ibm.com (Postfix, from userid 1056) id CB169C0623; Tue, 12 Jun 2012 19:01:40 -0700 (PDT) From: John Stultz To: LKML Cc: =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Russell King , Paul Gortmaker , Alexander Shishkin , Mathieu Poirier , John Stultz Subject: [PATCH 02/15] ARM: etm: Don't limit tracing to only non-secure code. Date: Tue, 12 Jun 2012 19:01:20 -0700 Message-Id: <1339552887-17204-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.7.3.2.146.gca209 In-Reply-To: <1339552887-17204-1-git-send-email-john.stultz@linaro.org> References: <1339552887-17204-1-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12061302-1780-0000-0000-00000664152D X-IBM-ISS-SpamDetectors: X-IBM-ISS-DetailInfo: BY=3.00000281; HX=3.00000190; KW=3.00000007; PH=3.00000001; SC=3.00000002; SDB=6.00147557; UDB=6.00033681; UTC=2012-06-13 02:02:07 X-Gm-Message-State: ALoCoQnVUW8MtTdPwPeY7n1Y8GOb7JtwTxbWhEy6FwT7Lxwa3AsZOQ34/Jr40BfwweVS42X3GiQg 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 CC: Mathieu Poirier Acked-by: Alexander Shishkin Signed-off-by: Arve Hjønnevåg Signed-off-by: John Stultz --- arch/arm/kernel/etm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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)