Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753270AbbLNIi4 (ORCPT ); Mon, 14 Dec 2015 03:38:56 -0500 Received: from terminus.zytor.com ([198.137.202.10]:52596 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752671AbbLNIix (ORCPT ); Mon, 14 Dec 2015 03:38:53 -0500 Date: Mon, 14 Dec 2015 00:38:38 -0800 From: tip-bot for Wang Nan Message-ID: Cc: namhyung@kernel.org, masami.hiramatsu.pt@hitachi.com, ast@kernel.org, hpa@zytor.com, lizefan@huawei.com, tglx@linutronix.de, acme@redhat.com, mingo@kernel.org, wangnan0@huawei.com, linux-kernel@vger.kernel.org, brendan.d.gregg@gmail.com, jolsa@kernel.org, davem@davemloft.net Reply-To: brendan.d.gregg@gmail.com, jolsa@kernel.org, davem@davemloft.net, linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, acme@redhat.com, wangnan0@huawei.com, namhyung@kernel.org, ast@kernel.org, masami.hiramatsu.pt@hitachi.com, hpa@zytor.com, lizefan@huawei.com In-Reply-To: <1449541544-67621-12-git-send-email-wangnan0@huawei.com> References: <1449541544-67621-12-git-send-email-wangnan0@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf data: Add u32_hex data type Git-Commit-ID: 26812d466b2633d0c772fe3aca954129f150d3cb X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2137 Lines: 53 Commit-ID: 26812d466b2633d0c772fe3aca954129f150d3cb Gitweb: http://git.kernel.org/tip/26812d466b2633d0c772fe3aca954129f150d3cb Author: Wang Nan AuthorDate: Tue, 8 Dec 2015 02:25:39 +0000 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 11 Dec 2015 09:12:09 -0300 perf data: Add u32_hex data type Add hexadecimal u32 to base data type, which is useful for raw output because raw data is u32 aligned. Signed-off-by: Wang Nan Cc: David S. Miller Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: David S. Miller Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1449541544-67621-12-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/data-convert-bt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/data-convert-bt.c b/tools/perf/util/data-convert-bt.c index 5bfc119..34cd1e4 100644 --- a/tools/perf/util/data-convert-bt.c +++ b/tools/perf/util/data-convert-bt.c @@ -63,6 +63,7 @@ struct ctf_writer { struct bt_ctf_field_type *s32; struct bt_ctf_field_type *u32; struct bt_ctf_field_type *string; + struct bt_ctf_field_type *u32_hex; struct bt_ctf_field_type *u64_hex; }; struct bt_ctf_field_type *array[6]; @@ -982,6 +983,7 @@ do { \ CREATE_INT_TYPE(cw->data.u64, 64, false, false); CREATE_INT_TYPE(cw->data.s32, 32, true, false); CREATE_INT_TYPE(cw->data.u32, 32, false, false); + CREATE_INT_TYPE(cw->data.u32_hex, 32, false, true); CREATE_INT_TYPE(cw->data.u64_hex, 64, false, true); cw->data.string = bt_ctf_field_type_string_create(); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/