#!/usr/bin/env python data = {} times = [] threads = [] cpus = [] def get_key(time, event, cpu, thread): return "%d-%s-%d-%d" % (time, event, cpu, thread) def store_key(time, cpu, thread): if (time not in times): times.append(time) if (cpu not in cpus): cpus.append(cpu) if (thread not in threads): threads.append(thread) def store(time, event, cpu, thread, val, ena, run): #print "event %s cpu %d, thread %d, time %d, val %d, ena %d, run %d" % \ # (event, cpu, thread, time, val, ena, run) store_key(time, cpu, thread) key = get_key(time, event, cpu, thread) data[key] = [ val, ena, run] def get(time, event, cpu, thread): key = get_key(time, event, cpu, thread) return data[key][0] def stat__cycles_k(cpu, thread, time, val, ena, run): store(time, "cycles", cpu, thread, val, ena, run); def stat__instructions_k(cpu, thread, time, val, ena, run): store(time, "instructions", cpu, thread, val, ena, run); def stat__cycles_u(cpu, thread, time, val, ena, run): store(time, "cycles", cpu, thread, val, ena, run); def stat__instructions_u(cpu, thread, time, val, ena, run): store(time, "instructions", cpu, thread, val, ena, run); def stat__cycles(cpu, thread, time, val, ena, run): store(time, "cycles", cpu, thread, val, ena, run); def stat__instructions(cpu, thread, time, val, ena, run): store(time, "instructions", cpu, thread, val, ena, run); def stat__interval(time): for cpu in cpus: for thread in threads: cyc = get(time, "cycles", cpu, thread) ins = get(time, "instructions", cpu, thread) cpi = 0 if ins != 0: cpi = cyc/float(ins) print "%15f: cpu %d, thread %d -> cpi %f (%d/%d)" % (time/(float(1000000000)), cpu, thread, cpi, cyc, ins) def trace_end(): pass # XXX trace_end callback could be used as an alternative place # to compute same values as in the script above: # # for time in times: # for cpu in cpus: # for thread in threads: # cyc = get(time, "cycles", cpu, thread) # ins = get(time, "instructions", cpu, thread) # # if ins != 0: # cpi = cyc/float(ins) # # print "time %.9f, cpu %d, thread %d -> cpi %f" % (time/(float(1000000000)), cpu, thread, cpi) option> Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/fs/befs
AgeCommit message (Expand)Author
2016-09-14block: remove remnant refs to hardsectLinus Walleij
2016-05-23fs/befs/io.c:befs_bread(): remove unneeded initialization to NULLSalah Triki
2016-05-23fs/befs/io.c:befs_bread_iaddr(): remove unneeded initialization to NULLSalah Triki
2016-05-23fs/befs/linuxvfs.c:befs_iget(): remove unneeded befs_nio initialization to NULLSalah Triki
2016-05-23fs/befs/linuxvfs.c:befs_iget(): remove unneeded raw_inode initialization to NULLSalah Triki
2016-05-23fs/befs/linuxvfs.c:befs_iget(): remove unneeded initialization to NULLSalah Triki
2016-05-23fs/befs/linuxvfs.c:befs_get_block(): remove unneeded initialization to NULLSalah Triki
2016-05-23fs/befs/datastream.c:befs_find_brun_dblindirect(): remove unneeded initializa...Salah Triki
2016-05-23fs/befs/datastream.c:befs_read_lsymlink(): remove unneeded initialization to ...Salah Triki
2016-05-23fs/befs/datastream.c:befs_read_datastream(): remove unneeded initialization t...Salah Triki
2016-05-10befs: switch to ->iterate_shared()Al Viro
2016-05-10befs: constify stuff a bitAl Viro
2016-01-14kmemcg: account certain kmem allocations to memcgVladimir Davydov
2015-12-08don't put symlink bodies in pagecache into highmemAl Viro
2015-12-06switch befs long symlinks to page_symlink_operationsAl Viro
2015-07-04Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds
2015-06-25fs/befs/btree.c: remove unneeded initializationsFabian Frederick
2015-06-23fs: cleanup slight list_entry abuseRasmus Villemoes
2015-05-10don't pass nameidata to ->follow_link()Al Viro
2015-05-10new ->follow_link() and ->put_link() calling conventionsAl Viro
2015-05-10befs: switch to simple_follow_link()Al Viro
2015-04-26Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds
2015-04-17befs: replace typedef befs_inode_info by structureFabian Frederick
2015-04-17befs: replace typedef befs_sb_info by structureFabian Frederick
2015-04-17befs: replace typedef befs_mount_options by structureFabian Frederick
2015-04-15VFS: normal filesystems (and lustre): d_inode() annotationsDavid Howells
2015-02-17fs/befs/linuxvfs.c: remove unnecessary castingFabian Frederick
2014-12-13befs: remove dead codeJan Kara
2014-11-19assorted conversions to %p[dD]Al Viro
2014-10-14fs/befs/btree.c: remove typedef befs_btree_nodeHimangi Saraogi
2014-08-08fs/befs/linuxvfs.c: check superblock before dump operationFabian Frederick
2014-08-06Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik...Linus Torvalds
2014-06-19befs: remove check for CONFIG_BEFS_RWPaul Bolle
2014-06-06fs/befs: kernel-doc fixesFabian Frederick
2014-06-06fs/befs/linuxvfs.c: remove positive test on sector_tFabian Frederick
2014-06-06fs/befs/btree.c: replace strncpy by strlcpy + coding style fixingFabian Frederick
2014-06-06fs/befs/linuxvfs.c: replace strncpy by strlcpyFabian Frederick
2014-04-04Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds
2014-04-03BEFS: logging cleanupFabian Frederick
2014-04-03fs/befs/linuxvfs.c: add __init to befs_init_inodecache()Fabian Frederick
2014-04-03befs: replace kmalloc/memset 0 by kzallocFabian Frederick
2014-03-13fs: push sync_filesystem() down to the file system's remount_fs()Theodore Ts'o
2014-01-25befs: iget_locked() doesn't return an ERR_PTRRakesh Pandit
2013-10-24befs: split symlink iops in two - for short and long symlinks resp.Al Viro
2013-06-29[readdir] convert befsAl Viro