Skip to content

Commit

Permalink
Adding licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
madthanu committed Oct 13, 2014
1 parent bfe11d0 commit 8db9d20
Show file tree
Hide file tree
Showing 13 changed files with 306 additions and 11 deletions.
17 changes: 17 additions & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Thanumalayan Sankaranarayana Pillai, Vijay Chidambaram, Ramnatthan Alagappan,
and Samer Al-Kiswany were involved in various aspects of design and testing of
the ALICE tool. Thanumalayan Sankaranarayana Pillai ([email protected]) is
the primary author of the tool, and might serve to be the best contact for bug
reports, feature requests, or other general discussions. Ramnatthan Alagappan
extensively tested the tool, and Vijay Chidambaram also wrote a part of the
code.

The ALICE tool is a by-product of a research project
(http://research.cs.wisc.edu/adsl/Publications/alice-osdi14.html) in the
University of Wisconsin-Madison, and due credit must be given to everyone who
was involved in or contributed to the project.

The alice-strace tracing framework is a slight customization of the strace tool
(http://sourceforge.net/projects/strace/), along with some code adapted from
strace-plus (https://code.google.com/p/strace-plus/). Credits must be given to
the authors and contributors of strace and strace-plus.
22 changes: 22 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Except where otherwise noted in the source code, all the files not in the
alice-strace directory (and its subdirectories) are:

Copyright (c) 2014 Thanumalayan Sankaranarayana Pillai. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,11 @@ in future versions if users deem them helpful.

Thanumalayan Sankaranarayana Pillai, Vijay Chidambaram, Ramnatthan
Alagappan, and Samer Al-Kiswany were involved in various aspects of
design, coding, and testing of the ALICE tool. Thanumalayan
Sankaranarayana Pillai ([email protected]) is the primary author, and
design and testing of the ALICE tool. Thanumalayan Sankaranarayana
Pillai ([email protected]) is the primary author of the tool, and
might serve to be the best contact for bug reports, feature requests, or
other general discussions.
other general discussions. Ramnatthan Alagappan extensively tested the
tool, and Vijay Chidambaram also wrote a part of the code.

The ALICE tool is a by-product of a research project
([http://research.cs.wisc.edu/adsl/Publications/alice-osdi14.html](http://research.cs.wisc.edu/adsl/Publications/alice-osdi14.html))
Expand Down
28 changes: 27 additions & 1 deletion _aliceautotest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
#!/usr/bin/python2.7
#!/usr/bin/env python

# Copyright (c) 2014 Vijay Chidambaram. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import argparse
import sys
Expand All @@ -11,6 +31,12 @@
import pprint
from sets import Set

__author__ = "Vijay Chidambaram"
__copyright__ = "Copyright 2014, Vijay Chidambaram"
__credits__ = ["Vijay Chidambaram", "Thanumalayan Sankaranarayana Pillai",
"Ramnatthan Alagappan", "Samer Al-Kiswany"]
__license__ = "MIT"

# I use system call and operation interchangeably in the script. Both are used
# to denote something like fsync(3) or write(4,"hello", 5) in the input trace
# file.
Expand Down
26 changes: 26 additions & 0 deletions _aliceparsesyscalls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# Copyright (c) 2014 Thanumalayan Sankaranarayana Pillai. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import pickle
import csv
import sys
Expand All @@ -11,6 +31,12 @@
from alicestruct import Struct
from collections import namedtuple

__author__ = "Thanumalayan Sankaranarayana Pillai"
__copyright__ = "Copyright 2014, Thanumalayan Sankaranarayana Pillai"
__credits__ = ["Thanumalayan Sankaranarayana Pillai", "Vijay Chidambaram",
"Ramnatthan Alagappan", "Samer Al-Kiswany"]
__license__ = "MIT"

innocent_syscalls = ["_exit","pread","_newselect","_sysctl","accept","accept4","access","acct","add_key","adjtimex",
"afs_syscall","alarm","alloc_hugepages","arch_prctl","bind","break","brk","cacheflush",
"capget","capset","clock_getres","clock_gettime","clock_nanosleep","clock_settime",
Expand Down
26 changes: 26 additions & 0 deletions _aliceutils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
# Copyright (c) 2014 Thanumalayan Sankaranarayana Pillai. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import os
import argparse
import subprocess
import re

__author__ = "Thanumalayan Sankaranarayana Pillai"
__copyright__ = "Copyright 2014, Thanumalayan Sankaranarayana Pillai"
__credits__ = ["Thanumalayan Sankaranarayana Pillai", "Vijay Chidambaram",
"Ramnatthan Alagappan", "Samer Al-Kiswany"]
__license__ = "MIT"

__aliceconfig = None
def init_aliceconfig(args):
global current_original_path, __aliceconfig
Expand Down
27 changes: 27 additions & 0 deletions alice.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
#!/usr/bin/env python

# Copyright (c) 2014 Thanumalayan Sankaranarayana Pillai. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import re
import math
import pickle
Expand All @@ -25,6 +46,12 @@
from _aliceutils import *
import gc

__author__ = "Thanumalayan Sankaranarayana Pillai"
__copyright__ = "Copyright 2014, Thanumalayan Sankaranarayana Pillai"
__credits__ = ["Thanumalayan Sankaranarayana Pillai", "Vijay Chidambaram",
"Ramnatthan Alagappan", "Samer Al-Kiswany"]
__license__ = "MIT"

print colorize('-------------------------------------------------------------------------------', 1)
print 'ALICE tool version 0.0.1. Please go through the documentation, particularly the'
print 'listed caveats and limitations, before deriving any inferences from this tool. '
Expand Down
27 changes: 27 additions & 0 deletions alicedefaultexplorer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
#!/usr/bin/env python

# Copyright (c) 2014 Thanumalayan Sankaranarayana Pillai. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import os
import subprocess
import cProfile
Expand All @@ -14,6 +35,12 @@
from alice import Replayer
from alicedefaultfs import defaultfs

__author__ = "Thanumalayan Sankaranarayana Pillai"
__copyright__ = "Copyright 2014, Thanumalayan Sankaranarayana Pillai"
__credits__ = ["Thanumalayan Sankaranarayana Pillai", "Vijay Chidambaram",
"Ramnatthan Alagappan", "Samer Al-Kiswany"]
__license__ = "MIT"

class MultiThreadedChecker(threading.Thread):
queue = Queue.Queue()
outputs = {}
Expand Down
27 changes: 27 additions & 0 deletions alicedefaultfs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Copyright (c) 2014 Thanumalayan Sankaranarayana Pillai. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from alicestruct import Struct
import math

__author__ = "Thanumalayan Sankaranarayana Pillai"
__copyright__ = "Copyright 2014, Thanumalayan Sankaranarayana Pillai"
__credits__ = ["Thanumalayan Sankaranarayana Pillai", "Vijay Chidambaram",
"Ramnatthan Alagappan", "Samer Al-Kiswany"]
__license__ = "MIT"

class defaultfs:
def __init__(self, split_mode, splits):
assert split_mode in ['aligned', 'count']
Expand Down
26 changes: 26 additions & 0 deletions alicestruct.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
# Copyright (c) 2014 Thanumalayan Sankaranarayana Pillai. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import re
from _aliceutils import *

__author__ = "Thanumalayan Sankaranarayana Pillai"
__copyright__ = "Copyright 2014, Thanumalayan Sankaranarayana Pillai"
__credits__ = ["Thanumalayan Sankaranarayana Pillai", "Vijay Chidambaram",
"Ramnatthan Alagappan", "Samer Al-Kiswany"]
__license__ = "MIT"

class Struct:
TYPE_DIR = 0
TYPE_FILE = 1
Expand Down
34 changes: 28 additions & 6 deletions bin/alice-check
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
#!/usr/bin/env python

# Copyright (c) 2014 Thanumalayan Sankaranarayana Pillai. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import argparse
import sys
import os
Expand All @@ -7,6 +28,12 @@ import subprocess
import pickle
import alicedefaultexplorer

__author__ = "Thanumalayan Sankaranarayana Pillai"
__copyright__ = "Copyright 2014, Thanumalayan Sankaranarayana Pillai"
__credits__ = ["Thanumalayan Sankaranarayana Pillai", "Vijay Chidambaram",
"Ramnatthan Alagappan", "Samer Al-Kiswany"]
__license__ = "MIT"

parser = argparse.ArgumentParser()
parser.add_argument('--checker', required = True, help = 'Location of the checker')
parser.add_argument('--traces_dir', required = True, help = 'Location of the traces directory')
Expand All @@ -22,10 +49,6 @@ f = open(os.path.join(args.traces_dir, "config"), "r")
config = pickle.load(f)
f.close()


#### HACK - MADTHANU - REMOVE
os.system("rm -rf /run/shm/alice-*")

def try_mkdir(name):
try:
os.system("rm -rf " + name)
Expand All @@ -52,6 +75,5 @@ for folder in folders:
break

alicedefaultexplorer.default_checks(alice_config, threads = args.threads)
#### HACK - MADTHANU - INSERT
#os.system("rm -rf " + alice_config['scratchpad_dir'])
os.system("rm -rf " + alice_config['scratchpad_dir'])

Loading

0 comments on commit 8db9d20

Please sign in to comment.