Received: by 10.213.65.68 with SMTP id h4csp997852imn; Sun, 25 Mar 2018 20:54:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELsLueqUvVz+6Ay+rLyv2LiGQEBtVmADfVnwgaSO/64Wq/i+DbvxU9r5XdQeFGrdWBMNUxKB X-Received: by 10.167.130.205 with SMTP id f13mr14706404pfn.20.1522036495368; Sun, 25 Mar 2018 20:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522036495; cv=none; d=google.com; s=arc-20160816; b=jckO9ZpjrfFwRwqztEYvo15Y0tkAEhgaRirUIFOlyvvuH8sVFFXONTIdnWXuYyhe1x c0uJYXVnScGcZAPA7cDOUZVpb7/i12ug5MyP0cLKYORurEMydDgb7aBA0EMeDT3A9Kk3 fhY6IVGyr8xhtjvHZcLqLiFGCyz4GbUkI86Yi8CZy0MWpiINVqPxl7wY7qPgS+SVx/0v l3Z9mcdOvrA75yPSWGwsiIuO1m8v68SXxuKWCRMxmQUFzaOCysdWyKDdt597TjEfx89R IqZq4sa6QQYJxxmsCV7pDaEdPjR02Ksy+p5aNF+RHLS9sUNi+8wryS04VN/5NmX4vvI0 7izg== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=LVzBiuuPkMfuAjQsE711/rWVSiYU7IRfjJkCFg7+jyU=; b=Ycl3+Ym1X3pYctFn3mphI2LQCgRTcGsUlUBtULSc4/0tQWB/2GNgBOKgBKg+DFcDG9 L9R4uN6Lvuzc2LoG4gYmh6bVbLpCBYZNyJyhVhygsG1sD4fHP8Xpyil93e2TL2ArWB/+ f/zJSBgjaYFBUDVs5qHALRXenOBpG8wxC6Q4y63Jh9920frZBQ1roa2FapSVWhS7fHIL lz73df3eQXFi2uJrQyy/kaTs8rgCdztyqNeAKe7T3hFrTelH+FZYKre+gYSSYj8tkYYB iiq/nj2NAD9DP3O1Ws7ewrYxve6EleqLQ0/V3BYxN/Vt5AWkjWKI91WFsKK56eG3yEEt 6RrA== ARC-Authentication-Results: i=1; mx.google.com; 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 i188si9376006pgc.178.2018.03.25.20.54.39; Sun, 25 Mar 2018 20:54:55 -0700 (PDT) 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; 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 S1751174AbeCZDxq (ORCPT + 99 others); Sun, 25 Mar 2018 23:53:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:50322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832AbeCZDxp (ORCPT ); Sun, 25 Mar 2018 23:53:45 -0400 Received: from devnote (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4221021749; Mon, 26 Mar 2018 03:53:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4221021749 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mhiramat@kernel.org Date: Mon, 26 Mar 2018 12:53:38 +0900 From: Masami Hiramatsu To: Ravi Bangoria Cc: Steven Rostedt , linux-kernel@vger.kernel.org, Ingo Molnar , Namhyung Kim , Tom Zanussi , Arnaldo Carvalho de Melo , linux-trace-users@vger.kernel.org, linux-kselftest@vger.kernel.org, shuah@kernel.org Subject: Re: [PATCH v6 21/21] perf-probe: Add array argument support Message-Id: <20180326125338.16f9eeead34feeb86114ee39@kernel.org> In-Reply-To: <8b3ad72c-f28c-8fc0-32b8-4401dbe16358@linux.vnet.ibm.com> References: <152129024033.31874.15800253385376959274.stgit@devbox> <152129118998.31874.16273532808298489908.stgit@devbox> <8c02c538-4934-59c2-7795-9058ce57e625@linux.vnet.ibm.com> <20180322182347.ca1aab9b77ab4c351100646b@kernel.org> <8b3ad72c-f28c-8fc0-32b8-4401dbe16358@linux.vnet.ibm.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Mar 2018 16:19:46 +0530 Ravi Bangoria wrote: > Hi Masami :) > > On 03/22/2018 03:53 PM, Masami Hiramatsu wrote: > > On Mon, 19 Mar 2018 13:29:59 +0530 > > Ravi Bangoria wrote: > > > >> > >> Is it okay to allow user to specify array size with type field? > > Fro this patch, yes. > > So IIUC, perf _tool_ will allow user to record array either with "name[range]" > or by "name:type[length]". Please correct me if that's wrong. Yes, it is correct. > And If perf tool will allow array length along with TYPE field, I guess we should > document that in man perf-probe? Ah, right. OK, I'll add it. Thanks! > > Otherwise, > > Acked-by: Ravi Bangoria > > Thanks, > Ravi > > > The availability of type is checked only when > > it is automatically generated. > > IMO, it should be done in another patch, something like > > "Validate user specified type casting" patch. Would you need it? > > > > Thank you, > > > -- Masami Hiramatsu