Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit a848bf1

Browse files
committed
arch: xtensa: Remove CONFIG_OPROFILE support
The "oprofile" user-space tools don't use the kernel OPROFILE support any more, and haven't in a long time. User-space has been converted to the perf interfaces. Remove the old oprofile's architecture specific support. Suggested-by: Christoph Hellwig <[email protected]> Suggested-by: Linus Torvalds <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Acked-by: Robert Richter <[email protected]> Acked-by: Max Filippov <[email protected]> Acked-by: William Cohen <[email protected]> Acked-by: Al Viro <[email protected]> Acked-by: Thomas Gleixner <[email protected]>
1 parent a6a0683 commit a848bf1

File tree

10 files changed

+1
-70
lines changed

10 files changed

+1
-70
lines changed

arch/xtensa/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ config XTENSA
3232
select HAVE_FUTEX_CMPXCHG if !MMU
3333
select HAVE_HW_BREAKPOINT if PERF_EVENTS
3434
select HAVE_IRQ_TIME_ACCOUNTING
35-
select HAVE_OPROFILE
3635
select HAVE_PCI
3736
select HAVE_PERF_EVENTS
3837
select HAVE_STACKPROTECTOR

arch/xtensa/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ core-y += $(buildvar) $(buildplf)
8383
core-y += arch/xtensa/boot/dts/
8484

8585
libs-y += arch/xtensa/lib/ $(LIBGCC)
86-
drivers-$(CONFIG_OPROFILE) += arch/xtensa/oprofile/
8786

8887
boot := arch/xtensa/boot
8988

arch/xtensa/configs/audio_kc705_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ CONFIG_BLK_DEV_INITRD=y
1818
CONFIG_EXPERT=y
1919
CONFIG_KALLSYMS_ALL=y
2020
CONFIG_PROFILING=y
21-
CONFIG_OPROFILE=y
2221
CONFIG_MODULES=y
2322
CONFIG_MODULE_UNLOAD=y
2423
CONFIG_XTENSA_VARIANT_CUSTOM=y

arch/xtensa/configs/generic_kc705_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ CONFIG_BLK_DEV_INITRD=y
1818
CONFIG_EXPERT=y
1919
CONFIG_KALLSYMS_ALL=y
2020
CONFIG_PROFILING=y
21-
CONFIG_OPROFILE=y
2221
CONFIG_MODULES=y
2322
CONFIG_MODULE_UNLOAD=y
2423
CONFIG_XTENSA_VARIANT_DC233C=y

arch/xtensa/configs/smp_lx200_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ CONFIG_BLK_DEV_INITRD=y
1818
CONFIG_EXPERT=y
1919
CONFIG_KALLSYMS_ALL=y
2020
CONFIG_PROFILING=y
21-
CONFIG_OPROFILE=y
2221
CONFIG_MODULES=y
2322
CONFIG_MODULE_UNLOAD=y
2423
CONFIG_XTENSA_VARIANT_CUSTOM=y

arch/xtensa/configs/xip_kc705_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ CONFIG_CMDLINE="earlycon=uart8250,mmio32native,0xfd050020,115200n8 console=ttyS0
3131
CONFIG_USE_OF=y
3232
CONFIG_BUILTIN_DTB_SOURCE="kc705"
3333
# CONFIG_PARSE_BOOTPARAM is not set
34-
CONFIG_OPROFILE=y
3534
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
3635
# CONFIG_COMPACTION is not set
3736
CONFIG_NET=y

arch/xtensa/kernel/stacktrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <asm/traps.h>
1717
#include <linux/uaccess.h>
1818

19-
#if IS_ENABLED(CONFIG_OPROFILE) || IS_ENABLED(CONFIG_PERF_EVENTS)
19+
#if IS_ENABLED(CONFIG_PERF_EVENTS)
2020

2121
/* Address of common_exception_return, used to check the
2222
* transition from kernel to user space.

arch/xtensa/oprofile/Makefile

Lines changed: 0 additions & 10 deletions
This file was deleted.

arch/xtensa/oprofile/backtrace.c

Lines changed: 0 additions & 27 deletions
This file was deleted.

arch/xtensa/oprofile/init.c

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)