From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751514AbcBNQD5 (ORCPT ); Sun, 14 Feb 2016 11:03:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60658 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751451AbcBNQD4 (ORCPT ); Sun, 14 Feb 2016 11:03:56 -0500 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra Subject: [PATCH 0/5] perf tools: Store CPU cache details under perf data Date: Sun, 14 Feb 2016 17:03:41 +0100 Message-Id: <1455465826-8426-1-git-send-email-jolsa@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi, adding support to store CPU cache details under perf data. $ perf report --header-only -I ... # cache info: # L1 Data 32K [0-1] # L1 Instruction 32K [0-1] # L1 Data 32K [2-3] # L1 Instruction 32K [2-3] # L2 Unified 256K [0-1] # L2 Unified 256K [2-3] # L3 Unified 4096K [0-3] ... Plus some libapi additions. Also available in here: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/cache thanks, jirka --- Jiri Olsa (5): tools lib api: Add debug output support tools lib api fs: Move filename__read_str into api/fs/fs.c tools lib api fs: Add sysfs__read_str function perf tools: Initialize libapi debug output perf tools: Add perf data cache feature tools/lib/api/Build | 1 + tools/lib/api/Makefile | 1 + tools/lib/api/debug-internal.h | 20 +++++++++ tools/lib/api/debug.c | 28 +++++++++++++ tools/lib/api/debug.h | 10 +++++ tools/lib/api/fs/fs.c | 64 +++++++++++++++++++++++++++++ tools/lib/api/fs/fs.h | 3 ++ tools/perf/perf.c | 2 + tools/perf/util/debug.c | 21 ++++++++++ tools/perf/util/debug.h | 1 + tools/perf/util/env.c | 13 ++++++ tools/perf/util/env.h | 15 +++++++ tools/perf/util/header.c | 265 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/perf/util/header.h | 1 + tools/perf/util/trace-event.c | 1 + tools/perf/util/util.c | 48 ---------------------- tools/perf/util/util.h | 1 - 17 files changed, 446 insertions(+), 49 deletions(-) create mode 100644 tools/lib/api/debug-internal.h create mode 100644 tools/lib/api/debug.c create mode 100644 tools/lib/api/debug.h