emory.
Changes from v1:
* Consolidated the function definition into asm-generic header (Will);
* Used APIs to access pt_regs elements (Will);
* Fixed typos in the comments (Will).
Leo Yan (3):
error-injection: Consolidate override function definition
arm64: Add support for function error inje
includes linux/compiler.h for successful
compilation.
Signed-off-by: Leo Yan
---
arch/powerpc/include/asm/error-injection.h | 13 -
arch/x86/include/asm/error-injection.h | 13 -
include/asm-generic/error-injection.h | 6 ++
include/linux/error-injection.h
unction is
override_function_with_return() which is to override the probed
function returning and jump to its caller.
Signed-off-by: Leo Yan
---
arch/arm64/Kconfig | 1 +
arch/arm64/include/asm/ptrace.h | 5 +
arch/arm64/lib/Makefile | 2 ++
arch/arm64/lib/error-injec
This patch implements arm specific functions regs_set_return_value() and
override_function_with_return() to support function error injection.
In the exception flow, it updates pt_regs::ARM_pc with pt_regs::ARM_lr
so can override the probed function return.
Signed-off-by: Leo Yan
---
arch/arm
On Wed, Aug 07, 2019 at 09:08:11AM +0900, Masami Hiramatsu wrote:
> On Tue, 6 Aug 2019 18:00:12 +0800
> Leo Yan wrote:
>
> > This small patch set is to add support for function error injection;
> > this can be used to eanble more advanced debugging feature, e.g.
> >
On Wed, Aug 07, 2019 at 05:07:03PM +0100, Will Deacon wrote:
> On Tue, Aug 06, 2019 at 06:00:12PM +0800, Leo Yan wrote:
> > This small patch set is to add support for function error injection;
> > this can be used to eanble more advanced debugging feature, e.g.
> > CONFI
Hi Russell,
On Tue, Aug 06, 2019 at 06:00:15PM +0800, Leo Yan wrote:
> This patch implements arm specific functions regs_set_return_value() and
> override_function_with_return() to support function error injection.
>
> In the exception flow, it updates pt_regs::ARM_pc with pt_regs:
r patch 1 has been merged by the ARM64 people, I can't take
> it until next cycle.
For this case, do you want me to resend this patch in next merge
window? Or you have picked up this patch but will send PR in next
cycle?
Thanks,
Leo Yan
> On Mon, Aug 19, 2019 at 05:18:08PM +0800, Leo
On Tue, Jun 13, 2023 at 04:54:08PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Tue, Jun 13, 2023 at 10:11:29PM +0530, Athira Rajeev escreveu:
> > From: Sourabh Jain
> >
> > Script doesn't use sys library, so remove it.
>
> Please Cc the persons working on that file, I added Leo to the CC list
>
sts before making it available
> via perf-tools-next, when I should not make any further changes.
Understand now. Here is my review tag:
Reviewed-by: Leo Yan
ot;, expr__parse(&val, ctx,
> "#system_tsc_freq") == 0);
> -if (is_intel)
> +if (strstr(cpuid, "Intel") != NULL)
> TEST_ASSERT_VAL("#system_tsc_freq > 0", val > 0);
> else
> TEST_ASSERT_VAL("#system_tsc_freq == 0", fpclassify(val) == FP_ZERO);
> +#endif
>
> /*
> * Source count returns the number of events aggregating in a leader
I confirmed the change above fixes the failure on Arm64.
Tested-by: Leo Yan
11 matches
Mail list logo