From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754257AbcLLKft (ORCPT ); Mon, 12 Dec 2016 05:35:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45922 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754113AbcLLKfs (ORCPT ); Mon, 12 Dec 2016 05:35:48 -0500 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Peter Zijlstra , Namhyung Kim , David Ahern Subject: [PATCH 0/5] perf record: Allow to ignore missing pid Date: Mon, 12 Dec 2016 11:35:38 +0100 Message-Id: <1481538943-21874-1-git-send-email-jolsa@kernel.org> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 12 Dec 2016 10:35:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi, this patches allows record's -u option to ignore group of pids, that 'disappear' before perf opens their event. This currently leads perf to report error and exit. With this change we will allow this race and ignore such failure with warning: $ perf record -u WARNING: Ignored open failure for pid 8605 ... and continue monitoring whatever portion of processes we managed to open. Plus one extra perf mem fix. Available also here: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/fixes thanks, jirka --- Jiri Olsa (5): perf mem: Fix --all-user/--all-kernel options perf tools: Use variable instead of repeating lengthy FD macro perf tools: Add thread_map__remove function perf tools: Allow to ignore missing pid perf record: Force ignore_missing_thread for uid option tools/perf/builtin-mem.c | 4 ++-- tools/perf/builtin-record.c | 3 +++ tools/perf/perf.h | 1 + tools/perf/tests/builtin-test.c | 4 ++++ tools/perf/tests/tests.h | 1 + tools/perf/tests/thread-map.c | 43 +++++++++++++++++++++++++++++++++++++++++++ tools/perf/util/evsel.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++-------- tools/perf/util/evsel.h | 1 + tools/perf/util/thread_map.c | 22 ++++++++++++++++++++++ tools/perf/util/thread_map.h | 1 + 10 files changed, 131 insertions(+), 10 deletions(-)