Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1915076ioo; Mon, 23 May 2022 06:14:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx57TyI+D3XnCTBwDMSI4lDt3kMnono9UF28oUu4a9hXb6VuakUKUGcqSGDvuza66/6r6XA X-Received: by 2002:a17:90a:b017:b0:1df:6f31:c273 with SMTP id x23-20020a17090ab01700b001df6f31c273mr26254097pjq.167.1653311659274; Mon, 23 May 2022 06:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653311659; cv=none; d=google.com; s=arc-20160816; b=loswvoMBG8xaItKK+njgQMNnsvjw9NTnspbihNxHY5NqAXaRFyILdBkHnj+Noxmzzj dB/F6WGg+Ko/j34PJL3aUar6teei8xtm3jjlqf8aVawA/4DER1bhF4M6TKClyD7RTlac lO+3VKAKHaARKqqV30y2CJXgwcj2dozbF80NhxmV3+bcPtajPH+sXAkBMt5CaTR15p0b HmcajCrTIkR60nkTjTQSsulqWRh4t5FmnPku+nyDPn0+ZN/pv9PQNzsG+YnwVZ7LqYfc P9mTeh7vjfWL4/WLgIUS8+jeULCUtBwjDbZYHQaTDrv3JiBvyIm+GZrNoQ4S9wZkVNsb hB2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mNyu56hPq0SaW/Fjd3JrxvNfZd6Uz9hca11agxgrK0A=; b=I70PIBzTjUxCYe4mlTKEDGVNiSs4yB6qhxTcswgVqQcxFzKvDYpAYyvlhpKNh6zweF a4qP7QlFZ3ZJIJR6GYEyGig7jTUDtg6tQphntZ3gW+ta9EScDK2O+uP6o2bNt+iRjVrz 8a2nxDmMfeiH1z59WoUvlHTRGnpz6iOvfTtaS6NTHBMTsuImBQgARCZ7IBuIIGdLiSj4 hTTP5RuDK7GDRpg3sU8CL+CWs9/KmEUbyygqA7s339J7kg8JhZlAPg6z4++//8bAQGA8 fQ4ZNSFs8IEJ0thkMpSpCwl+6e+ZNnggv0y6Bvyg0OZ7UA3ZlJ5pQLtVHqWCNcXtvept 0OSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GJuQJe0W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 70-20020a630449000000b003f28179e6basi8777818pge.671.2022.05.23.06.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 06:14:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GJuQJe0W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9D7582CE09; Mon, 23 May 2022 06:12:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236087AbiEWNM0 (ORCPT + 99 others); Mon, 23 May 2022 09:12:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236032AbiEWNMP (ORCPT ); Mon, 23 May 2022 09:12:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BAF62669 for ; Mon, 23 May 2022 06:12:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A1C9AB810AD for ; Mon, 23 May 2022 13:12:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B828C385AA; Mon, 23 May 2022 13:12:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653311531; bh=sQH8pLW5zGb26Lk/aNAhQwXPoKxk9hGgY13tGh91Y8E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GJuQJe0W/QoCP7IgYE3761/xx8U8nHQ5ffbzxvwoEgEef4EqohCB+YfZdkI89zPIg hEeUGxe1YejKbyn8wvPaRYvuwKmU15AGXZp38gHzJFxOwBXgMt2KcZ/KViB9NM32VB Si/VZiT1y29luyB2gPdpP7ITK6Xngr5tHEtBbGNUuYDgQj0q/7rETy8Z8wpSKPMjuL MzauARYGuHGMorIpqlXylJHwrOadIwT5yFRYoOHypj0fb3xYfjSS3XYOuaR32Fzogk ZtEP5sNOy62vVQF9obCzDZeYVx6Odlj04uXuI7Q+Haa0HW/r8qZqMjP++JebohSPMr 8oQHgIwP49mYg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 5AD50400B1; Mon, 23 May 2022 10:12:09 -0300 (-03) Date: Mon, 23 May 2022 10:12:09 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Adrian Hunter , Namhyung Kim , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] perf inject: Minor improvements Message-ID: References: <20220520132404.25853-1-adrian.hunter@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, May 23, 2022 at 10:16:56AM +0200, Jiri Olsa escreveu: > On Fri, May 20, 2022 at 04:23:59PM +0300, Adrian Hunter wrote: > > Hi > > > > Here are patches for 2 minor improvements for perf inject: > > 1. Keep some features sections from input file > > 2. Keep a copy of kcore_dir > > > > > > Adrian Hunter (5): > > perf header: Add ability to keep feature sections > > libperf: Add preadn() > > perf inject: Keep some features sections from input file > > perf data: Add has_kcore_dir() > > perf inject: Keep a copy of kcore_dir > > LGTM > > Acked-by: Jiri Olsa Thanks, applied. - Arnaldo > thanks, > jirka > > > > > tools/lib/perf/include/internal/lib.h | 2 + > > tools/lib/perf/lib.c | 20 +++++ > > tools/perf/builtin-inject.c | 162 +++++++++++++++++++++++++++++++++- > > tools/perf/util/data.c | 14 +++ > > tools/perf/util/data.h | 1 + > > tools/perf/util/header.c | 62 +++++++++++-- > > tools/perf/util/header.h | 15 ++++ > > 7 files changed, 264 insertions(+), 12 deletions(-) > > > > > > Regards > > Adrian -- - Arnaldo