From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753569AbdHPCWF (ORCPT ); Tue, 15 Aug 2017 22:22:05 -0400 Received: from mga01.intel.com ([192.55.52.88]:49608 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752852AbdHPCWE (ORCPT ); Tue, 15 Aug 2017 22:22:04 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,380,1498546800"; d="scan'208";a="119442473" From: Jin Yao To: acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com Cc: Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com, Jin Yao Subject: [PATCH v1 0/4] perf annotate: Display multiple events on the left side of annotate view Date: Wed, 16 Aug 2017 18:18:32 +0800 Message-Id: <1502878716-30817-1-git-send-email-yao.jin@linux.intel.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org perf record -e cycles,branches ... perf annotate main --stdio The result only shows cycles. It should show both cycles and branches on the left side of annotate view. It works with "--group", but need this to work even without groups. The patch series supports to display multiple events on the left side of annotate view for stdio, tui and gtk modes. Jin Yao (4): perf annotate: create a new hists to manage multiple events samples perf annotate: Display multiple events for stdio mode perf annotate: Display multiple events for tui mode perf annotate: Display multiple events for gtk mode tools/perf/builtin-annotate.c | 62 +++++++++---- tools/perf/builtin-top.c | 3 +- tools/perf/ui/browsers/annotate.c | 49 +++++++--- tools/perf/ui/browsers/hists.c | 2 +- tools/perf/ui/gtk/annotate.c | 35 ++++--- tools/perf/util/annotate.c | 187 +++++++++++++++++++++++++++++--------- tools/perf/util/annotate.h | 16 +++- tools/perf/util/hist.h | 8 +- tools/perf/util/sort.c | 21 +++++ tools/perf/util/sort.h | 13 +++ 10 files changed, 301 insertions(+), 95 deletions(-) -- 2.7.4