Home
last modified time | relevance | path

Searched hist:c24b4f8f70ad390be85afb2b135ad6fb76acb0ec (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/pta/
H A Dgprof.cc24b4f8f70ad390be85afb2b135ad6fb76acb0ec Thu Mar 19 09:15:57 UTC 2020 Jens Wiklander <jens.wiklander@linaro.org> core: gprof: check that PC sampling is idle before starting

In gprof_start_pc_sampling() check that PC sampling isn't started yet,
or have been stopped before starting again. This avoids memory leakage
by s->sbuf being overwritten with a pointer to a new buffer.

Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Reviewed-by: Jerome Forissier <jerome@forissier.org>
Reported-by: Bastien Simondi <bsimondi@netflix.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>