From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932826AbdKGIPN (ORCPT ); Tue, 7 Nov 2017 03:15:13 -0500 Received: from merlin.infradead.org ([205.233.59.134]:54858 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932636AbdKGIPM (ORCPT ); Tue, 7 Nov 2017 03:15:12 -0500 Date: Tue, 7 Nov 2017 09:14:57 +0100 From: Peter Zijlstra To: Milind Chabbi Cc: jolsa@redhat.com, Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Namhyung Kim , Michael Ellerman , Andi Kleen , Hari Bathini , Jin Yao , Kan Liang , Sukadev Bhattiprolu , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT. Message-ID: <20171107081457.GE3326@worktop> References: <1510006156-18988-1-git-send-email-chabbi.milind@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1510006156-18988-1-git-send-email-chabbi.milind@gmail.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 06, 2017 at 05:09:15PM -0500, Milind Chabbi wrote: > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > index 362493a..d458214 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -433,6 +433,8 @@ struct perf_event_attr { > #define PERF_EVENT_IOC_ID _IOR('$', 7, __u64 *) > #define PERF_EVENT_IOC_SET_BPF _IOW('$', 8, __u32) > #define PERF_EVENT_IOC_PAUSE_OUTPUT _IOW('$', 9, __u32) > +#define PERF_EVENT_IOC_MODIFY_BREAKPOINT \ > + _IOW('$', 10, struct perf_event_attr *) I really hate this thing. I would much rather see a more generic update perf_event_attr interface. Where we allow modifying some of the perf_event_attr fields.