Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp141834ybl; Mon, 2 Dec 2019 08:41:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxBGKlDXnoczZumyL97HzRYBohouovpH+U2TtX3U+A1BpR0dJMzdWnMDMrsLNB9faFpsW0h X-Received: by 2002:a17:906:1356:: with SMTP id x22mr5878908ejb.55.1575304899417; Mon, 02 Dec 2019 08:41:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575304899; cv=none; d=google.com; s=arc-20160816; b=tQJHmazlFy+vHtoZyXyf3OyBiseTvPidfSDD0dVfP56CdKzyg1e5iy6CTlupzZElDO 6GbwD0Zn0Wlq5XOTwns+KnL4M6Yw+T1K12wjVp4TXwF4BRLUD3lTsDmfU3ySANN5LzjA eNQv9q+MwqKRPkEuH1RPHrHivE6xr/ZE0l9balqV3eIwo8LORkrq27I0mkh3Slx15wMQ xvevmRPrmQUdT1Or8Gwv0ybRWAI04zUfJtoQ4axDIKkj85OiTOjcZVpViWiJ0FEwrAn2 bEnAXSBUwjku8jcGPod5OpTb4f9cbmlKqsrq6N24ii320yQuDV+ibIKkTn1EdHMWM9i5 3eIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=VwuByhbJAwMf7AnZELRTqneJFKkTHH7uJbwU30JWRM0=; b=zPhhA9bxoASQMVgwGziE93B3+ekvaKl5fNmSxJUXbWEIYCLYk/OYZG8Pmoi6Gqjg5G Giwpm9SOcDm/erVL5nDBiSYHRtvs6Ox0XpsR2zRtyme81VqcumHcOuQ4T7ITWVipKDts u8rSLES7RfCAm148BVMnF7trfjjd1PJWq7bCRsX57Kkp9T8nNWPSEX6POaTqG/lMrevT yu7chdiHQF5nrBSI+Kh8o4+z3Z8sbGo+jNJ/kXPMn/4EFg6PPoY/is760TVmpGIz3ZIT g3aFM+7vvpir2mewGGLsvMid9AU2fM4P5K2pVsUQF9L5gmq5zrsLkvNuoJXF0YW9bv9u w/6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y17si12026764edu.83.2019.12.02.08.41.07; Mon, 02 Dec 2019 08:41:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727691AbfLBQiE (ORCPT + 99 others); Mon, 2 Dec 2019 11:38:04 -0500 Received: from mga04.intel.com ([192.55.52.120]:39001 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727418AbfLBQiE (ORCPT ); Mon, 2 Dec 2019 11:38:04 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Dec 2019 08:38:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,268,1571727600"; d="scan'208";a="410487760" Received: from linux.intel.com ([10.54.29.200]) by fmsmga005.fm.intel.com with ESMTP; 02 Dec 2019 08:38:03 -0800 Received: from [10.125.253.1] (abudanko-mobl.ccr.corp.intel.com [10.125.253.1]) by linux.intel.com (Postfix) with ESMTP id 551175800FF; Mon, 2 Dec 2019 08:38:01 -0800 (PST) Subject: Re: [RFC PATCH 3/8] perf: Init/fini PMU specific data To: Andi Kleen , Peter Zijlstra Cc: kan.liang@linux.intel.com, mingo@redhat.com, acme@kernel.org, tglx@linutronix.de, bp@alien8.de, linux-kernel@vger.kernel.org, eranian@google.com, vitaly.slobodskoy@intel.com References: <1574954071-6321-1-git-send-email-kan.liang@linux.intel.com> <1574954071-6321-3-git-send-email-kan.liang@linux.intel.com> <20191202124055.GC2827@hirez.programming.kicks-ass.net> <20191202145957.GM84886@tassilo.jf.intel.com> From: Alexey Budankov Organization: Intel Corp. Message-ID: <79138ea7-2249-b7e0-3541-8569e593c6e8@linux.intel.com> Date: Mon, 2 Dec 2019 19:38:00 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191202145957.GM84886@tassilo.jf.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02.12.2019 17:59, Andi Kleen wrote: >> >> This is atricous crap. Also it is completely broken for -RT. > > Well can you please suggest how you would implement it instead? FWIW, An alternative could probably be to make task_ctx_data allocations on the nearest context switch in, and obvious drawback is slowdown on this critical path, but it could be amortized by static branches. Thanks, Alexey