This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, subprocess | |
import errno | |
import time | |
import shutil | |
import signal | |
from string import maketrans | |
from datetime import datetime | |
from threading import Thread | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "duality", | |
"steps": { | |
"manager": { | |
"num_steps": 60, | |
"num_requests": 20, | |
}, | |
"worker": { | |
"num_steps": 60, | |
"num_requests": 120, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os, sys | |
import subprocess | |
LXC_BASE = '/var/lib/lxc' | |
def patch_sources_list(path): | |
lts_lines = ['# LTS repository', | |
'deb http://http.debian.net/debian/ squeeze-lts main contrib non-free', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt4 import QtCore | |
import sys | |
PROJECTS = ['lib/libtsload', 'lib/libtsjson', 'lib/libtsfile', 'lib/libtscommon', 'lib/libtsagent', | |
'lib/libhostinfo', 'lib/libtsobj', 'cmd/swat-import', 'cmd/tsgenuuid', 'cmd/tsloadd', | |
'cmd/tsfutil', 'cmd/tsexperiment', 'cmd/tsgenmodsrc', 'cmd/tshostinfo'] | |
BASEID = 1 | |
for projid, proj in enumerate(PROJECTS): | |
path = '/pool/devel/TSLoad/tsload/agent/' + proj + '/include' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global tm_fork_start_par[128], tm_fork_start[128], tm_fork_end[128], | |
tm_exec_start[128], tm_exec_end[128], p_argstr[128]; | |
global fork[128], postfork[128], exec[128], proc[128]; | |
probe syscall.fork { | |
tm_fork_start_par[tid()] = local_clock_ns(); | |
} | |
probe syscall.fork.return { | |
if($return > 1) { | |
tm_fork_start[$return] = tm_fork_start_par[tid()]; |
NewerOlder