Re: [PATCH v7 0/2] ARM: Implement MODULE_PLT support in FTRACE
From: Alexander Sverdlin <hidden>
Date: 2021-03-02 10:47:20
Also in:
lkml
Hello Linus, On 02/03/2021 09:29, Linus Walleij wrote:
quoted
quoted
quoted
FTRACE's function tracer currently doesn't always work on ARM with MODULE_PLT option enabled. If the module is loaded too far, FTRACE's
First of all:
config ARM_MODULE_PLTS
bool "Use PLTs to allow module memory to spill over into vmalloc area"
[...]
Any suggestions on a quick use case that illustrates how the problem manifest and how to test it is gone? The errors in patch 2, what do I need to configure in to get them? Does it manifest at modprobe?
And then I use this module to test for the problem:
/**********************************************************************
* Author: Alexander Sverdlin [off-list ref]
*
* Copyright (c) 2018 Nokia
*
* SPDX-License-Identifier: GPL-2.0
*
* This module is intended to test ARM MODULE_PLT functionality
**********************************************************************/
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/module.h>
static int fatmod_init(void)
{
asm volatile (".rept (6 * 1024 * 1024 / 2)\n\t"
"nop\n\t"
".endr");
return 0;
}
module_init(fatmod_init);
static void __exit fatmod_exit(void)
{
}
module_exit(fatmod_exit);
MODULE_AUTHOR("Alexander Sverdlin [off-list ref]");
MODULE_DESCRIPTION("ARM MODULE_PLT test module");
MODULE_LICENSE("GPL");
--
Best regards,
Alexander Sverdlin.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel