Enum Hook Copy item path Source pub enum Hook {
Platform,
Early,
Late,
}Expand description Where the call -pg puts at the top of every function goes, which -mfentry chooses.
Two conventions for one job, and the difference is what the hook can see when it runs. See
rucc_target::Trace for what each of them is and why a kernel needs the earlier one.
A third answer, because a command line that named neither has not asked a question: the
platform’s own answer is the one it gets, and that is a fact about the target rather than about
the flags, so it is settled where the target is known and not here.
Whichever the platform puts first, which is what a command line that said neither gets.
-mfentry. In front of the prologue, so the return address is the top thing on the stack
and the arguments are still where the call left them.
-mno-fentry. Once the frame is taken, so the hook can walk back through the frame pointer,
which is why a function that has this one is given a frame pointer whatever else was said.
That answer as it is written on a command line, which is what --print-config reports.
Whether the call goes in front of the prologue, given what the platform puts first.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Returns the “default value” for a type.
Read more Formats the value using the given formatter.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more 🔬 This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.