From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755097AbcIAPYi (ORCPT ); Thu, 1 Sep 2016 11:24:38 -0400 Received: from smtprelay0129.hostedemail.com ([216.40.44.129]:42768 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751949AbcIAPYg (ORCPT ); Thu, 1 Sep 2016 11:24:36 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::,RULES_HIT:41:355:379:541:560:599:800:960:988:989:1260:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2551:2553:2559:2562:2693:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:5007:6119:6261:7875:7903:9040:10004:10400:10848:10967:11232:11658:11914:12043:12050:12663:12740:13069:13149:13230:13311:13357:13439:14096:14097:14181:14659:14721:21080:21212:21324:21433:30006:30012:30034:30054:30060:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: badge72_4484ad1069214 X-Filterd-Recvd-Size: 2459 Date: Thu, 1 Sep 2016 11:24:28 -0400 From: Steven Rostedt To: Arnd Bergmann Cc: Andy Lutomirski , Marcin Nowakowski , Linux API , Ingo Molnar , open list , Linux MIPS Mailing List Subject: Re: [PATCH 1/2] tracing/syscalls: allow multiple syscall numbers per syscall Message-ID: <20160901112428.7c05dede@gandalf.local.home> In-Reply-To: <5227283.eAVLXfitJh@wuerfel> References: <1472463007-6469-1-git-send-email-marcin.nowakowski@imgtec.com> <20160830152955.17633511@gandalf.local.home> <5227283.eAVLXfitJh@wuerfel> X-Mailer: Claws Mail 3.13.2 (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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 31 Aug 2016 10:24:56 +0200 Arnd Bergmann wrote: > On Tuesday, August 30, 2016 12:53:53 PM CEST 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. > > > > I've been thinking for a while about how to improve the situation > around adding new syscalls, which currently involves adding a number > and an entry in a .S file on most architectures (some already have > their own method to simplify it, and others using a shared table > in asm-generic). > > I was thinking of extending the x86 way of doing this to all > architectures, and adding a way to have all future syscalls require > only one addition in a single file that gets included by the > architecture specific files for the existing syscalls. > > Assuming we do this, would that work for generating the metadata > from the same file like we do with > arch/x86/entry/syscalls/syscall{tbl,hdr}.sh ? I can't answer this because I'm not sure exactly how you would do this. Perhaps you could give it a try and code will be the answer to all my questions ;-) -- Steve