From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752522AbaEMQte (ORCPT ); Tue, 13 May 2014 12:49:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14932 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752373AbaEMQtY (ORCPT ); Tue, 13 May 2014 12:49:24 -0400 From: Don Zickus To: acme@ghostprotocols.net, peterz@infradead.org Cc: LKML , jolsa@redhat.com, namhyung@gmail.com, eranian@google.com, Andi Kleen , Don Zickus Subject: [PATCH 5/6] perf: Add cpumode to struct hist_entry Date: Tue, 13 May 2014 12:48:16 -0400 Message-Id: <1399999697-65875-6-git-send-email-dzickus@redhat.com> In-Reply-To: <1399999697-65875-1-git-send-email-dzickus@redhat.com> References: <1399999697-65875-1-git-send-email-dzickus@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The next patch needs to sort on cpumode, so add it to hist_entry to be tracked. Signed-off-by: Don Zickus --- tools/perf/util/hist.c | 7 ++++--- tools/perf/util/sort.h | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 7f0236c..b7160b1c 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c @@ -410,9 +410,10 @@ struct hist_entry *__hists__add_entry(struct hists *hists, .map = al->map, .sym = al->sym, }, - .cpu = al->cpu, - .ip = al->addr, - .level = al->level, + .cpu = al->cpu, + .cpumode = al->cpumode, + .ip = al->addr, + .level = al->level, .stat = { .nr_events = 1, .period = period, diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index 43e5ff4..22cf912 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h @@ -87,6 +87,7 @@ struct hist_entry { u64 ip; u64 transaction; s32 cpu; + u8 cpumode; struct hist_entry_diff diff; -- 1.7.11.7