Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1325527ybf; Sun, 1 Mar 2020 06:39:10 -0800 (PST) X-Google-Smtp-Source: ADFU+vsiCkMhD+zJlZtSzHpzcucDWg/ufuwOAAWzYE9PM3oexUy+EylzQVt731v3PJbD1ao/8Ze/ X-Received: by 2002:aca:230e:: with SMTP id e14mr395300oie.169.1583073550113; Sun, 01 Mar 2020 06:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583073550; cv=none; d=google.com; s=arc-20160816; b=YLDRGBsEgCooZ2H0tGZBfKXyjJE/SfqpkrYpAeBj9NcLtnZiWWGTjH4jAvU1wg4OKw gTVxoAK1hV4d+FQoSWtpPX6DGrmJfTUd40pHQ55sDWKshFDucnE5zde3dvmpoMDou7jO eRSoGfd1ui799S6+0R9IR8WBuTHVNyFcBRM24UpTfH0d4v37XsLwuDTZI/51K1eNAc9V TuIlIpJ09yBc/fmVjtA1J9PEIz7sycx2fzHH0vHcIllOIqh2x9mA1/62CeDnaGAOhMQe FayZwhf8JWc1EjTxAnWPvk5wFmSZwrvb2H+8hNEQVPQ3+IRn+rS6MJ0sf3AK6BHS5ra2 N1eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=MT8m5WxhVAoLR+Wqbebd8/i32Xvn2qbRw1p7UnjqdyI=; b=Gk81bJblpY2jJG1AksBWHH4lwu/NurcjcaDOSfqTSCXSFNlUkjplvzNghlPnSISFNy V7GnKGJGupuNJe2OZdkGVXUsudPsCFu64poyLIN5MXbFDqByUyJcOWJdOcm/Yv6PW/UD n9Y+3+gx6ininZ4LsILPANzztl9/nP6JEtphPf0XStxjIp2phP3ov30wAZl/Tw/9KYY2 2ts1FK/Nbwt0GmT1IgxvbN/QgEsn88Z6+Qz9imoVASG2fEC+BfHXUEkWlAxEaRxm18tD xMEYmcmODoyr3yJXlBLahLexzv+gC10+rxHa8zmqpNytZlONKcV2yNqb8ID0XdrKIoKe r4MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=A9FM8HH2; 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 i12si4845302oik.171.2020.03.01.06.38.57; Sun, 01 Mar 2020 06:39:10 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=A9FM8HH2; 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 S1726690AbgCAOhK (ORCPT + 99 others); Sun, 1 Mar 2020 09:37:10 -0500 Received: from mail-pl1-f174.google.com ([209.85.214.174]:39678 "EHLO mail-pl1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbgCAOhK (ORCPT ); Sun, 1 Mar 2020 09:37:10 -0500 Received: by mail-pl1-f174.google.com with SMTP id g6so3143374plp.6 for ; Sun, 01 Mar 2020 06:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=MT8m5WxhVAoLR+Wqbebd8/i32Xvn2qbRw1p7UnjqdyI=; b=A9FM8HH2Cc9gf4xyEvyhvDqWd6l0Sxv+umWhApKrfhUCvpqlnXJJQLNpequ1+KSOg+ Ubqrhzue5SniVoZjuXjrPRM2u1SLlF9ntK6envGE3H+i5RM7hQ1OQdsIXRHosRb9gajk 5+PWHJBWHkqbbWfS2ijqVxA2t04gplycn2HVSLIh3lSbeCa/zRMlUBT7lThWYvkTlZei 6urFZxH4o9y6myxQaiURhPAwHQFoR903r7JcJeios5EFPsSRLbVcIhMcbXdVKvRzoDrV kgK/EN6k/blfhsjers+p+Od+6qNSnzki93bAGtaeBtk363en1Z0g0/UgY2A82O87l3Du nUtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=MT8m5WxhVAoLR+Wqbebd8/i32Xvn2qbRw1p7UnjqdyI=; b=hRmaCkzLMCAeohq0T/aB12JnFBdhJOKhRidADNXimN1fnwbAcvHNRjZsAUnO0xxbR+ FDLffgqXLOf4gcRKEWWxtm8MBZ1JC/TXEFqj2D4ySYDM/j+BhiFZ9tz+VRUm+230dIbe 61zxjVHRzPKA+/d1P98RKiF1EF36rtnoWlA6hQuTIdLqNfPD1xtw5g5Yf3RKv+TLuSI0 /tMrRIlTuq9WXeKHIC8rKJAnFaDmVoj0kfVmIXQjy7K1jZeYxUNYVukjCy60MXf9AGIJ tHTx/Vtaeo+YiojOF5wwjhCqwIqs+fC39d2Igkh0m/DLWJCmcx06POI77tYaNJsAWKeL +2UQ== X-Gm-Message-State: APjAAAWn8BB6hALAK7wBZl/HQiAS4sNmFkOA/sLtmAxlZQMTO4NKCWNh WYyPlb4N2o+ZxXDqXM1xjIQ/aA== X-Received: by 2002:a17:902:504:: with SMTP id 4mr12387749plf.276.1583073428012; Sun, 01 Mar 2020 06:37:08 -0800 (PST) Received: from ?IPv6:2601:646:c200:1ef2:c4b0:4a97:f98c:7f8c? ([2601:646:c200:1ef2:c4b0:4a97:f98c:7f8c]) by smtp.gmail.com with ESMTPSA id f19sm10354660pgf.33.2020.03.01.06.37.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Mar 2020 06:37:07 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [patch 4/8] x86/entry: Move irq tracing on syscall entry to C-code Date: Sun, 1 Mar 2020 06:37:04 -0800 Message-Id: References: <87imjofkhx.fsf@nanos.tec.linutronix.de> Cc: Steven Rostedt , Peter Zijlstra , Andy Lutomirski , LKML , x86@kernel.org, Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann , "Paul E. McKenney" In-Reply-To: <87imjofkhx.fsf@nanos.tec.linutronix.de> To: Thomas Gleixner X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Mar 1, 2020, at 2:16 AM, Thomas Gleixner wrote: >=20 > =EF=BB=BFSteven Rostedt writes: >=20 >> On Sat, 29 Feb 2020 11:25:24 -0800 >> Andy Lutomirski wrote: >>=20 >>>> While the tracer itself seems to handle this correctly, what about >>>> things like BPF programs which can be attached to tracepoints and >>>> function trace entries? =20 >>>=20 >>> I think that everything using the tracing code, including BPF, should >>> either do its own rcuidle stuff or explicitly not execute if we=E2=80=99= re >>> not in CONTEXT_KERNEL. That is, we probably need to patch BPF. >>=20 >> That's basically the route we are taking. >=20 > Ok, but for the time being anything before/after CONTEXT_KERNEL is unsafe > except trace_hardirq_off/on() as those trace functions do not allow to > attach anything AFAICT. Can you point to whatever makes those particular functions special? I faile= d to follow the macro maze. >=20 > Thanks, >=20 > tglx