From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 740EF3D0D5; Tue, 23 Apr 2024 23:33:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713915237; cv=none; b=FZCsXevuQA4keBLcbbSWlzfN3u3L40ylP/k9iv7Xa0vc2teilYHfrTz2fbUoOkEc0jGkWNW2oPoCHrC10u6Qrs4NeVE3rPHT+/+B+10a2Fzl67dZm6eycRgufKKzjbFJkhO7JESgVhgyQrwGBftk3ZTsBQFh8arWMW/vcPdI+dU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713915237; c=relaxed/simple; bh=pZMvugS9OqaVXkiu1xLb3KyRdXtqZcAifDivlF02aAE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CTWk70mWPRijxRXvbXYFY1r6bk/32vb622lrYR4DbyuYeFaktq1/ryrC5qi595FjBnApTuo3sLXenpuyXLQeW9JRkeBKh7DCOvkO3dEJo7UGX+JC/jlVMYreE4PHVHjoTkAskQXyqill3Tat0brMPJTo/vIQaLORCk4okJKNr3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=S4MudUzQ; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="S4MudUzQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713915236; x=1745451236; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pZMvugS9OqaVXkiu1xLb3KyRdXtqZcAifDivlF02aAE=; b=S4MudUzQWJXA+mwTdIBps4Y3IiQjHDwEi7fGmMiqqYQORGa8MuqLh4ke UsFwOShHxEdU4ktv4D922EhuM4AbgfCy7s7vYvqNg4NJgeFM4NlkdvI9U il0LgBTljlPhQ7fAJi7Yfnk2ujiy/cg46q8SH7MC92aWoHu10rdzgdvHW JdYWj+cRBzmpsirZ7nEQLfkt5fXSVhCYF1TlNuBFA/Z0NBPGMFiGEzD2C LrHRpBLWgcsxvAOmxAbSAzStNGAeUmORUYbho7FfBq560jsLGd68A7R7x PlXH5qfVD/VOuQcUvt3cxx5/cHghii1roTq3jc3GHcR4iychiTqthz94r w==; X-CSE-ConnectionGUID: SMK2Vb+NRPaUpsmpTT69YQ== X-CSE-MsgGUID: j8Kk0zKfQE+cXxBs/S/1sQ== X-IronPort-AV: E=McAfee;i="6600,9927,11053"; a="34924752" X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="34924752" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 16:33:55 -0700 X-CSE-ConnectionGUID: lKHs73H4Q0Kq18x1X5IDHg== X-CSE-MsgGUID: p2Q1wPQ2TkCz/Uvxypdd9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="28966876" Received: from tassilo.jf.intel.com (HELO tassilo) ([10.54.38.190]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 16:33:54 -0700 Date: Tue, 23 Apr 2024 16:33:53 -0700 From: Andi Kleen To: Adrian Hunter Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Ian Rogers , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH V3] perf scripts python: Add a script to run instances of perf script in parallel Message-ID: References: <20240423133248.10206-1-adrian.hunter@intel.com> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240423133248.10206-1-adrian.hunter@intel.com> On Tue, Apr 23, 2024 at 04:32:48PM +0300, Adrian Hunter wrote: > Add a Python script to run a perf script command multiple times in > parallel, using perf script options --cpu and --time so that each job > processes a different chunk of the data. > > Extend perf script tests to test also the new script. > > The script supports the use of normal perf script options like > --dlfilter and --script, so that the benefit of running parallel jobs > naturally extends to them also. In addition, a command can be provided > (refer --pipe-to option) to pipe standard output to a custom command. > > Refer to the script's own help text at the end of the patch for more > details. > > The script is useful for Intel PT traces, that can be efficiently > decoded by perf script when split by CPU and/or time ranges. Running > jobs in parallel can decrease the overall decoding time. > > Signed-off-by: Adrian Hunter Reviewed-by: Andi Kleen