Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753655AbaAFOY0 (ORCPT ); Mon, 6 Jan 2014 09:24:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2386 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750805AbaAFOYZ (ORCPT ); Mon, 6 Jan 2014 09:24:25 -0500 Date: Mon, 6 Jan 2014 15:22:20 +0100 From: Jiri Olsa To: Yann Droneaud Cc: Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Andi Kleen , David Ahern , Frederic Weisbecker , Mike Galbraith , Stephane Eranian , Adrian Hunter , Benjamin Herrenschmidt , Michael Ellerman , linux-kernel@vger.kernel.org, Peter Zijlstra Subject: Re: [PATCH] perf tools: enable close-on-exec flag on perf file descriptor Message-ID: <20140106142220.GB1183@krava.brq.redhat.com> References: <8c03f54e1598b1727c19706f3af03f98685d9fe6.1388952061.git.ydroneaud@opteya.com> <20140106092929.GA31570@twins.programming.kicks-ass.net> <1389005485-12778-1-git-send-email-ydroneaud@opteya.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1389005485-12778-1-git-send-email-ydroneaud@opteya.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 06, 2014 at 11:51:25AM +0100, Yann Droneaud wrote: > In a previous patch [1][2], flag PERF_FLAG_FD_CLOEXEC was > added to perf_event_open(2) syscall to allows userspace > to enable close-on-exec behavor atomically when creating > the file descriptor. > > This patch makes perf tools use the new flag. > > Beware that perf tools compiled with the new flag won't work > on older kernel which do not support flag PERF_FLAG_FD_CLOEXEC. I think we should enhance the api probe routines (perf_do_probe_api) to detect that, than just bypass us from running on older kernels jirka -- 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/