Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp344295lqg; Thu, 11 Apr 2024 05:04:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW76hFY0mKdIWFGCGV0eYYVTSpM6Hv7ZRn+j27O2hf9vkN3qMT2JguCQUD/jWA4JD7M4Tmwdp6Mjwta4mmo7b6+xCNPQdy/n5dvUwG/FA== X-Google-Smtp-Source: AGHT+IG3qCViqS+/vdEU29VAm+FYaGlsBNMl4eAaPhCfdBfF7zerkBuBMD+EWNlFq9zmA6wlqwNB X-Received: by 2002:a17:907:6d05:b0:a52:24d6:3024 with SMTP id sa5-20020a1709076d0500b00a5224d63024mr1084019ejc.12.1712837094101; Thu, 11 Apr 2024 05:04:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712837094; cv=pass; d=google.com; s=arc-20160816; b=rnoHtl+OYJJnXBwWtiIYlnIYBJjoaBgVT6iKRSSylITPXpUVzBAp8hGK3Rlix3qmiu /a+QfGG883vRltiq4q+B60b7TiCEG3smcIkE001NJJLcvzwNlSgfbzN02mH9cjnbooUB 9Px36bnE5rZxZuih9I+VWSQxiEYS77egNKyHqAPuZXl0DqetgEQQKULoxSP3r9SjAnso uMR1Fyl85s0YxtsX1DezXepAK8C9WlOn3abPo6+6rWfnlbSrSlWeeQlOwcxFJDCDsXRD JEkabKHF9a8Gl/pUzoPW1517cZbEcr9VZ3d9I50fi1kZtCviGfbHeQXkW5N/0gYJ4YKR lcJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:content-language :references:cc:to:from:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=sb+1VnUmVSU4tTE01IPDdtsu6d7kd8SKQG7Qr4BIqEs=; fh=WJeT0grmLWRmKgkl2wHplzKKrVIl9I4GBp5LKaLkpmU=; b=e991DyGVeWyCNb4K/6IRlH1P8wftnnmw3Vacqq6qPf1dznrvucgHfK9+GwUbGiPEjP YQLBW1LoMgWVaRlCp9+tgk0vDBZJb1J4vEldxA4H/ck9OfnlgRHo+/qDsm8ihniDr5gT L3XAADHfX366tWvL86kWW3P3GJms6Dpa1shPGddeZTLmqYiU1mN71+DzSVLXalRQhteN +wDzkHie/hK2dBnnGO0zdSWnqQl80JX3qsnyXLmLEGObhRD9YEpe3TZcUHMuzv/ckqeU 0pV4hiWBnVXC7jRrFL8u6d/4iT3CNPEYs+ZYoDOHIFCYQNK7cnUof8g6JjAjDEx1Djz2 flAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ItXuUV94; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-140402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140402-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id di18-20020a170906731200b00a51bc19eba2si701098ejc.386.2024.04.11.05.04.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 05:04:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ItXuUV94; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-140402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140402-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D00321F22CCD for ; Thu, 11 Apr 2024 12:04:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CFA414B06B; Thu, 11 Apr 2024 12:04:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ItXuUV94" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 60C9D14AD0E; Thu, 11 Apr 2024 12:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712837085; cv=none; b=PXEzSerTNfPUowWZjoxPAZ66p5BKrji0FLoIiK+i17bsgwhQV4sxKMO8WAyKac4SbL4zIhnn3AxiVr8seHJ9k2oyqrWyncb4+/y8XBHuP7SApz+o1H5KBKyRfkGyLy7H/nSncd1pT7NWm83sRv6ppW0yARMJv/Nb89B38QBCHEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712837085; c=relaxed/simple; bh=xTkF8wx7JBTmFK3mgmRAiHBZbcPnN27OP3J1vTmrxhI=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=XRMWAciv979Fxpvts8SDCIThfOGpR/WoMQFBWvcc3EdhbmZhbipAF+CTlNxCk3W8sRHACaq8zdIst5rvbpx9ehB++9Xy7x3woMWDgTKXin0BpwFlxEBelP701xJhb3yjnuzUz71Ekvhq87ArBXBgMVxruDSsr6gDEiquaFA+Crc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ItXuUV94; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712837084; x=1744373084; h=message-id:date:mime-version:subject:from:to:cc: references:in-reply-to:content-transfer-encoding; bh=xTkF8wx7JBTmFK3mgmRAiHBZbcPnN27OP3J1vTmrxhI=; b=ItXuUV94o1tq0Bc2sModz7zMmbSR1Wz/SG2O7wwAzelWDHSHRG8GShwg OIvEnWKvhnanaExAmrtGGKN0G0o1zwrcF/DZjOEI8uxcMHTZxEktr6oHx 4JmGfIRWvGC2VUV05+DI2ncCYVm1ImA31L/TwdKMyBf18G6wgXP7dmGRJ BvnZNKsyjFhfxjpfYmZrN4BZ7QVE8Q63rho7l75de6YRm/SLRU9vGPqbR BAEc79QhIa+ejuSyDs+mOOu2+tcxZEdMNqYfPFtVuVXJXIUt1YE7+sRfC Gz3OLi7YhUy0YYd/tR/uqIwBZLdOWXRWev5cJY3FeXULlwtaiOA35dYWS g==; X-CSE-ConnectionGUID: VEDatFd/Sq+VkObhLgbnRQ== X-CSE-MsgGUID: bop0ol1+TeOisslIG0GDtA== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="8093915" X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="8093915" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 05:04:43 -0700 X-CSE-ConnectionGUID: Ks/IUgP/QAKd3BhXy+A8GA== X-CSE-MsgGUID: ARmyUGWSQl6RoziNKLSn0A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="20954852" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.251.215.66]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 05:04:40 -0700 Message-ID: <97124d27-066d-4df3-99c6-e040c90c314e@intel.com> Date: Thu, 11 Apr 2024 15:04:37 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2] perf scripts python: Add a script to run instances of perf script in parallel From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Namhyung Kim , Ian Rogers , Andi Kleen , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org References: <20240313123634.4353-1-adrian.hunter@intel.com> Content-Language: en-US Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20240313123634.4353-1-adrian.hunter@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 13/03/24 14:36, 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. > > 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 > --- > > > Changes in V2: > > Added option to pipe to a custom command > Added option to set a minimum time interval > Minor tidying Any comments?