This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/18263] In tty tapset, driver_name can be null, causing a script to fail when probing tty.write or tty.read


https://sourceware.org/bugzilla/show_bug.cgi?id=18263

--- Comment #2 from David Smith <dsmith at redhat dot com> ---
(In reply to David Smith from comment #1)
> Perhaps we need a kernel_string3() function, which would look like this:
> 
> ====
> function kernel_string3:string (addr:long) {
>   try { return kernel_string(addr) } catch { return sprintf("%p", addr) }
> }
> ====
> 
> This would either return the string or return the failing address.

Strangely enough, the above matches the behavior of kernel_string_quoted, which
also either returns the quoted string or the failing address.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]