diff options
author | Wang Nan <wangnan0@huawei.com> | 2015-12-07 21:25:39 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-11 07:12:09 -0500 |
commit | 26812d466b2633d0c772fe3aca954129f150d3cb (patch) | |
tree | 410f1548dc6d146db5a6298757711ecf8925e0f4 | |
parent | 77ba9a5b48a7c742f9a46d26596852e9cfec7900 (diff) |
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 <wangnan0@huawei.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
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 <acme@redhat.com>
-rw-r--r-- | tools/perf/util/data-convert-bt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/data-convert-bt.c b/tools/perf/util/data-convert-bt.c index 5bfc1198ab46..34cd1e4039d3 100644 --- a/tools/perf/util/data-convert-bt.c +++ b/tools/perf/util/data-convert-bt.c | |||
@@ -63,6 +63,7 @@ struct ctf_writer { | |||
63 | struct bt_ctf_field_type *s32; | 63 | struct bt_ctf_field_type *s32; |
64 | struct bt_ctf_field_type *u32; | 64 | struct bt_ctf_field_type *u32; |
65 | struct bt_ctf_field_type *string; | 65 | struct bt_ctf_field_type *string; |
66 | struct bt_ctf_field_type *u32_hex; | ||
66 | struct bt_ctf_field_type *u64_hex; | 67 | struct bt_ctf_field_type *u64_hex; |
67 | }; | 68 | }; |
68 | struct bt_ctf_field_type *array[6]; | 69 | struct bt_ctf_field_type *array[6]; |
@@ -982,6 +983,7 @@ do { \ | |||
982 | CREATE_INT_TYPE(cw->data.u64, 64, false, false); | 983 | CREATE_INT_TYPE(cw->data.u64, 64, false, false); |
983 | CREATE_INT_TYPE(cw->data.s32, 32, true, false); | 984 | CREATE_INT_TYPE(cw->data.s32, 32, true, false); |
984 | CREATE_INT_TYPE(cw->data.u32, 32, false, false); | 985 | CREATE_INT_TYPE(cw->data.u32, 32, false, false); |
986 | CREATE_INT_TYPE(cw->data.u32_hex, 32, false, true); | ||
985 | CREATE_INT_TYPE(cw->data.u64_hex, 64, false, true); | 987 | CREATE_INT_TYPE(cw->data.u64_hex, 64, false, true); |
986 | 988 | ||
987 | cw->data.string = bt_ctf_field_type_string_create(); | 989 | cw->data.string = bt_ctf_field_type_string_create(); |