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 bpf/23407] bpf: backend should support strings as first class values


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

--- Comment #1 from Serhei Makarov <me at serhei dot io> ---
The essential implementation has been completed. There is room to make the
register allocator much, much more clever in terms of providing temporary space
to store string literals, freeing it up to make room for other string literals,
and so forth. Currently all string literals in a probe are stored on the stack
throughout the lifetime of the probe.

To pass the string literals to a helper function, they must be zero-padded by
an unrolled pseudo-loop. There are a couple of places (the ones writing
map/global values rather than map keys) where this zero-padding code could be
eliminated if we instead zeroed out a sufficient proportion of the stack before
writing any string literals.

Leaving this PR open until I've come up with a more complex usage example, and
it becomes clear whether the smarter storage allocator ideas are necessary.

-- 
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]