# Monitor the system for dropped packets and proudce a report of drop locations and counts import os import sys sys.path.append(os.environ['PERF_EXEC_PATH'] + \ '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') from perf_trace_context import * from Core import * from Util import * drop_log = {} kallsyms = [] def get_kallsyms_table(): global kallsyms try: f = open("/proc/kallsyms", "r") except: return for line in f: loc = int(line.split()[0], 16) name = line.split()[2] kallsyms.append((loc, name)) kallsyms.sort() def get_sym(sloc): loc = int(sloc) # Invariant: kallsyms[i][0] <= loc for all 0 <= i <= start # kallsyms[i][0] > loc for all end <= i < len(kallsyms) start, end = -1, len(kallsyms) while end != start + 1: pivot = (start + end) // 2 if loc < kallsyms[pivot][0]: end = pivot else: start = pivot # Now (start == -1 or kallsyms[start][0] <= loc) # and (start == len(kallsyms) - 1 or loc < kallsyms[start + 1][0]) if start >= 0: symloc, name = kallsyms[start] return (name, loc - symloc) else: return (None, 0) def print_drop_table(): print "%25s %25s %25s" % ("LOCATION", "OFFSET", "COUNT") for i in drop_log.keys(): (sym, off) = get_sym(i) if sym == None: sym = i print "%25s %25s %25s" % (sym, off, drop_log[i]) def trace_begin(): print "Starting trace (Ctrl-C to dump results)" def trace_end(): print "Gathering kallsyms data" get_kallsyms_table() print_drop_table() # called from perf, when it finds a correspoinding event def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr, location, protocol): slocation = str(location) try: drop_log[slocation] = drop_log[slocation] + 1 except: drop_log[slocation] = 1 25.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs42l42.h
AgeCommit message (Expand)Author
2022-05-09ASoC: cs42l42: Move CS42L42 register descriptions to general includeStefan Binding
2022-03-07ASoC: cs42l42: Add warnings about DETECT_MODE and PLL_STARTRichard Fitzgerald
2022-01-24ASoC: cs42l42: Handle system suspendRichard Fitzgerald
2022-01-24ASoC: cs42l42: Change jack_detect_mutex to a lock of all IRQ handlingRichard Fitzgerald
2021-11-22ASoC: cs42l42: Report initial jack stateRichard Fitzgerald
2021-11-17ASoC: cs42l42: Remove redundant pll_divout memberRichard Fitzgerald
2021-11-15ASoC: cs42l42: Add control for audio slow-start switchRichard Fitzgerald
2021-10-25ASoC: cs42l42: Prevent NULL pointer deref in interrupt handlerRichard Fitzgerald
2021-10-18Merge branch 'asoc-5.15' into asoc-5.16Mark Brown
2021-10-15ASoC: cs42l42: Set correct SRC MCLKRichard Fitzgerald
2021-10-15ASoC: cs42l42: Allow time for HP/ADC to power-up after enableRichard Fitzgerald
2021-09-27ASoC: cs42l42: Use two thresholds and increased wait time for manual type det...Stefan Binding
2021-09-16ASoC: cs42l42: Implement Manual Type detection as fallbackStefan Binding
2021-08-06Merge tag 'asoc-fix-v5.14-rc4' of https://git.kernel.org/pub/scm/linux/kernel...Takashi Iwai
2021-08-06Merge some cs42l42 patches into asoc-5.15Mark Brown
2021-08-05ASoC: cs42l42: Fix mono playbackRichard Fitzgerald
2021-08-05ASoC: cs42l42: PLL must be running when changing MCLK_SRC_SELRichard Fitzgerald
2021-06-25Merge remote-tracking branch 'asoc/for-5.14' into asoc-nextMark Brown
2021-06-16ASoC: cs42l42: Correct definition of CS42L42_ADC_PDN_MASKRichard Fitzgerald
2021-05-25ASoC: cs42l42: Fix 1536000 Bit Clock instabilityLucas Tanure
2021-05-12ASoC: cs42l42: make HSBIAS_SENSE_EN optionalVitaly Rodionov
2021-05-10ASoC: cs42l42: Add support for set_jack callsLucas Tanure
2021-03-10ASoC: cs42l42: Wait for PLL to lock before switching to itRichard Fitzgerald
2021-03-10ASoC: cs42l42: Wait at least 150us after writing SCLK_PRESENTRichard Fitzgerald
2021-03-10ASoC: cs42l42: Use bclk from hw_params if set_sysclk was not calledLucas Tanure
2021-03-10ASoC: cs42l42: Report jack and button detectionLucas Tanure
2021-03-10ASoC: cs42l42: Add Capture SupportLucas Tanure
2021-03-10ASoC: cs42l42: Set clock source for both ways of streamLucas Tanure
2021-03-10ASoC: cs42l42: Provide finer control on playback pathLucas Tanure
2021-03-10ASoC: cs42l42: Always wait at least 3ms after resetLucas Tanure
2021-03-10ASoC: cs42l42: Fix channel width supportLucas Tanure
2021-03-10ASoC: cs42l42: Fix Bitclock polarity inversionLucas Tanure
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500Thomas Gleixner