diff options
| author | Qi Liu <[email protected]> | 2020-07-17 08:49:23 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2020-07-17 09:51:44 +0000 |
| commit | f32ed8eb0e3f0d0ef4ddb854554d60ca5863a9f9 (patch) | |
| tree | 455b30ad8a4efffe84e472e9036fcd319eab0f82 /scripts/gcc-plugins/sancov_plugin.c | |
| parent | asm-generic/mmiowb: Allow mmiowb_set_pending() when preemptible() (diff) | |
| download | kernel-f32ed8eb0e3f0d0ef4ddb854554d60ca5863a9f9.tar.gz kernel-f32ed8eb0e3f0d0ef4ddb854554d60ca5863a9f9.zip | |
drivers/perf: Prevent forced unbinding of PMU drivers
Forcefully unbinding PMU drivers during perf sampling will lead to
a kernel panic, because the perf upper-layer framework call a NULL
pointer in this situation.
To solve this issue, "suppress_bind_attrs" should be set to true, so
that bind/unbind can be disabled via sysfs and prevent unbinding PMU
drivers during perf sampling.
Signed-off-by: Qi Liu <[email protected]>
Reviewed-by: John Garry <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
