Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3143020pxb; Tue, 20 Apr 2021 01:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXKWfaImSEKa7Mft9wESgHHbGRM55RQVKOwTUQIJ00Y5Rr9HoDnyNAEx44WehEvkZz6Ona X-Received: by 2002:a17:902:d3ca:b029:eb:4ae2:6d6 with SMTP id w10-20020a170902d3cab02900eb4ae206d6mr27937121plb.69.1618906628642; Tue, 20 Apr 2021 01:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618906628; cv=none; d=google.com; s=arc-20160816; b=GsAXlt6Sd6myGuSQBNpnUNUafwpvKsVjWd0KdSeIbeC+1tUoDKwWF5DsPFG/ixQYrI 7Rl0vOeveM3syLuE3tT2Z3DhEqSJyU5hT2I3mqOIj8anmFETEPt7rphbhg0TS4IObDAE xrQ9Twptw2fMyKKRrK3WirRbIPk1GMYcV9scyLN87bAILZf0wyVjUSDXVm5G7PZvSgj0 kmqrUh/aPWpCuaNUlzg5Gcii+CHWEI7d6SW99uK7SR2x8XVsrY7r1HgeyawC4S5pDgMF tV+bOMwye0DB0noDiz8Ekj4E6bxn0/zUAA/Na71wq645DBWFPzxgoqalLPKTC8YQpYyr hV9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mTgcNVJK9mVrzDm2sPN3v+OzrqXCxv+kyGLvCj9swpQ=; b=uwOPEipVGFXCa0ZqMKnupHM/iTLmAcTfyJa42qNDMdnvpRV24rStE9oHVXW3FW4zyZ hDy8GlIN9Vll7GzJmTUGE+55yv+/QS6/BWOOgSQAhaCgu6mjuIfDJZzMBlpWDc/Fx5Xw y/OTb3Xj5FoRg45j9LVs2qWzgbAY9J+XcTabBWIjk9sYbanUE4I/9emdhI4WPUrKn6X6 xyk+tUJqcnJ2SPYbAkF+2AHi/gDGkk+EkWNkexQJaXTM0qfTD2bVstNN8keI90tx+pWu BAmVMA7hGjg4UsFezV9RIR3k9fQqwLD5TfKBNDzz4ZQNFFcJYcEiGeDK5zoM0iVhzUvd mmjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c75FpBCd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si20592544plg.237.2021.04.20.01.16.55; Tue, 20 Apr 2021 01:17:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c75FpBCd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229736AbhDTIPr (ORCPT + 99 others); Tue, 20 Apr 2021 04:15:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbhDTIPq (ORCPT ); Tue, 20 Apr 2021 04:15:46 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B78ECC06174A for ; Tue, 20 Apr 2021 01:15:15 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id q25so6276260iog.5 for ; Tue, 20 Apr 2021 01:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mTgcNVJK9mVrzDm2sPN3v+OzrqXCxv+kyGLvCj9swpQ=; b=c75FpBCdwj6gGxvbgYgFw71N8QyQmzVuJ2SN8jpBbtQiYGTQI1NrwVmFo/fH9JdhDn 1iHu4pvbGKFkv7TwrP87gp56qxhCOC72YsDUeZQ0VURYRXU8iR980wAM4LLroj1SrYFm t5GDfkrhsBlqbIiZYCWE3+DpFPIIf81MilhfNyWQYjqxjXh6RXZt4fxn/i5eASJRVG9J bx8iibjlZkdwEZXfF5NIzZJWYIsobME9f3C75cNDQK1v/TdqFadj5pURWvMsxCAHjpPd Xn6ZoRi2HBZ3Jq7lj4jb1frwrHuttakf1rIUSO018sjamqcUO2/8k3Ifse8Y0qfRblUP pQ2w== 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=mTgcNVJK9mVrzDm2sPN3v+OzrqXCxv+kyGLvCj9swpQ=; b=AW1Skqv8t9M6FhNAFe8w+1A939NHv4WV/o1VY8yywcgLeX1GxNFZ+cr3HN5lPhTJbp Tqf3IMi3FzbuB6qK7gwpdczgPPrpb6Z3yQgyb8scY/ESdQRJpEvqtwqs8aKQTHf2VJji av5Iixi0tuodlRgQ1HrcVNeabWFeEBJakhmbuJA9yeLrAFdiTF6OI2OqAi0xrkiAShoH R1uBJyNABBg3FlukrKQWR+L4t14zT0aA+2O+ehOlpUg7csie0oilnkxWKh4K1JgyceVA Ic/WjdTYXotuQGjl1basG2BRbezqyd7FCquOVpWi38A9VFOl3u+NNXSb/sV8i9mlDYEA LOJQ== X-Gm-Message-State: AOAM530MqJF77QfJp+sysZshiqu1WiJr+w2ttfrqomWjNNpnpBa559zD HdOuUWgL5tYbFKFtkAzGBe29avRbNk5Ruqoa5SctBQ== X-Received: by 2002:a5e:930d:: with SMTP id k13mr17875787iom.61.1618906515033; Tue, 20 Apr 2021 01:15:15 -0700 (PDT) MIME-Version: 1.0 References: <87r1jbv6jc.ffs@nanos.tec.linutronix.de> In-Reply-To: <87r1jbv6jc.ffs@nanos.tec.linutronix.de> From: Lorenzo Colitti Date: Tue, 20 Apr 2021 17:15:03 +0900 Message-ID: Subject: Re: [PATCH] hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event() To: Thomas Gleixner Cc: Greg KH , =?UTF-8?Q?Maciej_=C5=BBenczykowski?= , Ingo Molnar , Anna-Maria Behnsen , lkml , mikael.beckius@windriver.com, =?UTF-8?Q?Maciej_=C5=BBenczykowski?= Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 1:47 AM Thomas Gleixner wrote: > Enable tracing and enable the following tracepoints: > [...] Sorry for the delay. I had to learn a bit about how to use the tracing infrastructure. I don't know if I can post here, but to my untrained eye, one big difference between the old (fast) code and the new (slow) code is that the new code calls tick_program_event() much more. It looks like that makes most of the difference. With the old code, hrtimer_start_range_ns almost never calls tick_program_event at all, but the new code seems to call it twice on every timer update.