Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3006416pxa; Tue, 25 Aug 2020 08:59:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8wsXUMC7cygjQMoWEdEQHqHvzPvlu0XgvG2iVh0kxHOm/nHpt5WvqSxB8arpIH42aP/+a X-Received: by 2002:a50:9dc2:: with SMTP id l2mr10728642edk.290.1598371174349; Tue, 25 Aug 2020 08:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598371174; cv=none; d=google.com; s=arc-20160816; b=uLyEDo5/lyRZSz7MGJVWq6G3v2LGsAG2jY4RfSXuC86J5esSOZOsEQDrfAEuqB3VdI uKg1xAdSQxW4c63PRhbIhNGIr8aLZfWtaQcEWFdtBW4U8pyaWSZv8K7dX2HxPGKubRhm d59Coj21o7Y+3isQujjSSC7zdshRKn0h9LYWTPKcDIrOr+LoUXrbtFx4vTC0p4qworJx /WKOcilivp8Bdq8Jr4N3S+98zZZdJE5NEVCppeFnGroXl5kAorYfuWHO7MVVwDhmxefo NJ9D1dAygJ3jC7rA4cnIBLK2AULQNn7n3PIrfyzBqTEJuiEuhr+Uxi5a3pIp3p84x/GT NdBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=ouXe7pQwMtesYHcNB5WbkW2FzRVuNmL+0TNeWTtbbZw=; b=hjeI0wNOOVH+7viZUtbhzO0hyjAvKdcEMw/h2gMma2PUyoACJxmlA6Qbo9pbuA3Ay1 E8Fzwh9dhleiiMRbJR2FgZafZSjEYiJD6AH3/SNkGi2OYcnSorsLUSXn1vgK+tnbBSin 8fL3EyPfyUl7cDanU7Z1HelWtueDmVZPSCrbTJREASkf80LmVDD4V6f+TvE9Nu6ZkDDJ 9nYRcv3+Wxg9+nMhP+83zE8Q9fGK1C2FihIMOdph7ryVSiD8KiJzCcIpdavRBN2Rm1dw VqRbCgevy47wnjZmhgwF0B20hRohKFQmYrnXBKu6TPNvxCO0WX5poQ8CyVJ3zuPk25rZ ClqQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt2si11529936ejc.67.2020.08.25.08.59.09; Tue, 25 Aug 2020 08:59:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726673AbgHYP5u (ORCPT + 99 others); Tue, 25 Aug 2020 11:57:50 -0400 Received: from mga02.intel.com ([134.134.136.20]:42814 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgHYP5t (ORCPT ); Tue, 25 Aug 2020 11:57:49 -0400 IronPort-SDR: nmCdGcPNwigStIZTdKCMeo9l9w5NWdPLG9KvRhxNIcL316aRZvaf2tXQ7SajahVjF9p1lIrmr6 TPqKz8iQqz4Q== X-IronPort-AV: E=McAfee;i="6000,8403,9723"; a="143916176" X-IronPort-AV: E=Sophos;i="5.76,353,1592895600"; d="scan'208";a="143916176" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2020 08:57:49 -0700 IronPort-SDR: CZ0OUMq/2Wps2vSIlSVLi1OAPFFDR3A73gnlpCzVQL8MOjU3oeXEX4QBMMvjFT51zj9SqNQuAj rvcTPoBWiQhA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,353,1592895600"; d="scan'208";a="328905060" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by orsmga008.jf.intel.com with ESMTP; 25 Aug 2020 08:57:49 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id CA454301C53; Tue, 25 Aug 2020 08:47:21 -0700 (PDT) Date: Tue, 25 Aug 2020 08:47:21 -0700 From: Andi Kleen To: Kajol Jain Cc: acme@kernel.org, jolsa@redhat.com, yao.jin@linux.intel.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, irogers@google.com, maddy@linux.ibm.com, ravi.bangoria@linux.ibm.com Subject: Re: [RFC] perf/jevents: Add new structure to pass json fields. Message-ID: <20200825154721.GP1509399@tassilo.jf.intel.com> References: <20200825074041.378520-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200825074041.378520-1-kjain@linux.ibm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 25, 2020 at 01:10:41PM +0530, Kajol Jain wrote: > This patch adds new structure called 'json_event' inside jevents.h > file to improve the callback prototype inside jevent files. > Initially, whenever user want to add new field, they need to update > in all function callback which make it more and more complex with > increased number of parmeters. > With this change, we just need to add it in new structure 'json_event'. Looks good to me. Thanks. I wouldn't consolidate with event_struct, these are logically different layers. Reviewed-by: Andi Kleen