Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11993448ybi; Fri, 26 Jul 2019 03:02:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwh4Wo8WTe4iV8h+jr27+PR2+QXUVebzpalTdCNSPyGe/4G7W27ioDhyZrGyNmX8TBZz+f X-Received: by 2002:a17:90a:de02:: with SMTP id m2mr97015771pjv.18.1564135346315; Fri, 26 Jul 2019 03:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564135346; cv=none; d=google.com; s=arc-20160816; b=Cbf9pU06arwt2SoC7V0X10wcxrxOqF+upavGVz/q5bsiXAO0C+5oCuwleUI92rTELb IcA4WsI/7LMw3Czd8/QwzNWBZ0CSGVFj+FQXB0ANIVnGHCMwT1MF2qrGlmP0N5bdFLGa w2FM0uzo50+PZa43b/NOaT538MS3bun9sYtYksBpOmakUzk+Y9rY4/lYLbBSREQJrbI0 Ws2ACrCtcnOPM2kHa7H6mdqw6G+Ubxn8E2yvSz6yoFyx3naHMpIcQJgbWYSxg6UvRS6A MwfwdB9F3lg7XB/rQT/W1wkqPAeuaczRX4h3OhsKJl4AsDEA4StDPAQYNYy8TLyMH/N/ dJqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ulNW18rlea00T4v4mX0XiyIJoM8J8QRrrh1waQS7iQg=; b=cVXneSLv+IkYOQo/dwTIY2G4QVCUVgktJgBTU/rSmH/kRVmyjqrlTAW2r9FjBmX7Io DmVD/vY+j8LoQ43dH8Nt89UfUJLPP921T5ehXzmeekFjKn78hQP3KYQzTw3eR9XE9Hno Fz6mD1j4imKZ1bYR5bziMS+RF1PHHoxXOaiyBjgD+5MHjqQ1+qaeVI80jre1eHL/Hxay LmDQlTRXj4xHaQnZ6JlRJCfddR6oODMo4JGI+7gAAbzhx8uGYj8C6KQcOzkoOYT79Xi5 Hz/d9mKLEdroOsTXPVbcQoEzSUAO7ETQnjFyRN4hurm+7c1xJnTeLqgW72L/TOCAJ02T pmpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T48SKlXo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si47062715pju.90.2019.07.26.03.02.09; Fri, 26 Jul 2019 03:02:26 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=T48SKlXo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726001AbfGZKBT (ORCPT + 99 others); Fri, 26 Jul 2019 06:01:19 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43262 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfGZKBT (ORCPT ); Fri, 26 Jul 2019 06:01:19 -0400 Received: by mail-lj1-f196.google.com with SMTP id y17so26339439ljk.10 for ; Fri, 26 Jul 2019 03:01:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ulNW18rlea00T4v4mX0XiyIJoM8J8QRrrh1waQS7iQg=; b=T48SKlXoPZS+Jtcvyo43u8l9a3NdUpuXfKaLqrLvaU6MVPQUIPnHk8ifvkq/L613Ck kVbpp3vSLdgMZ/HiSlrZyh7SyvGd4Vrk1m7od62jEEkSvLC4kOkrtIwCZsXOwv9PmyEV vtud/HmBRJPqQ2QLODuaaxzbD4pbixtF7g1JCBFLtwbi8+vV/D8jh1E7QVqrh9iF0g7Z mMUj/nRel538JHLA/il+Xpz9JyJzQ34Ky+W8EZoXWi4vmu6HKpeEuLfsy1UHEqHN0Es/ CPYo9AaQA/X4gff59JLKqVugvmOhCFtKAGJydV9rdhViWR1sOWIFuljQtrKVln9LPHSs 38wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ulNW18rlea00T4v4mX0XiyIJoM8J8QRrrh1waQS7iQg=; b=K/xMNhWrQyzgqzzhU+vhyNrzfbvKOMKp7vz1B3VL1547Wjwr3cI8ZByJ8vuhldfcCn 57DXvYzYxYW/Kc+UGbWlKlo3bLjDlzAsFSfj7coCGzTD0kTBIGw5crYf9YJ8PjlvtZX9 5q4ZMx0vBnWq0CL/Zr2j08ubP1DvXm5E8+wGnzjDbIGzcFyZGzj6THP4w1oeY/266mFD hkZAdXeTlT79a6MYTJK5Caypv0AcX+Rs4baz1fXioD4pt7/J1xucMUtn4u0DatBHIeWn sXab4EByaPmd+e8jahS+FdOSM2VowOku/J2KaOQbyOSh1zen7oIcO13OYG1QZsHBdqok ECPw== X-Gm-Message-State: APjAAAWq3m8MO1k0B+YI/wvclBOwecyWEwJ9AsCw3vDUa8oN5aHJOabr vZ+LLQ67RzQ1Usp6SuyWfFjMHaAbItagqcQ+ld+8yg== X-Received: by 2002:a05:651c:92:: with SMTP id 18mr40612881ljq.35.1564135276954; Fri, 26 Jul 2019 03:01:16 -0700 (PDT) MIME-Version: 1.0 References: <20190611154751.10923-1-anders.roxell@linaro.org> In-Reply-To: From: Anders Roxell Date: Fri, 26 Jul 2019 12:01:05 +0200 Message-ID: Subject: Re: [PATCH v2] seqlock: mark raw_read_seqcount and read_seqcount_retry as __always_inline To: Thomas Gleixner Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 23 Jun 2019 at 13:16, Thomas Gleixner wrote: > > On Tue, 11 Jun 2019, Anders Roxell wrote: > > > With the function graph tracer, each traced function calls sched_clock() > > to take a timestamp. As sched_clock() uses > > raw_read_seqcount()/read_seqcount_retry(), we must ensure that these > > do not in turn trigger the graph tracer. > > Both functions is marked as inline. However, if CONFIG_OPTIMIZE_INLINING > > is set that may make the two functions tracable which they shouldn't. > > > > Rework so that functions raw_read_seqcount and read_seqcount_retry are > > marked with __always_inline so they will be inlined even if > > CONFIG_OPTIMIZE_INLINING is turned on. > > Why just those two? The same issue can happen in other places with other > clocks which can be utilized by the tracer. > > Aside of your particular issue, there is no reason why any of those > functions should ever trigger a graph. Yes you are correct. I'll update the patch with __always_inline to all functions in that file. Cheers, Anders