Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753124AbaAXTet (ORCPT ); Fri, 24 Jan 2014 14:34:49 -0500 Received: from mail-ea0-f169.google.com ([209.85.215.169]:48205 "EHLO mail-ea0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753088AbaAXTeq (ORCPT ); Fri, 24 Jan 2014 14:34:46 -0500 MIME-Version: 1.0 In-Reply-To: <52E2A866.1050400@codeaurora.org> References: <1390581656-16372-1-git-send-email-adrienverge@gmail.com> <1390581656-16372-5-git-send-email-adrienverge@gmail.com> <20140124164343.GJ31040@mudshark.cambridge.arm.com> <20140124171754.GM31040@mudshark.cambridge.arm.com> <52E2A866.1050400@codeaurora.org> Date: Fri, 24 Jan 2014 14:34:41 -0500 Message-ID: Subject: Re: [PATCH V2 4/6] ARM: Make PID_IN_CONTEXTIDR incompatible with PID_NS From: =?UTF-8?Q?Adrien_Verg=C3=A9?= To: Christopher Covington Cc: Will Deacon , Russell King , Catalin Marinas , Ben Dooks , "zhangwei(Jovi)" , Andrew Morton , Randy Dunlap , Mathieu Poirier , Dirk Behme , Michel Dagenais , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2014/1/24 Will Deacon : > I think I'd rather have the global ID than disable a potentially useful > feature, especially since this is likely to be consumed by external trace > tools as opposed to user-space tasks. I understand. 2014/1/24 Christopher Covington : > Would it be reasonable to make what's > written to the CONTEXTIDR run-time configurable? If so, what would be the best > interface for configuring it? This is an interesting option. An other option would be to keep the global PID in the Context ID register, and rely on kernel support to translate virtual PID to global PID when needed. Then, it would be possible to select a task to trace via its PID, by asking the kernel to write its global ID to the Context ID comparator. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/