Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1048261pxb; Tue, 1 Feb 2022 16:52:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXK19EbTrkFbsFW7HM3J1oYQPnMPOBZlTxzUvDh9cTjI5H+PApN8b10zmTIHpNAY9T4XRL X-Received: by 2002:a17:906:d550:: with SMTP id cr16mr22806905ejc.257.1643763146251; Tue, 01 Feb 2022 16:52:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643763146; cv=none; d=google.com; s=arc-20160816; b=xrBpcDpn+X0p27W9v+I4HkR1mjexCCFyFvgH5P4IialWJg9pN3RwITpsan8Dgq8iq0 OQB3Gv5rSKYYYOruI1iPWXwTpSUdVyiVJKjEEGlgxIWrG82BINgoo91uWIZVaEfc456P eSFNAwBvpiL/5WpgqErybmV7TBbeiecM6jfNUGFAMHTG470ZArgziJ0DxhVsmfnGa6Na 5NxzSs8zNh1DfroXM6o4MEUSa3GSWVCTq2Nmr9E0czfUZnrOh8rM4mf4NPselC7USIbt j0IIPPbN2AvPA2DLjmOiTMvU5V4f3dLsl6Ci+HK0uc972+Pn3AP5KYzYs6yXpRzdZXHs AACA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VUzicT1oBzz6nkGfZyk5toN/G9gt4XUgrL9j+ZzFpi0=; b=L7R+Ll1Sfar8QKCotlL8pZhUoq3uSwb5XuRAa33lXxP1f3yzZiAfdF2Ktp4sWieHEI Zng1gTfIMP2gjwj1JETfgnEwCPGfqQPwcUSiCU4bKmfFN9PZx9lwAMLycSLSDa2P9X8J f6zxMhpkw7Z2LfK9sncgkaWsylO8sO8FBlf/QUHx0dDhw7rTmx7uau93P0eJtuiYgNEu MXK6hid0KydIXSYUiU7GmK0xkhZ0tlLQ94+GL2ouz6rWpa7oubtjD6K/X6XQvOv1B3sq C0lij9xMQNs57+2qYR8BC/80UNlwn0jsHdOG+KX83ENOK0YRfRSI8yk59Of4LSSBj7hY oq5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iY7Xwzk9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn17si9843008edb.535.2022.02.01.16.52.01; Tue, 01 Feb 2022 16:52:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iY7Xwzk9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231540AbiBABQR (ORCPT + 99 others); Mon, 31 Jan 2022 20:16:17 -0500 Received: from mga04.intel.com ([192.55.52.120]:6251 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbiBABQP (ORCPT ); Mon, 31 Jan 2022 20:16:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643678175; x=1675214175; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=yFiMbxHv2jU9Dq48eIVP79iXy+cfXC+v6KdXN0sS4A4=; b=iY7Xwzk9wPDYshWLVS9lxuMJg9JsnEfoNSxkl58r6fFbFTNCEF6GCi1M qp4vZj42cSDgkHUlVgM9Bmp5zAG/yMLG9YN3BTfS3U2UUYixVJXZRRveP AAZTIAKPzGfbq/Cl9L4J9RLChm2fwSH1TukDKI/DQ4EBCOn0FDsYt8YNT Mdc4/w747bCVgqxMfKjJpEY5kwMs8VWcIQTvW3PILrHKvaf74Bbb34CC7 B0JVPuCs2G1T9ZqADEg2Yb6U7512Kz4p56soBl0N8KLO8xnZVevudMZRO Wki1sqINr7omUmqewpexVt22acPhBcbhIgMW2qde4Qbaw76Lll4YjiEE9 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10244"; a="246432693" X-IronPort-AV: E=Sophos;i="5.88,332,1635231600"; d="scan'208";a="246432693" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2022 17:16:15 -0800 X-IronPort-AV: E=Sophos;i="5.88,332,1635231600"; d="scan'208";a="497163766" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.65.131]) ([10.209.65.131]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2022 17:16:14 -0800 Message-ID: <2db9fab4-0aff-b8b0-5012-13556ea496af@linux.intel.com> Date: Mon, 31 Jan 2022 17:16:14 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH 0/3] Handle chroot tasks properly (v1) Content-Language: en-US To: Namhyung Kim , Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers References: <20220128203950.3371061-1-namhyung@kernel.org> From: Andi Kleen In-Reply-To: <20220128203950.3371061-1-namhyung@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/2022 12:39 PM, Namhyung Kim wrote: > Hello, > > I found that perf tools don't work well with tasks in a chroot. The > filenames in MMAP record are from the root directory of the task so > it's different than what it sees from outside. While that's a real problem, and for chroot it can be fixed, it's much more complicated for the more complex container namespace case with custom mounts, including loop back, etc. It seems it really need some kind of agent to handle all cases. For example the agent could understand container metadata formats and then do the right thing. -Andi