lkml.org 
[lkml]   [2021]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Unicode output with uprobe?
Hi,

Sorry, at this point, uprobe-event doesn't support non-ascii strings.
If you are sure that
the length of the string, you can use an array of u8, e.g. u8[16], but
not sure it can print the string correctly.

Thank you!

2020年12月28日(月) 19:24 Bar H <billy.san@gmail.com>:

>
> Hey Masami,
>
> I found your email in github, I hope that's Okay I'm sending you this email regarding uprobe/kprobe as I couldn't find assistance anywhere else.
>
> In uprobe, I'm trying to print out function arguments that are none-ANSI, that means there are trailing zeros after every character, so when I use the +0(%x0):string notation, I get only the first character.
>
> Do you know if there's a way around this? maybe use another function in the sysfs framework that I could use? I'm debugging a third-party, user-mode *.so file.
>
> Best,
> Bar



--
Masami Hiramatsu

\
 
 \ /
  Last update: 2021-01-02 09:44    [W:0.023 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site