
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
A lightweight Python toolkit for response-time analysis based on schedule-abstraction graph. You may also be interested in Official SAG repository (in C++), sag-go (in GO), and sag-py (in Python).
You may install SAGkit with pip:
pip install sagkit
or reproduce the results in our paper with a docker image (requires Docker):
docker pull caoruide/sagkit
The jobset generator takes the following arguments:
Generate jobsets:
python -m sagkit.jobset_generator [ET_ratio] [utilization] [jobset_folder] [num_job] [num_instance]
The SAG constructor takes the following arguments:
Construct SAGs:
python -m sagkit.sag_constructor [jobset_folder] [constructor_type] [save_dot] [save_statistics]
Create a folder /example/ in the current working directory.
Create a file 'example.txt' in the /example/ folder.
Write the following content (Fig. 4 example in our paper) into example.txt.
0 2 9 10 20 1 1
1 2 5 6 25 4 0
4 5 1 2 25 3 0
3 6 2 3 25 2 0
or write any job you want for each line, in the following format:
BCAT WCAT BCET WCET deadline priority ET
Go back to the original working directory. Run the constructor:
python -m sagkit.sag_constructor --jobset_folder ./example/
The constructed SAGs will be saved in ./dotfiles/ folder. To visualize, paste the contents of each .dot file to:
https://dreampuf.github.io/GraphvizOnline (you may want to access in incognito mode.)
Generate jobsets:
python -m sagkit.jobset_generator --ET_ratio 0,10,15,20,30,40,50,60,70,80,90,100 --utilization 45,50,55,60,65,70,75
Construct SAGs (29 hours on my computer):
python -m sagkit.sag_constructor --jobset_folder ./jobsets/ --save_statistics ./statistics.csv
View the statistics in ./statistics.csv.
mkdir results
docker run -v "$(pwd)/results:/output" caoruide/sagkit sagkit.sag_constructor --save_dot True --jobset_folder /basic_idea/
https://dreampuf.github.io/GraphvizOnline (you may want to access in incognito mode.)
docker run -v "$(pwd)/results:/output" caoruide/sagkit sagkit.sag_constructor --save_dot True --jobset_folder /example1/
docker run -v "$(pwd)/results:/output" caoruide/sagkit sagkit.sag_constructor --save_dot True --jobset_folder /example2/
docker run -v "$(pwd)/results:/output" caoruide/sagkit sagkit.jobset_generator --ET_ratio 0,10,15,20,30,40,50,60,70,80,90,100 --utilization 45,50,55,60,65,70,75
docker run -v "$(pwd)/results:/output" caoruide/sagkit sagkit.sag_constructor
Install SAGkit from source:
git clone https://github.com/RyderCRD/sagkit
Change direcotry to ./sagkit (over the /src directory):
cd sagkit
Run all unit tests:
python -m unittest discover tests
Contributions are welcome! Please feel free to drop your issues and PRs :)
FAQs
A toolkit for constructing and analyzing schedule-abstraction graph in Python
We found that sagkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.