Skip to content
  • Ari Kauppi's avatar
    ARM: oprofile: Fix backtraces in timer mode · d14dd7e2
    Ari Kauppi authored
    Always allow backtraces when using oprofile on ARM, even if a PMU
    isn't present. Restores functionality originally introduced in commit
    1b7b5698
    
     ("oprofile: Always allow
    backtraces on ARM") by Richard Purdie.
    
    It is not that obvious, but there is now only one oprofile_arch_init()
    function. So the .backtrace callback is available also in timer mode.
    
    Implemented by removing code and using stubs for oprofile_perf_{init,
    exit} provided by <linux/oprofile.h>. This allows cleaning of other
    architecture specific implementations too.
    
    Cc: stable@kernel.org # 37.x
    Signed-off-by: default avatarAri Kauppi <kauppi@papupata.org>
    Acked-by: default avatarWill Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
    d14dd7e2