From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752763AbbLJEI3 (ORCPT ); Wed, 9 Dec 2015 23:08:29 -0500 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:50751 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752356AbbLJEI2 (ORCPT ); Wed, 9 Dec 2015 23:08:28 -0500 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: namhyung@kernel.org X-Original-SENDERIP: 165.244.98.76 X-Original-MAILFROM: namhyung@kernel.org X-Original-SENDERIP: 10.177.227.17 X-Original-MAILFROM: namhyung@kernel.org Date: Thu, 10 Dec 2015 11:00:12 +0900 From: Namhyung Kim To: Josh Poimboeuf CC: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, Jiri Olsa Subject: Re: [PATCH v2 00/14] perf tools: Move perf subcommand framework into lib/tools Message-ID: <20151210020012.GC13790@sejong> References: MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB01/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2015/12/10 11:23:55, Serialize by Router on LGEKRMHUB01/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2015/12/10 11:23:55, Serialize complete at 2015/12/10 11:23:55 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2015 at 10:21:38PM -0600, Josh Poimboeuf wrote: > Ingo suggested that I factor out the perf subcommand functionality > (originally copied from git) into tools/lib so that it can be used by > stacktool[*] and possibly others. > > All the subcommand option handling files have been moved into libapi, > including parse-options.c, run-command.c, exec_cmd.c, help.c, usage.c, > and their dependencies. Since several of the dependencies are more > general-purpose "utilities" which aren't directly related to > subcommands, I put everything in 'tools/lib/api/util'. They're linked > into perf as part of the libapi.a library. > > Patches 1-13 do some cleanups and splitting up of the code in > preparation for the move. > > Patch 14 does the actual moving of the files into tools/lib/api/util. > > Based on tip/perf/core. > > [*] https://lkml.kernel.org/r/cover.1445443144.git.jpoimboe@redhat.com Is there a public repo that I can pull and test? Thanks, Namhyung