[Bug bpf/23474] New: bpf kernel_string(), user_string() tapset

me at serhei dot io sourceware-bugzilla@sourceware.org
Wed Aug 1 18:47:00 GMT 2018


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

            Bug ID: 23474
           Summary: bpf kernel_string(), user_string() tapset
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bpf
          Assignee: systemtap at sourceware dot org
          Reporter: me at serhei dot io
  Target Milestone: ---

From the 'language features' brainstorm:

# Loading kernel_string(addr) or user_string(addr) onto the stack

offset = 80
unrolled loop {
   *(u64 *)(r10-offset) = *(u64 *)addr
   addr += 8; offset -= 8
} until '\0' encountered or BPF_MAXSTRINGLEN bytes copied

/* loading kernel_string(addr) or user_string(addr) into an eBPF map is similar
*/

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


More information about the Systemtap mailing list