Embedded C code - functions that might sleep
Frank Ch. Eigler
fche@redhat.com
Thu Feb 2 15:03:00 GMT 2012
"Turgis, Frederic" <f-turgis@ti.com> writes:
> My point is that systemtap design and doc seem to imply I can't call
> some functions in embedded C because of relevant systemtap design
> choices. [...]
Not exactly. Generally, the conditions are imposed upon us through
the kernel callback mechanisms used by the respective probes. "probe
begin" has no material constraints (or should not; PR13641 indicates
something unintentionally is impeding this), so from there you can
generally do whatever you need to. From kprobes, or tracepoints, the
kernel context is much more restricted and we must do nothing more
than atomic type operations.
- FChE
More information about the Systemtap
mailing list