From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754675AbcH3Vpa (ORCPT ); Tue, 30 Aug 2016 17:45:30 -0400 Received: from mail-ua0-f175.google.com ([209.85.217.175]:34604 "EHLO mail-ua0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752420AbcH3Vp0 (ORCPT ); Tue, 30 Aug 2016 17:45:26 -0400 MIME-Version: 1.0 In-Reply-To: <20160830165830.5e494c43@gandalf.local.home> References: <1472463007-6469-1-git-send-email-marcin.nowakowski@imgtec.com> <20160830152955.17633511@gandalf.local.home> <20160830165830.5e494c43@gandalf.local.home> From: Andy Lutomirski Date: Tue, 30 Aug 2016 14:45:05 -0700 Message-ID: Subject: Re: [PATCH 1/2] tracing/syscalls: allow multiple syscall numbers per syscall To: Steven Rostedt Cc: Linux API , Ingo Molnar , open list , Linux MIPS Mailing List , Marcin Nowakowski Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Aug 30, 2016 1:58 PM, "Steven Rostedt" wrote: > > On Tue, 30 Aug 2016 12:53:53 -0700 > Andy Lutomirski wrote: > > > > Egads! OK, I see why this is a mess. > > :-) > > > > > I guess we should be creating the metadata from the syscall tables > > instead of from the syscall definitions, but I guess that's currently > > a nasty per-arch mess. > > Yep. > I wonder: could more of it be dynamically allocated? I.e. statically generate metadata with args and name and whatever but without any nr. Then dynamically allocate the map from nr to metadata? > > > > Could we at least have an array of (arch, nr) instead of just an array > > of nrs in the metadata? > > I guess I'm not following you on what would be used for "arch". Whatever syscall_get_arch() would return for the syscall. For x86, for example, most syscalls have a compat nr and a non-compat nr. How does tracing currently handle that? --Andy