Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1195136imu; Wed, 28 Nov 2018 06:07:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wle11IYIFaQryJBow4RSikXPiYXqM2hLo7ADCbbIfG/FA3dQPWon+aYmmebYs8hKa8jKeA X-Received: by 2002:a17:902:9b93:: with SMTP id y19mr37330467plp.336.1543414063302; Wed, 28 Nov 2018 06:07:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543414063; cv=none; d=google.com; s=arc-20160816; b=l9bUPWJx68fwmZZhSYBbCBu5Ueh0yZ/75TC7YPDHGuRZmOV5u62rroZGYRvEL9z/Pt nqX9dMp+p1EPEdTiztIDV8ttgG6b/F8L8bbAlBNnXw4S/QVYzHVowyvXwuqllZQw/8xB +dNQ30GggH5ew+dAzDfy+3kjmVHX0P4jaih5rj9l8AKtw2L+K8NjtqAwu4GOrSXAj/TB +RIxXqOPtEFtUeJ+8DlfQsHBKye1s4usgTPkWuDM+jNnjvg22VTLgmOx8sQRo/1t8Qd6 hBUajHsaRLLiG+fZnSNV1uGWkj8o0fl5GeXRDxq6TIY3YHmjgvPZ4r9BDFYTDbXtTGC3 32YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=kryvQzjNaoCZp1JmkdEtYENOCh1J9iSfF5kP5egTEO8=; b=l9As0Pkxiq3CG0oSo5ulg3uQTjbFmu8QafY/h1VfxRM83OtmGiufanJ2Hh0qhZJsNX BpgZr97ESyAknvQFE+R/WNQbP0aO8MSlOsmmDIfBo1gtBuKbliuY/VCkDQweiL11FNIl bjI+YtZRyBBluDeIq/6dVEw8G9nzA0eCALJIkEZ4g1GOmKxLQc4YQOwsHimyqKue2qWn 04RNGWDtUUvXj7+73Oi5dktJujhAO0ob8NKKaYRrxLoJmAmqi7E+ilgRKpN5ZaMEROqx IzhvHUhhOncbzvT9BIfMJj5anQRlSrSFWK6mZrE3lZSwUgXbk+ufEGouS9dEfbxJgp9W ddFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4si6980686pls.262.2018.11.28.06.07.16; Wed, 28 Nov 2018 06:07:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728442AbeK2BG4 (ORCPT + 99 others); Wed, 28 Nov 2018 20:06:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:35496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728163AbeK2BG4 (ORCPT ); Wed, 28 Nov 2018 20:06:56 -0500 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8533B208E7; Wed, 28 Nov 2018 14:05:09 +0000 (UTC) Date: Wed, 28 Nov 2018 09:05:07 -0500 From: Steven Rostedt To: Anders Roxell Cc: akpm@linux-foundation.org, dvyukov@google.com, mingo@redhat.com, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: Re: [PATCH 1/2] kernel/kcov.c: mark funcs in __sanitizer_cov_trace_pc as notrace Message-ID: <20181128090507.41791fe7@gandalf.local.home> In-Reply-To: <20181128081239.18317-1-anders.roxell@linaro.org> References: <20181128081239.18317-1-anders.roxell@linaro.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Nov 2018 09:12:39 +0100 Anders Roxell wrote: > Since __sanitizer_cov_trace_pc is marked as notrace, function calls in > __sanitizer_cov_trace_pc shouldn't be traced either. The function > ftrace_graph_caller() gets called for each function that isn't marked > 'notrace', like canonicalize_ip(). This is the call trace from a run: > > [ 139.644550] ftrace_graph_caller+0x1c/0x24 > [ 139.648352] canonicalize_ip+0x18/0x28 > [ 139.652313] __sanitizer_cov_trace_pc+0x14/0x58 > [ 139.656184] sched_clock+0x34/0x1e8 > [ 139.659759] trace_clock_local+0x40/0x88 > [ 139.663722] ftrace_push_return_trace+0x8c/0x1f0 > [ 139.667767] prepare_ftrace_return+0xa8/0x100 > [ 139.671709] ftrace_graph_caller+0x1c/0x24 > > Rework so that the functions check_kcov_mode and canonicalize_ip that is > callef from __sanitizer_cov_trace_pc also is marked as notrace. > > Co-developed-by: Arnd Bergmann > Signed-off-by: Arnd Bergmann > Signen-off-by: Anders Roxell > --- Acked-by: Steven Rostedt (VMware) -- Steve