Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp48551pxa; Wed, 26 Aug 2020 04:34:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXxQC2E23KQL5dyDPSUGex/sUvqYWl2YjmmgLNQB/lA0T/5TFNPZ+jLV9sAmZVsLQtNuE6 X-Received: by 2002:a17:906:7204:: with SMTP id m4mr10628117ejk.342.1598441684595; Wed, 26 Aug 2020 04:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598441684; cv=none; d=google.com; s=arc-20160816; b=e0bS1dAYVqDReZusPHaCTjWZIQt6YQMLwibDfPI8Zm6bKtBCpG1X6RlTLMhrHJ1rtH tlmdop1ibHKlmrPatIrbZ0Bi9bk/WUpZPauosfBvSDmyAJ58SIeX0jCSMkY/Blbn+jq9 i+y3aHRdkdNDUwgpZmksHTeUNN/MRfahTXLEjFQQfefHLPb5EIhtjyps1owQVcMugFXj W/J466DKJRjsfco+avVSurEOGQA4Fs2XH4wBgqxe6gNlwCCs+2e26XbOs93jMrlj2nPV f4qOMKn3qeephM6zzbQ52mKZyY6H450YwzjXZtVcmlyV6bLELBPcDM8MzGWyqrmLOMwP mwmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=kR+pjLBctfx3lnZ9jetzXm8pnsrD+WSR4LXeo+/s3Hw=; b=dH64WQOTPzCl+dOp4Gn/XldSp0sNuOPFCqJ39LnrHSHzQxMKHN4583kPOd3J7PeYdC Q8uZdIN0DmWvT7Mk/BJZ7WXKMr5mL19jWCohFqDXRHqgGSaILmyL550sz8I8INSrjW5P P9by7U9YbmokrYGlB5ZJQHorKctuiWugzE1W3Zoo9peicOZKXnWlQe4/R4FNyGwrhu2J M/As70PAdjwQR8+xdoLYINjMISTfFSa+Q7DXL3gFwJ6vQAaeHXh709hBFoIwXlQZDWTr eTsH8jBce3zyaBtToShlrCoWwaTmDzju+Zaki/PlMF23VHB+XPbMJ7nB9otxHMrk7Fjh FHcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=NCf1lq8l; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si1383488ejg.432.2020.08.26.04.34.21; Wed, 26 Aug 2020 04:34:44 -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=@ibm.com header.s=pp1 header.b=NCf1lq8l; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729007AbgHZLb6 (ORCPT + 99 others); Wed, 26 Aug 2020 07:31:58 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55480 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728951AbgHZL0e (ORCPT ); Wed, 26 Aug 2020 07:26:34 -0400 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07QB3lm6132483; Wed, 26 Aug 2020 07:25:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=kR+pjLBctfx3lnZ9jetzXm8pnsrD+WSR4LXeo+/s3Hw=; b=NCf1lq8l/KxpifR1/9KcOuGFK525iQtqiwQS8JazKrpohzC+LSSeqf2nUtK16NBekdr8 fnYUIncJjJoGD3VSkWD6gI6mo30Xm0M3Pi7H3kJlf2LJwvo5xIcm/SQtM3wGgHKvQCQy twxMGgwCTRNZcFZeaIsOw8jhgWlGiX6z1vcEJQp1a0OlZKXt8ezKO/ZfCirUkdd9kbHu 0kqsLHO0uqN+mQVMQXkSDvJYkj1oCzSl98bTgHYc1e8howlKIJWhAU+MSZrK3pivSe+p 32lc7QGYXZVQAr7Lq9MkcI0v+tNk2sN3NuI3BG9A+kXUytyra0jtLfExbrMAE+QmUXRb dg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 335mhv3q4w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Aug 2020 07:25:38 -0400 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 07QB4Aed133560; Wed, 26 Aug 2020 07:25:36 -0400 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 335mhv3q4q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Aug 2020 07:25:36 -0400 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 07QBLY2Q014267; Wed, 26 Aug 2020 11:25:36 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma04dal.us.ibm.com with ESMTP id 332ujr9k20-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Aug 2020 11:25:36 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 07QBPZoC53412334 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Aug 2020 11:25:35 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5868AAE067; Wed, 26 Aug 2020 11:25:35 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 48FB1AE060; Wed, 26 Aug 2020 11:25:32 +0000 (GMT) Received: from localhost.localdomain (unknown [9.199.43.94]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 26 Aug 2020 11:25:31 +0000 (GMT) Subject: Re: [RFC] perf/jevents: Add new structure to pass json fields. To: Andi Kleen 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 References: <20200825074041.378520-1-kjain@linux.ibm.com> <20200825154721.GP1509399@tassilo.jf.intel.com> From: kajoljain Message-ID: Date: Wed, 26 Aug 2020 16:55:30 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200825154721.GP1509399@tassilo.jf.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-26_08:2020-08-26,2020-08-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 bulkscore=0 suspectscore=0 adultscore=0 phishscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008260085 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/25/20 9:17 PM, Andi Kleen wrote: > 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 > Hi Andi, Thanks for reviewing the patch. Thanks, Kajol Jain