Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1525792pxb; Wed, 2 Feb 2022 06:59:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUl3toFeIy6Cd3+Rkv5AmECRXpy5YbCDma/C+bdW06YiDDRJ33tSGOvBY2KN/9TUfBefJU X-Received: by 2002:a05:6402:3c3:: with SMTP id t3mr30726373edw.336.1643813987721; Wed, 02 Feb 2022 06:59:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643813987; cv=none; d=google.com; s=arc-20160816; b=dUaj3TQpJ26CMQOKdvkhc2df211e6D/WY8l1XdaA3C0RcFU9Ze0m2/eUUq0kd6gGFY dyiT2QIeifxrqAoya/Ivo7WU9+DHyiCge1zs4aUi6XQiJSh0+BGbfdJrMi+o+hxSN/p4 ZRPSb/GgZ8t2NnsF3gUegZeaaEQ2ciWimZ21zqyBt5eIzJEOzam6CwnT9jxOFNOV4pqc 9yCYzjCxOsx7rWH2W1YidE9xqqoq4AY6hV29ShuU5As+hnWqq9TxKjMdBIXsnFJnYuj4 ZkKsdVhicX8J/3xkmOw7q07IMMOahtROvdaXlLDTYKuRMOCWL9BS2kpxJ/duAYH8K1WN htXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=v6FMf2eJSEGsi+8SBS2ozN59klWZb5hsA929bkPzCfQ=; b=PWgzpv01LXJF0So22On0yFc3gavWE5ZUAWNRrDACjsigz0rBW2QVRoQA0R3ambNuOJ JuRVo8FDvi6Xu9mCfdeLtT4cvXgOyUOqwD5ScpnRmyPf7+m1X18zloReqU3stjbUGBdI nWUbdBCEB0waLRZkcmmedRLEXNFpbEQmrTzlulnvgLTNBzJ9svM6ox82MOlSiG6l27ft hTZH0Pc/rChUWtcS5I+A0SAiQEaQVcECIYIVqukzH19L1UKTAOOEloJkvC5Ogbo7HMlV KfDvAlkT7qY5kQXOpVZlAWN+Q0tuY52ewtENgSOs8B1j88t3dlyvfGjCpU8jv4SkcDBN qNAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa4si12630237ejc.284.2022.02.02.06.59.22; Wed, 02 Feb 2022 06:59:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234959AbiBAUCC (ORCPT + 99 others); Tue, 1 Feb 2022 15:02:02 -0500 Received: from mail-lf1-f51.google.com ([209.85.167.51]:34434 "EHLO mail-lf1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234665AbiBAUCB (ORCPT ); Tue, 1 Feb 2022 15:02:01 -0500 Received: by mail-lf1-f51.google.com with SMTP id p27so36203515lfa.1 for ; Tue, 01 Feb 2022 12:02:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v6FMf2eJSEGsi+8SBS2ozN59klWZb5hsA929bkPzCfQ=; b=3goaKCHzZCli4wCk4XslloVJc3hZyx8tpPgqMJ3YOIApe+GmNVTbMqycr1FTAD/NDK XXZ7U6RUekEcKbQ5T9YGbtmA6Y9ZT82oPH+pYG8EPXoAhucvPUX2QC/pcljqdLwrCdiC 6Qiya1izYIjpJcbrIljLX0JdeK5TZW+EfZzWnTy9UBF4QtJc/O+Gj8EFrhVnQy+gXC5n ZvuQT5hl77PbB1auZM9IvxZeWdwyFd4d1ghy+x4e86GSuuA1p5FeFLJkDJVAb0169GGl KEjbdrYsZuXHUU9KC2hIQk3BHj0fvt1Ruj86Js8F9JVHtbzFQMa1PlCLpJd5T+w9BpjN V9Vg== X-Gm-Message-State: AOAM533z772jQPwAuZfdMUq3kEn2lDKnE+DRbt2g5pvyO5/pklgQUXpD m2TOtGeVOa+2ibjxGhmN2tsWVM45tUw3uPOmbfg= X-Received: by 2002:a05:6512:ba4:: with SMTP id b36mr8717947lfv.481.1643745720259; Tue, 01 Feb 2022 12:02:00 -0800 (PST) MIME-Version: 1.0 References: <20220128203950.3371061-1-namhyung@kernel.org> <2db9fab4-0aff-b8b0-5012-13556ea496af@linux.intel.com> In-Reply-To: <2db9fab4-0aff-b8b0-5012-13556ea496af@linux.intel.com> From: Namhyung Kim Date: Tue, 1 Feb 2022 12:01:49 -0800 Message-ID: Subject: Re: [PATCH 0/3] Handle chroot tasks properly (v1) To: Andi Kleen Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andi, On Mon, Jan 31, 2022 at 5:16 PM Andi Kleen wrote: > > > 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. Probably. Note that perf tool can handle namespaces (to some extent) but missed chroot support. I have a bug report because of this issue. Let's fix the simple case first. > > 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. Sounds like a good idea for a long term solution. Thanks, Namhyung