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]

Re: Embedded C code - functions that might sleep


"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


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