Revision 74545f63890e38520eb4d1dbedcadaa9c0dbc824 authored by David Carrillo-Cisneros on 23 December 2016, 01:17:40 UTC, committed by Ingo Molnar on 05 January 2017, 08:13:55 UTC
The conversion of Intel PMU drivers into modules did not include reference counting. The machine will crash when attempting to access deleted code if an event from a module PMU is started and the module removed before the event is destroyed. i.e. this crashes the machine: $ insmod intel-rapl-perf.ko $ perf stat -e power/energy-cores/ -C 0 & $ rmmod intel-rapl-perf.ko Set THIS_MODULE to pmu->module in Intel module PMUs so that generic code can handle reference counting and deny rmmod while an event still exists. Signed-off-by: David Carrillo-Cisneros <davidcc@google.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Borislav Petkov <bp@suse.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Kan Liang <kan.liang@intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul Turner <pjt@google.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Cc: Stephane Eranian <eranian@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1482455860-116269-1-git-send-email-davidcc@google.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 4e06d4f
File | Mode | Size |
---|---|---|
libxfs | ||
Kconfig | -rw-r--r-- | 3.8 KB |
Makefile | -rw-r--r-- | 3.5 KB |
kmem.c | -rw-r--r-- | 3.5 KB |
kmem.h | -rw-r--r-- | 3.2 KB |
mrlock.h | -rw-r--r-- | 2.2 KB |
uuid.c | -rw-r--r-- | 1.6 KB |
uuid.h | -rw-r--r-- | 1.1 KB |
xfs.h | -rw-r--r-- | 957 bytes |
xfs_acl.c | -rw-r--r-- | 5.9 KB |
xfs_acl.h | -rw-r--r-- | 1.2 KB |
xfs_aops.c | -rw-r--r-- | 38.4 KB |
xfs_aops.h | -rw-r--r-- | 2.1 KB |
xfs_attr.h | -rw-r--r-- | 5.9 KB |
xfs_attr_inactive.c | -rw-r--r-- | 11.2 KB |
xfs_attr_list.c | -rw-r--r-- | 15.2 KB |
xfs_bmap_item.c | -rw-r--r-- | 13.0 KB |
xfs_bmap_item.h | -rw-r--r-- | 3.3 KB |
xfs_bmap_util.c | -rw-r--r-- | 55.7 KB |
xfs_bmap_util.h | -rw-r--r-- | 2.8 KB |
xfs_buf.c | -rw-r--r-- | 48.0 KB |
xfs_buf.h | -rw-r--r-- | 12.9 KB |
xfs_buf_item.c | -rw-r--r-- | 33.8 KB |
xfs_buf_item.h | -rw-r--r-- | 2.6 KB |
xfs_dir2_readdir.c | -rw-r--r-- | 17.7 KB |
xfs_discard.c | -rw-r--r-- | 6.4 KB |
xfs_discard.h | -rw-r--r-- | 262 bytes |
xfs_dquot.c | -rw-r--r-- | 29.9 KB |
xfs_dquot.h | -rw-r--r-- | 5.5 KB |
xfs_dquot_item.c | -rw-r--r-- | 11.3 KB |
xfs_dquot_item.h | -rw-r--r-- | 1.7 KB |
xfs_error.c | -rw-r--r-- | 4.3 KB |
xfs_error.h | -rw-r--r-- | 5.8 KB |
xfs_export.c | -rw-r--r-- | 6.6 KB |
xfs_export.h | -rw-r--r-- | 2.0 KB |
xfs_extent_busy.c | -rw-r--r-- | 15.4 KB |
xfs_extent_busy.h | -rw-r--r-- | 2.4 KB |
xfs_extfree_item.c | -rw-r--r-- | 14.8 KB |
xfs_extfree_item.h | -rw-r--r-- | 3.8 KB |
xfs_file.c | -rw-r--r-- | 39.6 KB |
xfs_filestream.c | -rw-r--r-- | 11.2 KB |
xfs_filestream.h | -rw-r--r-- | 1.4 KB |
xfs_fsops.c | -rw-r--r-- | 27.5 KB |
xfs_fsops.h | -rw-r--r-- | 1.3 KB |
xfs_globals.c | -rw-r--r-- | 1.7 KB |
xfs_icache.c | -rw-r--r-- | 42.8 KB |
xfs_icache.h | -rw-r--r-- | 3.9 KB |
xfs_icreate_item.c | -rw-r--r-- | 4.8 KB |
xfs_icreate_item.h | -rw-r--r-- | 1.2 KB |
xfs_inode.c | -rw-r--r-- | 97.6 KB |
xfs_inode.h | -rw-r--r-- | 14.6 KB |
xfs_inode_item.c | -rw-r--r-- | 22.9 KB |
xfs_inode_item.h | -rw-r--r-- | 2.0 KB |
xfs_ioctl.c | -rw-r--r-- | 45.0 KB |
xfs_ioctl.h | -rw-r--r-- | 1.9 KB |
xfs_ioctl32.c | -rw-r--r-- | 17.7 KB |
xfs_ioctl32.h | -rw-r--r-- | 9.1 KB |
xfs_iomap.c | -rw-r--r-- | 32.2 KB |
xfs_iomap.h | -rw-r--r-- | 1.3 KB |
xfs_iops.c | -rw-r--r-- | 31.0 KB |
xfs_iops.h | -rw-r--r-- | 1.4 KB |
xfs_itable.c | -rw-r--r-- | 17.4 KB |
xfs_itable.h | -rw-r--r-- | 3.1 KB |
xfs_linux.h | -rw-r--r-- | 9.1 KB |
xfs_log.c | -rw-r--r-- | 111.7 KB |
xfs_log.h | -rw-r--r-- | 5.3 KB |
xfs_log_cil.c | -rw-r--r-- | 35.1 KB |
xfs_log_priv.h | -rw-r--r-- | 22.2 KB |
xfs_log_recover.c | -rw-r--r-- | 159.8 KB |
xfs_message.c | -rw-r--r-- | 2.8 KB |
xfs_message.h | -rw-r--r-- | 2.3 KB |
xfs_mount.c | -rw-r--r-- | 34.8 KB |
xfs_mount.h | -rw-r--r-- | 16.7 KB |
xfs_mru_cache.c | -rw-r--r-- | 17.7 KB |
xfs_mru_cache.h | -rw-r--r-- | 1.7 KB |
xfs_ondisk.h | -rw-r--r-- | 6.3 KB |
xfs_pnfs.c | -rw-r--r-- | 7.4 KB |
xfs_pnfs.h | -rw-r--r-- | 601 bytes |
xfs_qm.c | -rw-r--r-- | 47.2 KB |
xfs_qm.h | -rw-r--r-- | 6.2 KB |
xfs_qm_bhv.c | -rw-r--r-- | 4.3 KB |
xfs_qm_syscalls.c | -rw-r--r-- | 20.6 KB |
xfs_quota.h | -rw-r--r-- | 6.0 KB |
xfs_quotaops.c | -rw-r--r-- | 7.1 KB |
xfs_refcount_item.c | -rw-r--r-- | 14.2 KB |
xfs_refcount_item.h | -rw-r--r-- | 3.3 KB |
xfs_reflink.c | -rw-r--r-- | 38.4 KB |
xfs_reflink.h | -rw-r--r-- | 2.3 KB |
xfs_rmap_item.c | -rw-r--r-- | 13.7 KB |
xfs_rmap_item.h | -rw-r--r-- | 3.6 KB |
xfs_rtalloc.c | -rw-r--r-- | 35.1 KB |
xfs_rtalloc.h | -rw-r--r-- | 4.8 KB |
xfs_stats.c | -rw-r--r-- | 5.2 KB |
xfs_stats.h | -rw-r--r-- | 7.8 KB |
xfs_super.c | -rw-r--r-- | 53.2 KB |
xfs_super.h | -rw-r--r-- | 2.2 KB |
xfs_symlink.c | -rw-r--r-- | 13.5 KB |
xfs_symlink.h | -rw-r--r-- | 1.0 KB |
xfs_sysctl.c | -rw-r--r-- | 5.9 KB |
xfs_sysctl.h | -rw-r--r-- | 3.6 KB |
xfs_sysfs.c | -rw-r--r-- | 13.6 KB |
xfs_sysfs.h | -rw-r--r-- | 1.8 KB |
xfs_trace.c | -rw-r--r-- | 1.6 KB |
xfs_trace.h | -rw-r--r-- | 101.1 KB |
xfs_trans.c | -rw-r--r-- | 27.8 KB |
xfs_trans.h | -rw-r--r-- | 10.0 KB |
xfs_trans_ail.c | -rw-r--r-- | 20.3 KB |
xfs_trans_bmap.c | -rw-r--r-- | 6.3 KB |
xfs_trans_buf.c | -rw-r--r-- | 21.9 KB |
xfs_trans_dquot.c | -rw-r--r-- | 21.9 KB |
xfs_trans_extfree.c | -rw-r--r-- | 6.1 KB |
xfs_trans_inode.c | -rw-r--r-- | 4.0 KB |
xfs_trans_priv.h | -rw-r--r-- | 5.1 KB |
xfs_trans_refcount.c | -rw-r--r-- | 6.8 KB |
xfs_trans_rmap.c | -rw-r--r-- | 7.1 KB |
xfs_xattr.c | -rw-r--r-- | 6.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...