Message ID | 20221213115304.3964458-1-dolinux.peng@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp70831wrn; Tue, 13 Dec 2022 03:57:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf6jl1bpwrJyCOBuDGf2pxAxC+XtCyZDAKpdH7VT/z0tUQTrceTQbXDcIlBIfJl50zUbOy9T X-Received: by 2002:a17:90a:2b07:b0:219:ac3b:7f18 with SMTP id x7-20020a17090a2b0700b00219ac3b7f18mr20653726pjc.42.1670932660867; Tue, 13 Dec 2022 03:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670932660; cv=none; d=google.com; s=arc-20160816; b=WIF6u/rlo3T2lE/2k0X00VOcmK9IdQGx3zj6MoZi8m1bdXi3NSQ88rqzGfYIqlIiha pDIMEyDvMcCQntllxBjJv54imtqOms7asJRm+VWibj8cMMW+ralgRpIsuHXgrZYUhBs/ 43/ZMXgt8eaq1Q6+5K9eFVUnI2P+1zQFMRQc971x+PxwvSFgqm0ALSGpyVU0gBvkOFe3 z+MPHYYtnvaO9+XsQw1ek/0QI493PM1M9VdvCToGOa8iIZxqZVcUAEnqqQf5d4NxQXtD rbk2em9pM4MAjRirCq065DPGSRyJ72kjA4SFBImlB0I8+9gPZqjgkltgIyQsU8WUSiKv GHWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5SGwK/6oPfn8HdbBysE15KD2RmCgscLBo4xIXtp01Y8=; b=JZAhRCnQ35rMprcoL3LAfHxBFGEHu+X6V4wvL9jVFculj/GlNkFfR3d7vGOZmWmtOE JA7Evvr0xDYXJGt1w64HdL6UBWWXEFm9mu7dJYhRUYCl53ho8cXjGvem7u0/rATo1JPM gXkB3k+sqWk+jXR06MVWAgS6uJxdQHHLoHISzc3WJZx29vKpHbQLvLhSAjjXfgL7S+ql NCofiEzob26NCGiTxjvXeN290zokS8Cu2vHUWg+iJAxYmykWpBkybDpBfHQuCXMVZ52W aMlWrrSi2pNMuWD9iQVnqXIE97lSYGd41TY/s1wXJhIa10CTn0JgvEZF1nqUad0kVWOn IsTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TLjK+fZQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw17-20020a17090b4d1100b00218b41176a9si13387009pjb.182.2022.12.13.03.57.27; Tue, 13 Dec 2022 03:57:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TLjK+fZQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235351AbiLMLyo (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Tue, 13 Dec 2022 06:54:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235442AbiLMLyZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 13 Dec 2022 06:54:25 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B7BADF7 for <linux-kernel@vger.kernel.org>; Tue, 13 Dec 2022 03:54:25 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id b13-20020a17090a5a0d00b0021906102d05so3236164pjd.5 for <linux-kernel@vger.kernel.org>; Tue, 13 Dec 2022 03:54:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5SGwK/6oPfn8HdbBysE15KD2RmCgscLBo4xIXtp01Y8=; b=TLjK+fZQilsZXzUXzwNLPLYSRK2rG4IbGoi73XfcqT1Tii1DHpMqydYrJ97FWu+PX3 Lr69knq8EcZ9WH4rqtVCBex7ppn4ymPqh9c6NPSGtGr7PcIBQU2a8pIXILDJ2CMYvri+ 2qluteI1mZzWWc75engVQbTGVgnylh8zk6F+IViFyXzCCyDxJdjDpJA/BC2Vcn9tbS1B P8kqzw0Xcu9RA+ykfCHqrfS3ABrtdYEV01uzFiwlEMXT3M1lyTVBt4vhrtd+FdqH4wDT CUKxD3hp+MOhr1dzo0Ngq6f4rBOnKLz4tx8+eWSOtH/FKQfiXOrLW0tpqS1Tei6VvsmJ vLMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5SGwK/6oPfn8HdbBysE15KD2RmCgscLBo4xIXtp01Y8=; b=tHsF5UzxP3hpE4Ffg3bCJSVXNXr3VrR1uzo19R7Y5tyY5P44tnHRZmxVpvHy3QWce/ ttw+oSN1lt4KKgoplITwYuWjzmZwrhpMKTCcktKKHvdxFCyXNAj9TxwsMvImI00Pw9v8 gZWPVFG7IU/EHDSvNUzrpyaPk3R2ZP7K8w0hgXtK+Q4d7i2ASpEQ5xRWJNaJBDK0vmJP ao+dJJiopEPZZi5CmEejAf5pvfpsPUwsogpan+yaN9/yLIWPRevGdQlkdZJVOrZgkeQA eK2gJlzR6sK7Cu/TIXG/yz4asi8bYSjAApwiF9Okff9+D3iqqyyAxlriI0RvS0l+fU/1 ddsw== X-Gm-Message-State: ANoB5pmWDo+WKUsv9YGiqAhfb7utUZZ0u/++wgIr6fDqGtnocs244/ru sGbJoxcRQCHxOo0vBigtULo= X-Received: by 2002:a17:903:555:b0:188:8cfc:6ba7 with SMTP id jo21-20020a170903055500b001888cfc6ba7mr17605162plb.68.1670932464871; Tue, 13 Dec 2022 03:54:24 -0800 (PST) Received: from ubuntu.localdomain ([118.73.12.140]) by smtp.gmail.com with ESMTPSA id b7-20020a170902650700b001868bf6a7b8sm8252776plk.146.2022.12.13.03.54.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 03:54:23 -0800 (PST) From: Donglin Peng <dolinux.peng@gmail.com> To: rostedt@goodmis.org Cc: mhiramat@kernel.org, xiehuan09@gmail.com, linux-kernel@vger.kernel.org, Donglin Peng <dolinux.peng@gmail.com> Subject: [PATCH] tracing/probe: add a char type to print the character value of traced arguments Date: Tue, 13 Dec 2022 03:53:04 -0800 Message-Id: <20221213115304.3964458-1-dolinux.peng@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752099886079211855?= X-GMAIL-MSGID: =?utf-8?q?1752099886079211855?= |
Series |
tracing/probe: add a char type to print the character value of traced arguments
|
|
Commit Message
Donglin Peng
Dec. 13, 2022, 11:53 a.m. UTC
There are scenes that we want to show the character value of traced
arguments other than a decimal or hexadecimal or string value for debug
convinience. Add a new type named 'char' to do it.
For example:
echo 'p:myprobe xxxx $arg1:char' > kprobe_events
Signed-off-by: Donglin Peng <dolinux.peng@gmail.com>
---
Documentation/trace/kprobetrace.rst | 3 ++-
kernel/trace/trace_probe.c | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
Comments
Hi Donglin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on rostedt-trace/for-next v6.1 next-20221213]
[cannot apply to rostedt-trace/for-next-urgent]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Donglin-Peng/tracing-probe-add-a-char-type-to-print-the-character-value-of-traced-arguments/20221213-195552
patch link: https://lore.kernel.org/r/20221213115304.3964458-1-dolinux.peng%40gmail.com
patch subject: [PATCH] tracing/probe: add a char type to print the character value of traced arguments
config: parisc-allyesconfig
compiler: hppa-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/c09eb24f0c2c27ce649aed5360dcf3299b636de6
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Donglin-Peng/tracing-probe-add-a-char-type-to-print-the-character-value-of-traced-arguments/20221213-195552
git checkout c09eb24f0c2c27ce649aed5360dcf3299b636de6
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash kernel/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from kernel/trace/trace_probe.c:14:
>> kernel/trace/trace_probe.h:146:41: warning: no previous prototype for 'print_type_char' [-Wmissing-prototypes]
146 | #define PRINT_TYPE_FUNC_NAME(type) print_type_##type
| ^~~~~~~~~~~
kernel/trace/trace_probe.c:34:5: note: in expansion of macro 'PRINT_TYPE_FUNC_NAME'
34 | int PRINT_TYPE_FUNC_NAME(tname)(struct trace_seq *s, void *data, void *ent)\
| ^~~~~~~~~~~~~~~~~~~~
kernel/trace/trace_probe.c:53:1: note: in expansion of macro 'DEFINE_BASIC_PRINT_TYPE_FUNC'
53 | DEFINE_BASIC_PRINT_TYPE_FUNC(char, u8, "%c")
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/print_type_char +146 kernel/trace/trace_probe.h
34fee3a104cea1 Namhyung Kim 2013-11-26 145
b26c74e116ad84 Namhyung Kim 2013-11-26 @146 #define PRINT_TYPE_FUNC_NAME(type) print_type_##type
b26c74e116ad84 Namhyung Kim 2013-11-26 147 #define PRINT_TYPE_FMT_NAME(type) print_type_format_##type
b26c74e116ad84 Namhyung Kim 2013-11-26 148
Hi Donglin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on rostedt-trace/for-next] [cannot apply to rostedt-trace/for-next-urgent] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Donglin-Peng/tracing-probe-add-a-char-type-to-print-the-character-value-of-traced-arguments/20221213-195552 patch link: https://lore.kernel.org/r/20221213115304.3964458-1-dolinux.peng%40gmail.com patch subject: [PATCH] tracing/probe: add a char type to print the character value of traced arguments config: s390-randconfig-r044-20221213 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6e4cea55f0d1104408b26ac574566a0e4de48036) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/c09eb24f0c2c27ce649aed5360dcf3299b636de6 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Donglin-Peng/tracing-probe-add-a-char-type-to-print-the-character-value-of-traced-arguments/20221213-195552 git checkout c09eb24f0c2c27ce649aed5360dcf3299b636de6 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash kernel/trace/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com> All warnings (new ones prefixed by >>): In file included from kernel/trace/trace_probe.c:14: In file included from kernel/trace/trace_probe.h:28: In file included from kernel/trace/trace.h:9: In file included from include/linux/clocksource.h:22: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) ^ include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) ^ In file included from kernel/trace/trace_probe.c:14: In file included from kernel/trace/trace_probe.h:28: In file included from kernel/trace/trace.h:9: In file included from include/linux/clocksource.h:22: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) ^ In file included from kernel/trace/trace_probe.c:14: In file included from kernel/trace/trace_probe.h:28: In file included from kernel/trace/trace.h:9: In file included from include/linux/clocksource.h:22: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> kernel/trace/trace_probe.c:53:1: warning: no previous prototype for function 'print_type_char' [-Wmissing-prototypes] DEFINE_BASIC_PRINT_TYPE_FUNC(char, u8, "%c") ^ kernel/trace/trace_probe.c:34:5: note: expanded from macro 'DEFINE_BASIC_PRINT_TYPE_FUNC' int PRINT_TYPE_FUNC_NAME(tname)(struct trace_seq *s, void *data, void *ent)\ ^ kernel/trace/trace_probe.h:146:36: note: expanded from macro 'PRINT_TYPE_FUNC_NAME' #define PRINT_TYPE_FUNC_NAME(type) print_type_##type ^ <scratch space>:93:1: note: expanded from here print_type_char ^ kernel/trace/trace_probe.c:53:1: note: declare 'static' if the function is not intended to be used outside of this translation unit DEFINE_BASIC_PRINT_TYPE_FUNC(char, u8, "%c") ^ static kernel/trace/trace_probe.c:33:58: note: expanded from macro 'DEFINE_BASIC_PRINT_TYPE_FUNC' #define DEFINE_BASIC_PRINT_TYPE_FUNC(tname, type, fmt) \ ^ 13 warnings generated. vim +/print_type_char +53 kernel/trace/trace_probe.c 40 41 DEFINE_BASIC_PRINT_TYPE_FUNC(u8, u8, "%u") 42 DEFINE_BASIC_PRINT_TYPE_FUNC(u16, u16, "%u") 43 DEFINE_BASIC_PRINT_TYPE_FUNC(u32, u32, "%u") 44 DEFINE_BASIC_PRINT_TYPE_FUNC(u64, u64, "%Lu") 45 DEFINE_BASIC_PRINT_TYPE_FUNC(s8, s8, "%d") 46 DEFINE_BASIC_PRINT_TYPE_FUNC(s16, s16, "%d") 47 DEFINE_BASIC_PRINT_TYPE_FUNC(s32, s32, "%d") 48 DEFINE_BASIC_PRINT_TYPE_FUNC(s64, s64, "%Ld") 49 DEFINE_BASIC_PRINT_TYPE_FUNC(x8, u8, "0x%x") 50 DEFINE_BASIC_PRINT_TYPE_FUNC(x16, u16, "0x%x") 51 DEFINE_BASIC_PRINT_TYPE_FUNC(x32, u32, "0x%x") 52 DEFINE_BASIC_PRINT_TYPE_FUNC(x64, u64, "0x%Lx") > 53 DEFINE_BASIC_PRINT_TYPE_FUNC(char, u8, "%c") 54
diff --git a/Documentation/trace/kprobetrace.rst b/Documentation/trace/kprobetrace.rst index 4274cc6a2f94..007972a3c5c4 100644 --- a/Documentation/trace/kprobetrace.rst +++ b/Documentation/trace/kprobetrace.rst @@ -58,7 +58,7 @@ Synopsis of kprobe_events NAME=FETCHARG : Set NAME as the argument name of FETCHARG. FETCHARG:TYPE : Set TYPE as the type of FETCHARG. Currently, basic types (u8/u16/u32/u64/s8/s16/s32/s64), hexadecimal types - (x8/x16/x32/x64), "string", "ustring" and bitfield + (x8/x16/x32/x64), "char", "string", "ustring" and bitfield are supported. (\*1) only for the probe on function entry (offs == 0). @@ -80,6 +80,7 @@ E.g. 'x16[4]' means an array of x16 (2bytes hex) with 4 elements. Note that the array can be applied to memory type fetchargs, you can not apply it to registers/stack-entries etc. (for example, '$stack1:x8[8]' is wrong, but '+8($stack):x8[8]' is OK.) +Char type can be used to show the character value of traced arguments. String type is a special type, which fetches a "null-terminated" string from kernel space. This means it will fail and store NULL if the string container has been paged out. "ustring" type is an alternative of string for user-space. diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c index 36dff277de46..a4abf7f6c295 100644 --- a/kernel/trace/trace_probe.c +++ b/kernel/trace/trace_probe.c @@ -50,6 +50,7 @@ DEFINE_BASIC_PRINT_TYPE_FUNC(x8, u8, "0x%x") DEFINE_BASIC_PRINT_TYPE_FUNC(x16, u16, "0x%x") DEFINE_BASIC_PRINT_TYPE_FUNC(x32, u32, "0x%x") DEFINE_BASIC_PRINT_TYPE_FUNC(x64, u64, "0x%Lx") +DEFINE_BASIC_PRINT_TYPE_FUNC(char, u8, "%c") int PRINT_TYPE_FUNC_NAME(symbol)(struct trace_seq *s, void *data, void *ent) { @@ -93,6 +94,7 @@ static const struct fetch_type probe_fetch_types[] = { ASSIGN_FETCH_TYPE_ALIAS(x16, u16, u16, 0), ASSIGN_FETCH_TYPE_ALIAS(x32, u32, u32, 0), ASSIGN_FETCH_TYPE_ALIAS(x64, u64, u64, 0), + ASSIGN_FETCH_TYPE_ALIAS(char, u8, u8, 0), ASSIGN_FETCH_TYPE_ALIAS(symbol, ADDR_FETCH_TYPE, ADDR_FETCH_TYPE, 0), ASSIGN_FETCH_TYPE_END