/* * CONFIG_LOCKDEP_SMALL is defined for sparc. Sparc requires .text, * .data and .bss to fit in required 32MB limit for the kernel. With * CONFIG_LOCKDEP we could go over this limit and cause system boot-up problems. * So, reduce the static allocations for lockdeps related structures so that * everything fits in current required size limit.
*/ #ifdef CONFIG_LOCKDEP_SMALL /* * MAX_LOCKDEP_ENTRIES is the maximum number of lock dependencies * we track. * * We use the per-lock dependency maps in two ways: we grow it by adding * every to-be-taken lock to all currently held lock's own dependency * table (if it's not there yet), and we check it for lock order * conflicts and deadlocks.
*/ #define MAX_LOCKDEP_ENTRIES 16384UL #define MAX_LOCKDEP_CHAINS_BITS 15 #define MAX_STACK_TRACE_ENTRIES 262144UL #define STACK_TRACE_HASH_SIZE 8192 #else #define MAX_LOCKDEP_ENTRIES (1UL << CONFIG_LOCKDEP_BITS)
#include <asm/local.h> /* * Various lockdep statistics. * We want them per cpu as they are often accessed in fast path * and we want to avoid too much cache bouncing.
*/ struct lockdep_stats { unsignedlong chain_lookup_hits; unsignedint chain_lookup_misses; unsignedlong hardirqs_on_events; unsignedlong hardirqs_off_events; unsignedlong redundant_hardirqs_on; unsignedlong redundant_hardirqs_off; unsignedlong softirqs_on_events; unsignedlong softirqs_off_events; unsignedlong redundant_softirqs_on; unsignedlong redundant_softirqs_off; int nr_unused_locks; unsignedint nr_redundant_checks; unsignedint nr_redundant; unsignedint nr_cyclic_checks; unsignedint nr_find_usage_forwards_checks; unsignedint nr_find_usage_backwards_checks;
/* * Per lock class locking operation stat counts
*/ unsignedlong lock_class_ops[MAX_LOCKDEP_KEYS];
};
#else # define __debug_atomic_inc(ptr) do { } while (0) # define debug_atomic_inc(ptr) do { } while (0) # define debug_atomic_dec(ptr) do { } while (0) # define debug_atomic_read(ptr) 0 # define debug_class_ops_inc(ptr) do { } while (0) #endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.