Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4485049rdh; Wed, 29 Nov 2023 02:53:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjj0H5PggxvSosQ3g3GOrDfV+MXVpPqp2y7R/qLmP8CurvD+fjzc8wRzQeVkC3JvinLxn1 X-Received: by 2002:a05:6a00:2410:b0:6b4:c21c:8b56 with SMTP id z16-20020a056a00241000b006b4c21c8b56mr18356849pfh.23.1701255199100; Wed, 29 Nov 2023 02:53:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701255199; cv=none; d=google.com; s=arc-20160816; b=i/X8N5tN7gLpnvDSm6T66alt01/27PkLV4nVLDBIQjnhF+vElMAWtOnOIxFf6JCEYp 0z0f04gyfOakeud6Dx2OrqK1xY8l36ElBlYI3f6xZ/6p+J6Kj3jcOWqQAVgJWlWn7maA 67IyNOd1/U/se2UxhFp6WgdPx6yOhGgdrM2aym9XUTv3iynO2sPQvY/rHYHPLF1mfGgO 8ZaryWqLeK6upaHqJM4rL/m/xd89QlfFML5UmdKSGW6248uwiGEk1FKWCucrN5vv28X4 viJot8pW64PS0FQtFLb3NwsQg3izvswGvWReUJ2l/O/pudNc7gWDwzEuz1UxekZA1aOT OhyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/OekEShUlQdJpo7AqAfaxY+vi6Bol0LFK9LTWBoiQ5M=; fh=jf/G49YsZpDGMi1IlC1mwvfGwxhvGnxXzav6s5/1q34=; b=qafup/DROXiqEQRG/XUx4JZJwM5VQ2fFTkrujYkooeVsOfK29K7nb7VIOmDr3x2Q5M AVRXALyfEMSdgGsF6Nm1vstMuQpuhm/HpTJJsUKpzX+/IqBERmYYrAAAXEoxM9Dx/lN/ S91BFnEfffkFomOAcmNPaOYbfueGecAZbTo6oL/wE7XCnGbUbr1q5dK+qWDp3imSGwe5 h6L2xNT6jNgGtgBhrEHdqu2hRW7soUyBRsfQotVUXXt84a+4FvRenISOxlgFJAi5Ws6D vFxFUC0FNMxYj4kTGoGC9MYymDuxyVikapoEuwpB8p7u2/08OIQF+EsMTr4Oy3ymSKz1 22pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=abH9ikdM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id e31-20020a63545f000000b005c21363f9b0si13917583pgm.766.2023.11.29.02.53.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 02:53:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=abH9ikdM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 907CD804BC2F; Wed, 29 Nov 2023 02:53:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbjK2KxA (ORCPT + 99 others); Wed, 29 Nov 2023 05:53:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjK2Kw7 (ORCPT ); Wed, 29 Nov 2023 05:52:59 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA82010CE; Wed, 29 Nov 2023 02:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/OekEShUlQdJpo7AqAfaxY+vi6Bol0LFK9LTWBoiQ5M=; b=abH9ikdMp2xRajwn9eXjNI/KOg Lugjk+J03nV25J4wm8/VAsB0k9Bq9Fyvu9PUe/dU8oZDnvjoXoUwWhpvB13zqiK76ie8AqQKiaVIL QrnjLjqnMAWY3FzNnL64l9KwFK6OWKI+vhrQc6er/btaes0Iu1me2jWgNdBFBZRXvNKcv1K2FKHvp glxDq3LMgoZ4nyGu2fzvAm0rLTQO8QhMEKSXlXuYCLZvW5Oz0krdizLlmseM+UDtl4xK3+b5WVqbO S4u1awcHr6Xr6jeE9arGWFB1upo8yi8jXcEzY73+RqUSM9D3ueK6t/xnbtusOC+ScXoLotNS3cq7r hDCZWf8A==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1r8IAh-000Jk4-0K; Wed, 29 Nov 2023 10:52:01 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 01183300293; Wed, 29 Nov 2023 11:51:57 +0100 (CET) Date: Wed, 29 Nov 2023 11:51:57 +0100 From: Peter Zijlstra To: Adrian Hunter Cc: Ingo Molnar , Mark Rutland , Alexander Shishkin , Heiko Carstens , Thomas Richter , Hendrik Brueckner , Suzuki K Poulose , Mike Leach , James Clark , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, Yicong Yang , Jonathan Cameron , Will Deacon , Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Ian Rogers , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH RFC 1/3] perf/core: Add aux_pause, aux_resume, aux_start_paused Message-ID: <20231129105157.GE30650@noisy.programming.kicks-ass.net> References: <20231123121851.10826-1-adrian.hunter@intel.com> <20231123121851.10826-2-adrian.hunter@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231123121851.10826-2-adrian.hunter@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 29 Nov 2023 02:53:16 -0800 (PST) On Thu, Nov 23, 2023 at 02:18:49PM +0200, Adrian Hunter wrote: > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > index 39c6a250dd1b..1232e70adfba 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -456,7 +456,8 @@ struct perf_event_attr { > inherit_thread : 1, /* children only inherit if cloned with CLONE_THREAD */ > remove_on_exec : 1, /* event is removed from task on exec */ > sigtrap : 1, /* send synchronous SIGTRAP on event */ > - __reserved_1 : 26; > + aux_start_paused : 1, /* start AUX area tracing paused */ > + __reserved_1 : 25; > > union { > __u32 wakeup_events; /* wakeup every n events */ > @@ -507,7 +508,15 @@ struct perf_event_attr { > __u16 sample_max_stack; > __u16 __reserved_2; > __u32 aux_sample_size; > - __u32 __reserved_3; > + > + union { > + __u32 aux_output_cfg; > + struct { > + __u64 aux_pause : 1, /* on overflow, pause AUX area tracing */ > + aux_resume : 1, /* on overflow, resume AUX area tracing */ > + __reserved_3 : 30; > + }; > + }; > > /* > * User provided data if sigtrap=1, passed back to user via So since you're adding a aux_output_cfg word, could you not also put the start_paused thing in there?