Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1219023rdb; Fri, 9 Feb 2024 14:20:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEw8Ffj3EzrWZHug3ANg9YuOOmaCtP6qBnTEWMLaskwYdq86w7VYBzrlkt295DF7je0O6pO X-Received: by 2002:a9d:6254:0:b0:6dd:e1b0:443e with SMTP id i20-20020a9d6254000000b006dde1b0443emr485174otk.5.1707517257791; Fri, 09 Feb 2024 14:20:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707517257; cv=pass; d=google.com; s=arc-20160816; b=X0Dn1rMG+aTqQxK2alimdY4KvgQedKbOQYNpGFqN5+MTMtFEZvKQ7imSrkgdklmNun Z8VZz34dpmJf9j30R2s46dNe5J7hkOM3gn9xdLb7Oy6ODgFk1YLJcCTmtr6eabNzhnK8 h5X2sqi1JthCUMmokSDGRcovW/VV8IDiyvfOJwe1OX5AZO9yjjk7pxCb8WLvAN+z6MEb c3EtaCruQkJwV1ZXNlmFUlUauwslFnexMOX7HaevNj2D4q1pkTj5Qo5m21qLj3bkLoo7 9nuN0qzTb5SfMHpGAWHsp4O4V7PtGTo9LexbhC+xznEtKnWfvv6WrhYCQ6HPBI+W3vZf ENfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=vSpH3XP1/gQeYF1Xn5yeWLNgqbZUSgkZEhbfGjwV1tg=; fh=ebPCIEMdXuFE/PIixYhgd2qJAiPDb+VqxLWUU19SjcM=; b=DluNcoIvOzvpbRYB+UVGRzsZB3t+4gyVZHNvK2ENHLAyD5vcCgZSc3QJb6HenQ4MxT wNPVV1VR9VCaeLOjMJVRAcA4MxbQ2qwvZ4bnSMEyNB+SNEf2kW8S/E4iMNhO83xeHcxV PQHLktEg8vt+GWAhaQNd7r6l9SFUqwSUyec3pZ0+yie2z6J/vyod1QTaUUW0szrlyxOh EVM9CfQ/FKsylbd0Dh4P4kdwP4QUgKIqBaM5yzpA1D7EXN1nsJkPkyVSOgtkhUN8RNys X0MPNm0cldfN06FGGPVSt3GLMLcn2f3e0jCGSOODleT4wNe57uzE/taHUalU3gQ8CfPe 5PBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="c/5hfDGo"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWgxpCxCN88sPvyZHEmbXkL1yaIfFFw5IkbWPRfgq7vnJU7Ka00yRtn+CmjIRmqg8kXmtg11K5ltskvfbUvgFy3kj+cbkotgElu7CISPg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y6-20020a05622a164600b0042c43fc863esi2931803qtj.574.2024.02.09.14.20.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 14:20:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="c/5hfDGo"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5848D1C23740 for ; Fri, 9 Feb 2024 22:20:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 818B93D3A1; Fri, 9 Feb 2024 22:17:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c/5hfDGo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9C75B3D0CF; Fri, 9 Feb 2024 22:17:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707517032; cv=none; b=rRoLxhwXAUuXt4TW9sFKjbKLeO0ganF3XS/X5+xr3Zky9PhLy+jiIrKe29bMmYoct8HJrnZNtOtxWJvofjfnMwBR+KiZIuP0FeAOP5nw+y2ge9UoJXbgRy0CwNl7R8phFfcPZuiQet46fV4tMoTkFgTC6vY8rqhRMDO6wjyOQGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707517032; c=relaxed/simple; bh=c6IuqT/3KzhMdjqabgBPLCyZ42MmIOWZIsSmelU0NV8=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WYZDNVOqA+pMoBXtqnSNoacszEIDMQvZtEO+wHuotGRgPZY0jS7sBIcDxNP/i1IW/vy/zSpzfjxk5/lLe9fXAfAb9Exc23ZWfTYcvOR5U05a1gtyqD9FausZ4Irur5MuBVBK/SKD2qMSp4+IJSlgMpDirl89sE20gkXzY32YKKk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c/5hfDGo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B303AC433F1; Fri, 9 Feb 2024 22:17:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707517032; bh=c6IuqT/3KzhMdjqabgBPLCyZ42MmIOWZIsSmelU0NV8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c/5hfDGoRk0PIphjSpLonjGsa/V3tOZFRYGgwYHpxomuB0iNzt549Eo5iQ51rsVTj G4eSNRO416MkFWtVY7Ap5wm2Z+fJtJbom0pU8lAul2uGRdegOZ4JZy0k7Ixr5Gyyns DrIyoFK7Adf4sgxUj7vtiIn+jWqJHnlKUTjcYpyhfH4IpQLmWbtC6ChurbkxtGqYVT udnXA476GHYLy1N+0vMSFA+q0o3soJI9qMwLWXnkzVxEe0AYzhw2SAlErTUHZD11a0 3+WRbK8CC88moHhTmkNHg5FP837Y75tVt0zri1dJR7HUwDfFf3X4G88KmUPk7BPU4q eQY2GYhIfxstw== From: Namhyung Kim To: adrian.hunter@intel.com, mark.rutland@arm.com, irogers@google.com, jolsa@kernel.org, alexander.shishkin@linux.intel.com, acme@kernel.org, mingo@redhat.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org, Yang Jihong Subject: Re: [PATCH v2 0/5] perf sched: Minor optimizations for resource initialization Date: Fri, 9 Feb 2024 14:17:09 -0800 Message-ID: <170751693775.1169242.10719709967267743164.b4-ty@kernel.org> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog In-Reply-To: <20240206083228.172607-1-yangjihong1@huawei.com> References: <20240206083228.172607-1-yangjihong1@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Tue, 6 Feb 2024 08:32:23 +0000, Yang Jihong wrote: > start_work_mutex, work_done_wait_mutex, curr_thread, curr_pid, and > cpu_last_switched are initialized together in cmd_sched(), > but for different perf sched subcommands, some actions are unnecessary, > especially perf sched record. > This series of patches initialize only required resources for different > subcommands. > > [...] Applied to perf-tools-next, thanks! Best regards, -- Namhyung Kim