From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754379AbcARJYb (ORCPT ); Mon, 18 Jan 2016 04:24:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33369 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753904AbcARJY2 (ORCPT ); Mon, 18 Jan 2016 04:24:28 -0500 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra Subject: [RFC 00/26] perf tools: Introduce hists specific format entries Date: Mon, 18 Jan 2016 10:23:58 +0100 Message-Id: <1453109064-1026-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, currently we have global format sort and output lists. This rfc patchset introduces hists object based format entries to allow the hist object to carry specific format entries. This will allow to have distinguished hist objects displaying different stuff in output. Also available in: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/hists_fmt thanks for comments, jirka --- Jiri Olsa (26): perf tools: Factor output_resort from hists__output_resort perf tools: Introduce perf_evsel__output_resort function perf tools: Add _idx fields into struct perf_hpp_fmt perf tools: Use struct perf_hpp_fmt::idx in perf_hpp__reset_width perf tools: Add equal method to perf_hpp_fmt struct perf tools: Add hpp__equal callback function perf tools: Make hpp setup function generic perf report: Move ui initialization ahead of sort setup perf tools: Allocate output sort field perf tools: Remove perf_hpp__column_(disable|enable) perf tools: Properly release format fields perf tools: Separate sort fields parsing into setup_sort_list function perf tools: Separate output fields parsing into setup_output_list function perf tools: Introduce struct perf_hpp_list perf tools: Introduce perf_hpp_list__init function perf tools: Add perf_hpp_list register helpers perf tools: Pass perf_hpp_list all the way through setup_sort_list perf tools: Pass perf_hpp_list all the way through setup_output_list perf tools: Introduce perf_hpp_list__for_each_format macro perf tools: Introduce perf_hpp_list__for_each_format_safe macro perf tools: Introduce perf_hpp_list__for_each_sort_list macro perf tools: Introduce perf_hpp_list__for_each_sort_list_safe macro perf tools: Add struct perf_hpp_list argument to helper functions perf tools: Add hpp_list into struct hists object perf tools: Introduce hists__for_each_format macro perf tools: Introduce hists__for_each_sort_list macro tools/perf/builtin-annotate.c | 2 +- tools/perf/builtin-report.c | 20 ++++----- tools/perf/builtin-top.c | 10 +++-- tools/perf/tests/hists_cumulate.c | 2 +- tools/perf/tests/hists_filter.c | 2 +- tools/perf/tests/hists_output.c | 10 ++--- tools/perf/ui/browsers/hists.c | 8 ++-- tools/perf/ui/gtk/hists.c | 6 +-- tools/perf/ui/hist.c | 170 +++++++++++++++++++++++++++++++++++++---------------------------------- tools/perf/ui/stdio/hist.c | 10 ++--- tools/perf/util/hist.c | 47 ++++++++++++++------ tools/perf/util/hist.h | 65 ++++++++++++++++++++-------- tools/perf/util/sort.c | 231 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------- 13 files changed, 359 insertions(+), 224 deletions(-)