From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752326AbdHHP0H (ORCPT ); Tue, 8 Aug 2017 11:26:07 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:50516 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbdHHP0F (ORCPT ); Tue, 8 Aug 2017 11:26:05 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Jessie Frazelle Cc: Peter Zijlstra , Aleksa Sarai , Ingo Molnar , cyphar@cyphar.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20170806044141.5093-1-asarai@suse.com> <20170807084451.rdtsjws6hwtdy6ki@hirez.programming.kicks-ass.net> Date: Tue, 08 Aug 2017 10:17:35 -0500 In-Reply-To: (Jessie Frazelle's message of "Mon, 7 Aug 2017 11:18:18 -0400") Message-ID: <871somhywg.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1df6OM-0001RR-Py;;;mid=<871somhywg.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=67.3.213.87;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18B0OxycghZaXdXVB+EjTg6aD26yPT6LPU= X-SA-Exim-Connect-IP: 67.3.213.87 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.7 XMSubLong Long Subject * 0.5 XMGappySubj_01 Very gappy subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.5 BAYES_05 BODY: Bayes spam probability is 1 to 5% * [score: 0.0147] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Jessie Frazelle X-Spam-Relay-Country: X-Spam-Timing: total 268 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 2.4 (0.9%), b_tie_ro: 1.66 (0.6%), parse: 1.15 (0.4%), extract_message_metadata: 3.0 (1.1%), get_uri_detail_list: 0.71 (0.3%), tests_pri_-1000: 5 (2.0%), tests_pri_-950: 1.62 (0.6%), tests_pri_-900: 1.39 (0.5%), tests_pri_-400: 20 (7.5%), check_bayes: 19 (7.0%), b_tokenize: 7 (2.6%), b_tok_get_all: 5.0 (1.9%), b_comp_prob: 2.1 (0.8%), b_tok_touch_all: 1.60 (0.6%), b_finish: 0.62 (0.2%), tests_pri_0: 218 (81.1%), check_dkim_signature: 0.65 (0.2%), check_dkim_adsp: 2.9 (1.1%), tests_pri_500: 3.9 (1.4%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH v2] sched: debug: use task_pid_nr_ns in /proc/$pid/sched X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jessie Frazelle writes: > Thanks for patching this :) Guess I will find a different rabbit in a > hat to detect if running in a pid namespace ;) I want to say that stating the /proc/pid/ns/pid files ought to be an easy way. But thinking about it they permissions on those might be a bit tricky. Eric