Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp294612pxb; Fri, 15 Oct 2021 05:49:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9WS0qHY1xOcILXNKbDiPCUBtXrruA/Do/S1h40wS6Nvts0idz3IsLRRqZviLdnVaT7ZG+ X-Received: by 2002:a17:902:9a83:b0:13e:5b1e:aa40 with SMTP id w3-20020a1709029a8300b0013e5b1eaa40mr10999689plp.41.1634302189515; Fri, 15 Oct 2021 05:49:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634302189; cv=none; d=google.com; s=arc-20160816; b=G4JfXuhyMgO/6bCTGaAH+WtwuKVxgtbps6i23tSIQV4AKi4Br334dWssfD6rtL5uDy MZrm1VEgqG62oFzm6QezVCPxHIxbWUs3DkbM3QX5kFQkLjJVwGVeXFWQefTz7JW3MqEO sEBaLPWbBMV9bbr80opYAXZCytcIvdqIzYXbrBcXVAaikF/EWd0UC+/vzqNGG2yrO3fC 2YoncP2giOkEL4roLp+lsuPpF1KPYUhX/GvIc7/Q7FSwwa1SgAGfRYDKDra2J3q/exMN rrWMOFd2hEGFCQTWAHJa0dS/kvvlVS0xC4GZa4XfpmmRvOU5oHhZD15z0ky0amAUHMfa BfBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=GSexlnSfHHqSZ1JMsDFapEU6NoUx9lAdrel84RuUOqM=; b=f9lvDF8cdsTXGE9A/C7ak2S4+Sc5lMFoIcmaZdvQgV/zh6N+LY6tL4pFjMNnSLYq2j DuyGDgl3wGeiHiTcJziE9Fsj97gPGYVTbDNVgU00eXiJeR+7cnJKOv6fQeB14QTmnh/6 bvKib108w4JHMbo93jG/rCMmF27T7A0IrVZGex2xaFd5v72WZXjBLe8m5aRgLsJKeepH GEpxJpBlIfVamLQdCrrbHM0w2TRWH+sWasIX242ZWRpD+blp7lhZCc7bJHKcABY2SAn6 supGhIqOzfNnNcVlwa5CgHr+7feMmMIiXQz9+TH2SndKMWqngo6G2Hxq118rYcAReqDW WcNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j3si9296292plx.245.2021.10.15.05.49.32; Fri, 15 Oct 2021 05:49:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234327AbhJOGbU (ORCPT + 99 others); Fri, 15 Oct 2021 02:31:20 -0400 Received: from mail-lf1-f51.google.com ([209.85.167.51]:34405 "EHLO mail-lf1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232562AbhJOGbT (ORCPT ); Fri, 15 Oct 2021 02:31:19 -0400 Received: by mail-lf1-f51.google.com with SMTP id t9so36600152lfd.1 for ; Thu, 14 Oct 2021 23:29:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GSexlnSfHHqSZ1JMsDFapEU6NoUx9lAdrel84RuUOqM=; b=MKAMkTXE52FBwUZsS0OzWJ9SzQ3Y2Pkw+lLMiSke6EV1YZqxe+pkTtmHzRrZX6eJJj eClY+pMb7ZTud0fBtTuBxTdNMy7Jjsv1isWZvOsaBDzE/MsqecbaikSw9nYeukXZ9Xr9 uZ2DYDXKMPkCJ3yXrhMmLoYnE0S2RcGkGN1RzLQm0Rnl+ZYTM4/SvqrJF6dveI6iNk7e pbYDJyjgw78hR9Zhyl+nRWiRl2NFPcHKZiRyEpfrkF7WTUcqNwSwaHDgY+BlcDFB79K5 0JzfTLtesFg17HDKaKj/ldOsTJukVoCmcCDx1/J0/OJ3fwFdMTEOyAb+eq8Uvtp98vJd Sd3A== X-Gm-Message-State: AOAM533Nnu+MJfnig73NLlvTENv9unioVSr0zuC/UQQNo3yDYfz4tLHe 7ACNB/Ui0e6w/vtRpFn4TVP3z+lKKeVB8lESojYuXVbi X-Received: by 2002:a05:6512:68b:: with SMTP id t11mr1889368lfe.586.1634279352587; Thu, 14 Oct 2021 23:29:12 -0700 (PDT) MIME-Version: 1.0 References: <20210908172420.879240-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Thu, 14 Oct 2021 23:29:01 -0700 Message-ID: Subject: Re: [PATCH v2] perf/core: Add a new read format to get a number of lost samples To: Peter Zijlstra Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , LKML , Stephane Eranian , Andi Kleen , Ian Rogers , Michael Petlan , Jiri Olsa Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ping! On Wed, Sep 22, 2021 at 12:34 PM Namhyung Kim wrote: > > Hi Peter, > > On Fri, Sep 10, 2021 at 3:40 PM Namhyung Kim wrote: > > > > On Fri, Sep 10, 2021 at 2:42 PM Jiri Olsa wrote: > > > > > > On Wed, Sep 08, 2021 at 10:24:20AM -0700, Namhyung Kim wrote: > > > > Sometimes we want to know an accurate number of samples even if it's > > > > lost. Currenlty PERF_RECORD_LOST is generated for a ring-buffer which > > > > might be shared with other events. So it's hard to know per-event > > > > lost count. > > > > > > > > Add event->lost_samples field and PERF_FORMAT_LOST to retrieve it from > > > > userspace. > > > > > > hi, > > > looks good.. will there be some tools/perf change using this? > > > > Sure, I'll work on the userspace part after this is merged. > > I'm thinking about adding LOST_SAMPLES records at the end > > of the data section as if they came from the kernel. > > Can I get your feedback? > > Thanks, > Namhyung