From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934446AbeBMJ1p (ORCPT ); Tue, 13 Feb 2018 04:27:45 -0500 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:42845 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934449AbeBMJ1j (ORCPT ); Tue, 13 Feb 2018 04:27:39 -0500 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: namhyung@kernel.org X-Original-SENDERIP: 10.177.227.17 X-Original-MAILFROM: namhyung@kernel.org Date: Tue, 13 Feb 2018 18:27:37 +0900 From: Namhyung Kim To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Masami Hiramatsu , Tom Zanussi , linux-rt-users@vger.kernel.org, linux-trace-users@vger.kernel.org, Arnaldo Carvalho de Melo , Clark Williams , Jiri Olsa , Daniel Bristot de Oliveira , Juri Lelli , Jonathan Corbet , Mathieu Desnoyers , Alexei Starovoitov , kernel-team@lge.com Subject: Re: [PATCH 17/18] tracing: Add indirect to indirect access for function based events Message-ID: <20180213092737.GJ31513@sejong> References: <20180202230458.840252014@goodmis.org> <20180202231019.582037880@goodmis.org> <20180209051301.GE28206@sejong> <20180209104758.093d31ad@gandalf.local.home> <20180212021534.GH31513@sejong> <20180212122354.1d2fb867@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180212122354.1d2fb867@gandalf.local.home> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steve, On Mon, Feb 12, 2018 at 12:23:54PM -0500, Steven Rostedt wrote: > On Mon, 12 Feb 2018 11:15:34 +0900 > Namhyung Kim wrote: > > > > It should have been: > > > > > > return process_redirects(arg, val, buf); > > > > But I think you need to consider data type of the arg when > > dereferencing the last redirect. > > What for? Otherwise it'd return a value of unsigned long type regardless of the type of the arg. I thought it should have same logic as indirect args. But it seems not matter since record_entry() would copy it only for the arg->size. Then type check in __get_arg() might be unnecessary too. > > Also this code has also changed. I haven't posted new patches but my > latest is in my git tree in the branch ftrace/dynamic-ftrace-events. I've checked it. And it seems to have another problem for indirect (but not redirect) arrays and strings. Like 'x32[1] foo[2]'? Thanks, Namhyung