b1a6760ddf
Sync up with android12-5.10 for the following commits:dd139186ef
ANDROID: usb: gadget: fix NULL pointer dereference in android_setup07f65598af
ANDROID: GKI: Disable kmem cgroup accounting309aa7e7a2
FROMLIST: mm, memcg: inline swap-related functions to improve disabled memcg config3ae8e2f183
BACKPORT: FROMLIST: mm, memcg: inline mem_cgroup_{charge/uncharge} to improve disabled memcg configf73d029485
FROMLIST: mm, memcg: add mem_cgroup_disabled checks in vmpressure and swap-related functions669df367a9
UPSTREAM: mm/memcg: bail early from swap accounting if memcg disabled1f0c32a667
UPSTREAM: procfs/dmabuf: add inode number to /proc/*/fdinfo0c8c125f57
UPSTREAM: procfs: allow reading fdinfo with PTRACE_MODE_READ2e0476a465
Revert "FROMLIST: procfs: Allow reading fdinfo with PTRACE_MODE_READ"5ded961aa2
Revert "FROMLIST: BACKPORT: procfs/dmabuf: Add inode number to /..."3ee5565017
UPSTREAM: f2fs: initialize page->private when using for our internal usedba79c3af3
ANDROID: mm: page_pinner: report test_page_isolation_failure13362ab28e
ANDROID: mm: page_pinner: add state of page_pinner3254948484
ANDROID: mm: page_pinner: add more struct page fields0445b67bee
ANDROID: mm: page_pinner: change timestamp format71da06728c
ANDROID: mm: page_pinner: print_page_pinner refactoringb83e564914
ANDROID: mm: page_pinner: remove shared_count849f048050
ANDROID: mm: page_pinner: remove WARN_ON_ONCE9a453100fc
ANDROID: mm: page_pinner: fix typosd012783a86
ANDROID: mm: page_pinner: reset migration failed page470cce5085
ANDROID: mm: page_pinner: record every put_page9f47e5fdda
ANDROID: mm: page_pinner: change function namesa8385d61f2
ANDROID: Allow vendor module to reclaim a memcgf41a95eadc
ANDROID: Export memcg functions to allow module to add new files46bf3b94e7
FROMGIT: dt-bindings: usb: dwc3: Update dwc3 TX fifo propertiesb36b813e39
UPSTREAM: dt-bindings: usb: Convert DWC USB3 bindings to DT schema9a80b7b728
FROMGIT: of: Add stub for of_add_property()2742be5903
ANDROID: fips140: define fips_enabled to 1 to enable FIPS behaviore886dd4c33
ANDROID: fips140: unregister existing DRBG algorithms634445a640
ANDROID: fips140: fix deadlock in unregister_existing_fips140_algos()0af06624ea
ANDROID: fips140: check for errors from initcalls92de53472e
ANDROID: fips140: log already-live algorithms0a7da21583
ANDROID: Update new mtk gki symbol98085b5dd8
ANDROID: usb: Add vendor hook for usb suspend and resume956db89e71
BACKPORT: FROMLIST: dma-heap: Let dma heap use dma_map_attrs to map & unmap iova749d6e7f2c
ANDROID: abi_gki_aarch64_qcom: Add vendor hook for shmem_alloc_pageb05bbe48be
ANDROID: abi_gki_aarch64_qcom: Add reclaim_shmem_address_spaced80c70d7a8
ANDROID: android: export kernel function arch_mmap_rnd25c7eb4932
ANDROID: mm: shmem: Fix build break with allnoconfig1cdcf76b15
ANDROID: vendor_hooks: add hooks in mem_cgroup subsystem726468dd4a
ANDROID: GKI: add vendor padding variable in struct skb_shared_infofc79c93657
FROMLIST: scsi: ufs: add quirk to enable host controller without interface configuration2d5ae6b787
FROMLIST: scsi: ufs: add quirk to handle broken UIC command38abaebab7
ANDROID: syscall_check: add vendor hook for bpf syscalla7a3b31d58
ANDROID: syscall_check: add vendor hook for open syscalla5543c9cd7
ANDROID: syscall_check: add vendor hook for mmap syscall1f0769279f
ANDROID: GKI: Add symbol to symbol list2cff74e08c
ANDROID: vendor_hooks: Add vendor hook to the net25edba0d4d
FROMLIST: scsi: ufs: Fix the SCSI abort handlerc0efdc4a5e
ANDROID: android: export kernel function vm_unmapped_area964220d080
ANDROID: shmem: vendor hook in shmem_alloc_pagebd2ca0ba5b
FROMLIST: pstore/ram: Rework logic for detecting ramoops reserved memory regiondaeabfe7fa
ANDROID: mm: add reclaim_shmem_address_space() for faster reclaims4c3dddf408
ANDROID: Update the generic ABI symbol list4c4d8cbdef
ANDROID: GKI: refresh ABI XML01e4a037d8
ANDROID: GKI: turn on TIDY_ABIedf973fd24
ANDROID: Update symbol list for VIVO1702d2c8b7
FROMGIT: net: cdc_ncm: switch to eth%d interface namingf4d6e8324c
ANDROID: GKI: add allowed GKI symbol for Exynosauto SoC444a0b7752
ANDROID: mm: add vendor hook for vmpressurec799c6644b
ANDROID: fips140: adjust some log messages091338cb39
ANDROID: fips140: add missing static keyword to fips140_init()70bfd6a7e0
ANDROID: GKI: update allowed list for exynosauto SoC3e3147b280
UPSTREAM: scsi: ufs: ufshcd: Fix some function doc-rot2c553e754f
UPSTREAM: scsi: ufs: Adjust ufshcd_hold() during sending attribute requests52ccdf90b9
FROMLIST: lockdep: Remove console_verbose when disable lock debugging4458494476
ANDROID: ABI: qcom: Add symbols for 802115c51579fde
ANDROID: fork: Export task_newtask tracepointe2a90797e8
ANDROID: Fix kernelci warnings for indentation in smp.cbac33eaebf
ANDROID: irqchip: gic-v3: Move struct gic_chip_data to headerbdac4418bf
ANDROID: abi_gki_aarch64_qcom: Add android_vh_ufs_clock_scaling65c1de0f06
ANDROID: Update symbol list for mtkd4d02ab9b0
UPSTREAM: swiotlb: manipulate orig_addr when tlb_addr has offset58aa0f2832
ANDROID: qcom: Add net related symbol2f9f816445
ANDROID: Update the exynos symbol listb2a9471239
ANDROID: Update symbol list for mtk7c9599e204
FROMGIT: usb: dwc3: Create helper function getting MDWIDTH0a24affb86
ANDROID: vendor_hooks: modify the function named686d5ffc6
ANDROID: GKI: Add some symbols to symbol listbdfb11230b
ANDROID: cpuidle: Allow for an early exit from cpuidle_enter_state()f0b280c395
ANDROID: cpuidle: Update cpuidle_uninstall_idle_handler() to wakeup all online CPUs14dd90ab37
ANDROID: scsi: ufs: Add hook to influence the UFS clock scaling policy00aec39e2e
FROMGIT: bpf: Support all gso types in bpf_skb_change_proto() Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I6e5be89f3f02c420237a549f4c6a08b5ed434581
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* lib/debug_locks.c
|
|
*
|
|
* Generic place for common debugging facilities for various locks:
|
|
* spinlocks, rwlocks, mutexes and rwsems.
|
|
*
|
|
* Started by Ingo Molnar:
|
|
*
|
|
* Copyright (C) 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
|
|
*/
|
|
#include <linux/rwsem.h>
|
|
#include <linux/mutex.h>
|
|
#include <linux/export.h>
|
|
#include <linux/spinlock.h>
|
|
#include <linux/debug_locks.h>
|
|
|
|
/*
|
|
* We want to turn all lock-debugging facilities on/off at once,
|
|
* via a global flag. The reason is that once a single bug has been
|
|
* detected and reported, there might be cascade of followup bugs
|
|
* that would just muddy the log. So we report the first one and
|
|
* shut up after that.
|
|
*/
|
|
int debug_locks __read_mostly = 1;
|
|
EXPORT_SYMBOL_GPL(debug_locks);
|
|
|
|
/*
|
|
* The locking-testsuite uses <debug_locks_silent> to get a
|
|
* 'silent failure': nothing is printed to the console when
|
|
* a locking bug is detected.
|
|
*/
|
|
int debug_locks_silent __read_mostly;
|
|
EXPORT_SYMBOL_GPL(debug_locks_silent);
|
|
|
|
/*
|
|
* Generic 'turn off all lock debugging' function:
|
|
*/
|
|
int debug_locks_off(void)
|
|
{
|
|
if (debug_locks && __debug_locks_off() && !debug_locks_silent)
|
|
return 1;
|
|
return 0;
|
|
}
|
|
EXPORT_SYMBOL_GPL(debug_locks_off);
|