Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4166877pxf; Tue, 30 Mar 2021 00:30:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYk4MHvgvdVkBvEIP39UmJdTb4eEYDBCluSr+hFIBzc0uDQUoF+wp6n9+l/F+CzGVLKVdM X-Received: by 2002:a17:906:1a4b:: with SMTP id j11mr32284810ejf.55.1617089438552; Tue, 30 Mar 2021 00:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617089438; cv=none; d=google.com; s=arc-20160816; b=AIJKupr9waeKWUzgpkvB3oUGrFm1izhnqksTzVAXPmpdjh5GqECk0G5MAMwFO6hBwA BwbxcjXQ/KRa2PYOEbXS5TEpOlBnovdyxjnfUKMkZ2MNb8EuyBjttfm2yKAmi7B3WeCC n+omN3ZQAcqUozo1cE87nhdPygSALd3fnLHZ8idcjS2dUSQT8fQulXO6stgARj4X+5Gk 5H14neRr9UGT7Fr1hJG2Ispt+Ko1I7fo1501XKBmc+kaHDI0cXnk32jUIrShg8CmVqE0 LhYLP+lx1FJZYypnn+M7u/YqhesNcyw6aAlGDb89up0Ip2aGZodgrWh2BCb7LgxycOWx LnzQ== 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=vMl0C2b5ebpTnwdNSaTT+Ok9a/oj9pc9s8BQ0TZhX2Y=; b=Of+tmY0Kp33sv/Z00Dml+tFb5E4iRHJiDEr4R8R4CQKU/K/g4uvPJdHyHnvpGd6OvK LtkxAsrsIkQlD9dnq6G420wLIZUGLKXKViZiOpE+7WaW2k14pieaBp8PbEHeL8KVH+Rc YSl4K20NJ0RaMOVxaHDgIdwhRA2aHlidISZC6rsLVOk4gtmyPRhMvypJy8UMW+6EcPJo RHPWQ8vYKCnY13QQ6WELbzN9kXMoogY1Dac08VAQMgqNPTtknHY7WGOkdpi7b3eezqOs veOVY2iZd4stH/NlVizNmluQWPkv7yGjQNaBaGhOykEQnjuFe3a/Nk1VO/0DcIBW1J9G hiQw== 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 n13si13975671ejs.39.2021.03.30.00.30.15; Tue, 30 Mar 2021 00:30:38 -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 S231246AbhC3H1I (ORCPT + 99 others); Tue, 30 Mar 2021 03:27:08 -0400 Received: from mail-lj1-f182.google.com ([209.85.208.182]:33315 "EHLO mail-lj1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbhC3H1B (ORCPT ); Tue, 30 Mar 2021 03:27:01 -0400 Received: by mail-lj1-f182.google.com with SMTP id 15so18841310ljj.0 for ; Tue, 30 Mar 2021 00:27:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vMl0C2b5ebpTnwdNSaTT+Ok9a/oj9pc9s8BQ0TZhX2Y=; b=p+SIqhWsCzHL9v0DgOOFgywYKhM7cSGgM0KoBlNg2rEUpO34sOdrI6TRCJABmH3NuU PO88f7nSY+7CS8l0hpePe7Ut9fDPVwBjqO7nrjaLMPPgNH2/Vz/ZUKCs2cCnksJc6uqJ WeEybXWkoOBVN6EsM0IDO4p0JQSQ/l0msPFbcfjpTZBsx4o/ceM2uqPTJ91tBVPZIuOA HvO1dOgpNX4zorDnOILk8dscVl0qrEgfozvVoka5ODnDVkbQ4S61KR6On6q+1Cqidns9 o2j8by6Fnm7tpt8T4nNoJOL5UzlLSqe/dd91MHSmm0bhqatFLlRP8xcqGHFgtFlZMNVP 1oaA== X-Gm-Message-State: AOAM532Q6ACWPQLW9hwY7MSxwkZPU/WVPY1E5tbxidnnxE+2hJqR/Xo9 MBwOBgNLzFr9qCQGvdp7ojaE4EtQ486NKIXQV9c= X-Received: by 2002:a2e:b008:: with SMTP id y8mr19219630ljk.233.1617089220361; Tue, 30 Mar 2021 00:27:00 -0700 (PDT) MIME-Version: 1.0 References: <20210319123527.173883-1-yangjihong1@huawei.com> <33ba152e-b8ef-3057-744a-51cb8c478ff2@huawei.com> <27703989-e510-c964-2af7-ef0a5611f8cf@huawei.com> In-Reply-To: <27703989-e510-c964-2af7-ef0a5611f8cf@huawei.com> From: Namhyung Kim Date: Tue, 30 Mar 2021 16:26:49 +0900 Message-ID: Subject: Re: [PATCH v7] perf annotate: Fix sample events lost in stdio mode To: Yang Jihong Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Yao Jin , gustavoars@kernel.org, mliska@suse.cz, linux-kernel , zhangjinhao2@huawei.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yang and Arnaldo, On Sat, Mar 27, 2021 at 11:16 AM Yang Jihong wrote: > On 2021/3/26 20:06, Arnaldo Carvalho de Melo wrote: > > So it seems to be working, what am I missing? Is this strictly non > > group related? > > > Yes, it is non group related. > This problem occurs only when different events need to be recorded at > the same time, i.e.: > perf record -e branch-misses -e branch-instructions -a sleep 1 > > The output results of perf script and perf annotate do not match. > Some events are not output in perf annotate. Yeah I think it's related to sort keys. The code works with a single hist_entry for each event and symbol. But the default sort key creates multiple entries for different threads and it causes the confusion. Thanks, Namhyung