From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BE41C433E0 for ; Tue, 19 Jan 2021 02:49:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2BB8D206C0 for ; Tue, 19 Jan 2021 02:49:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394524AbhASCs4 (ORCPT ); Mon, 18 Jan 2021 21:48:56 -0500 Received: from mga01.intel.com ([192.55.52.88]:17797 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728372AbhASCsv (ORCPT ); Mon, 18 Jan 2021 21:48:51 -0500 IronPort-SDR: rVTY+pv7nd30aUIYwRCzPlO/ZQAPXrf+qqOU6kX7E3NG2pBPnP5Qs+VnfTOiNj3n/GEOqLQu1I HJBfTU9nIv4A== X-IronPort-AV: E=McAfee;i="6000,8403,9868"; a="197571123" X-IronPort-AV: E=Sophos;i="5.79,357,1602572400"; d="scan'208";a="197571123" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2021 18:47:05 -0800 IronPort-SDR: QbnPoavpYIEOL8Av9ZMrn59/UhQXh2rRMRqLb2IBAjyvpfQFSi4BpC4csLZu6aEpGeBOpaLqeb Zcj+CrSEwDVw== X-IronPort-AV: E=Sophos;i="5.79,357,1602572400"; d="scan'208";a="383763560" Received: from tassilo.jf.intel.com ([10.54.74.11]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2021 18:47:04 -0800 Date: Mon, 18 Jan 2021 18:46:57 -0800 From: Andi Kleen To: Namhyung Kim Cc: Peter Zijlstra , Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Mark Rutland , Alexander Shishkin , LKML , Stephane Eranian , Ian Rogers , Alexey Alexandrov Subject: Re: [PATCH] perf/core: Emit PERF_RECORD_LOST for pinned events Message-ID: <20210119024657.GA3526@tassilo.jf.intel.com> References: <20210118034323.427029-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > I don't think I object to having an even in the stream, but your LOST > > event is unfortunate in that it itself can get lost when there's no > > space in the buffer (which arguably is unlikely, but still). > > > > So from that point of view, I think overloading LOST is not so very nice > > for this. > > But anything can get lost in case of no space. > Do you want to use something other than the LOST event? Could always reserve the last entry in the ring buffer for a LOST event, that would guarantee you can always get one out. -Andi