# Monitor the system for dropped packets and proudce a report of drop locations and counts # SPDX-License-Identifier: GPL-2.0 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 inux-2.6.26.y'>linux-2.6.26.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/include/linux/hrtimer.h
AgeCommit message (Expand)Author
2008-04-17hrtimers: simplify lockdep handlingOleg Nesterov
2008-02-10hrtimer: fix *rmtp handling in hrtimer_nanosleep()Oleg Nesterov
2008-02-08time: fix typo in commentsLi Zefan
2008-02-07Fix compilation of powerpc asm-offsets.c with old gccTony Breeds
2008-02-05timerfd: new timerfd APIDavide Libenzi
2008-02-05timerfd: introduce a new hrtimer_forward_now() functionDavide Libenzi
2008-02-03time: delete comments that refer to noexistent symbolsLi Zefan
2008-01-25hrtimer: fixup the HRTIMER_CB_IRQSAFE_NO_SOFTIRQ fallbackPeter Zijlstra
2008-01-25sched: high-res preemption tickPeter Zijlstra
2007-10-18hrtimer: Rework hrtimer_nanosleep to make sys_compat_nanosleep easierAnton Blanchard
2007-07-16Add a flag to indicate deferrable timers in /proc/timer_statsVenki Pallipadi
2007-04-07[PATCH] high-res timers: resume fixIngo Molnar
2007-03-06[PATCH] hrtimers: hrtimer_clock_base description typoAndres Salomon
2007-03-06[PATCH] hrtimers: fix HRTIMER_CB_IRQSAFE_NO_SOFTIRQ descriptionAndres Salomon
2007-03-01[PATCH] kernel-doc fixes for 2.6.20-git15 (non-drivers)Randy Dunlap
2007-02-16[PATCH] Add SysRq-Q to print timer_list debug infoIngo Molnar
2007-02-16[PATCH] Add debugging feature /proc/timer_statIngo Molnar
2007-02-16[PATCH] hrtimers: add high resolution timer supportThomas Gleixner
2007-02-16[PATCH] tick-management: dyntick / highres functionalityThomas Gleixner
2007-02-16[PATCH] clockevents: add core functionalityThomas Gleixner
2007-02-16[PATCH] hrtimers: clean up callback trackingThomas Gleixner
2007-02-16[PATCH] hrtimers; add state trackingThomas Gleixner
2007-02-16[PATCH] hrtimers: cleanup lockingThomas Gleixner
2007-02-16[PATCH] hrtimers: namespace and enum cleanupThomas Gleixner
2007-02-16[PATCH] GTOD: persistent clock supportJohn Stultz
2006-09-29[PATCH] posix-timers: Fix clock_nanosleep() doesn't return the remaining time...Toyo Abe
2006-09-06[PATCH] Documentation for lock_key in struct hrtimer_baseHenrik Kretzschmar
2006-07-03[PATCH] lockdep: annotate hrtimer base locksIngo Molnar
2006-06-25[PATCH] ktime/hrtimer: fix kernel-doc commentsRandy Dunlap
2006-04-22[RBTREE] Update hrtimers to use rb_parent() accessor macro.David Woodhouse
2006-04-02Documentation: fix minor kernel-doc warningsMartin Waitz
2006-03-31[PATCH] hrtimer: create generic sleeperThomas Gleixner
2006-03-26[PATCH] hrtimers: remove data fieldRoman Zippel
2006-03-26[PATCH] hrtimers: remove state fieldRoman Zippel
2006-03-26[PATCH] hrtimers: simplify nanosleepRoman Zippel
2006-03-26[PATCH] hrtimers: pass current time to hrtimer_forward()Roman Zippel
2006-03-26[PATCH] hrtimers: optimize softirq runqueuesThomas Gleixner