├── .gitattributes ├── .gitignore ├── .gitmodules ├── .gitshared ├── LICENSE ├── README.md ├── apithemal ├── apithemal.py ├── run.sh └── templates │ └── index.html ├── aws ├── README.md ├── aws_utils │ ├── __init__.py │ ├── get_running_queue_command.sh │ ├── instance_utils.py │ ├── queue_process.py │ ├── remote_setup.sh │ ├── spot_checker.py │ └── tmux_attach.sh ├── command_queue.py ├── connect_instance.py ├── ping_slack.py ├── start_instance.py ├── stop_instance.py └── synchronize_files.py ├── common ├── .gitignore ├── common_libs │ ├── __init__.py │ ├── graphs.py │ └── utilities.py ├── inputs │ ├── delimiters.txt │ ├── encoding.h │ └── offsets.txt └── setup.py ├── data_collection ├── .gitignore ├── CMakeLists.txt ├── README.md ├── build_dynamorio.sh ├── common │ ├── change_opcode.h │ ├── client.h │ ├── code_embedding.c │ ├── code_embedding.h │ ├── common.h │ ├── disasm_corrector.c │ ├── disasm_corrector.h │ ├── dr_utility.c │ ├── dr_utility.h │ ├── mmap.h │ ├── mysql_impl.c │ ├── mysql_impl.h │ ├── sql_dump.c │ ├── sql_dump.h │ ├── sql_dump_v2.c │ ├── sql_dump_v2.h │ ├── sqlite3_impl.c │ └── sqlite3_impl.h ├── disassembler │ ├── .gitignore │ ├── CMakeLists.txt │ ├── disassemble.cpp │ ├── disassembler.cpp │ └── disassembler.h ├── dynamic │ ├── dynamic.c │ ├── dynamic_logic.c │ ├── dynamic_logic.h │ └── dynamic_snoop.c ├── elfs │ ├── .gitignore │ ├── copy_text.sh │ └── disassemble.sh ├── static │ ├── extract.py │ └── static.c ├── timing │ ├── README │ ├── timing.c │ ├── timing_dump.c │ ├── timing_dump.h │ ├── timing_logic.c │ ├── timing_logic.h │ ├── timing_mmap.h │ └── timing_snoop.c └── tokenizer │ └── tokenizer.c ├── data_export ├── .gitignore ├── schemas │ ├── .gitignore │ ├── mysql_reduced.sql │ ├── mysql_schema.sql │ ├── mysql_schema_v2.sql │ ├── tokenization.md │ └── update_schema.sql └── scripts │ ├── create_and_populate_db.sh │ ├── create_database_from_file.sh │ ├── create_db.sh │ ├── data_linter.py │ └── populate_database.sh ├── docker ├── Dockerfile ├── README.md ├── _docker_utils.sh ├── docker-compose.yml ├── docker_build.sh ├── docker_build_aws.sh ├── docker_connect.sh ├── docker_my.cnf ├── docker_stop.sh ├── env └── notebook_config.patch ├── learning ├── .gitignore └── pytorch │ ├── .gitignore │ ├── README.md │ ├── __init__.py │ ├── data │ ├── __init__.py │ ├── augmentation.py │ ├── data.py │ └── data_cost.py │ ├── examples │ ├── .gitignore │ ├── example.S │ ├── example.asm │ ├── example.c │ └── iacaMarks.h │ ├── experiments │ ├── .gitignore │ ├── __init__.py │ ├── benchmarker.py │ └── experiment.py │ ├── inputs │ ├── augmentations │ │ └── .gitignore │ ├── data │ │ └── .gitignore │ └── embeddings │ │ ├── .gitignore │ │ ├── code.emb │ │ └── code_delim.emb │ ├── ithemal │ ├── ithemal_utils.py │ ├── mpconfig.py │ ├── predict.py │ ├── run_ithemal.py │ ├── save_data.py │ ├── training.py │ └── training_messages.py │ ├── loss_reports │ ├── .gitignore │ ├── plot.py │ └── sync_reports.sh │ ├── models │ ├── README │ ├── __init__.py │ ├── baselines.py │ ├── graph_models.py │ ├── losses.py │ ├── model_utils.py │ ├── rnn_models.py │ └── train.py │ ├── notebooks │ ├── .gitignore │ ├── Aug.ipynb │ ├── Edge Free Validation.ipynb │ ├── Execution Unit Augmentation.ipynb │ ├── Figures.ipynb │ ├── Gradients.ipynb │ ├── Graph Explorer.ipynb │ ├── IACA Test.ipynb │ ├── ICML Rebuttal.ipynb │ ├── Neural Processor Simulator.ipynb │ ├── New Timings.ipynb │ ├── Perf.ipynb │ ├── Permutation Data Exploration.ipynb │ ├── Permutation Learning.ipynb │ └── Train Test Data Exploration.ipynb │ ├── results │ ├── figures │ │ └── .gitignore │ ├── pickled_results │ │ └── .gitignore │ └── raw_results │ │ └── .gitignore │ ├── stats │ └── benchmarks.py │ └── utils │ ├── __init__.py │ └── messages.py ├── testing ├── conftest.py ├── test_data │ ├── .gitignore │ ├── example_config.cfg │ └── static_test.sql ├── test_database.py ├── test_dynamorio.py ├── test_ithemal.py └── test_stats.py └── timing_tools ├── .gitignore ├── agner ├── .gitignore ├── PMCTestB64.nasm └── a64-out.sh ├── harness ├── .gitignore ├── Makefile ├── a64-out.sh ├── rdpmc.c ├── rdpmc.h ├── run_test.nasm └── test.c ├── setup_tools.sh ├── test_code_id.py ├── test_sample.sh └── timing ├── .gitignore ├── __init__.py ├── getiacatiming.py ├── getllvmtiming.py └── gettiming.py /.gitattributes: -------------------------------------------------------------------------------- 1 | *.ipynb filter=nbstrip_full -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/.gitmodules -------------------------------------------------------------------------------- /.gitshared: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/.gitshared -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/README.md -------------------------------------------------------------------------------- /apithemal/apithemal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/apithemal/apithemal.py -------------------------------------------------------------------------------- /apithemal/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/apithemal/run.sh -------------------------------------------------------------------------------- /apithemal/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/apithemal/templates/index.html -------------------------------------------------------------------------------- /aws/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/README.md -------------------------------------------------------------------------------- /aws/aws_utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /aws/aws_utils/get_running_queue_command.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/aws_utils/get_running_queue_command.sh -------------------------------------------------------------------------------- /aws/aws_utils/instance_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/aws_utils/instance_utils.py -------------------------------------------------------------------------------- /aws/aws_utils/queue_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/aws_utils/queue_process.py -------------------------------------------------------------------------------- /aws/aws_utils/remote_setup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/aws_utils/remote_setup.sh -------------------------------------------------------------------------------- /aws/aws_utils/spot_checker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/aws_utils/spot_checker.py -------------------------------------------------------------------------------- /aws/aws_utils/tmux_attach.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/aws_utils/tmux_attach.sh -------------------------------------------------------------------------------- /aws/command_queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/command_queue.py -------------------------------------------------------------------------------- /aws/connect_instance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/connect_instance.py -------------------------------------------------------------------------------- /aws/ping_slack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/ping_slack.py -------------------------------------------------------------------------------- /aws/start_instance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/start_instance.py -------------------------------------------------------------------------------- /aws/stop_instance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/stop_instance.py -------------------------------------------------------------------------------- /aws/synchronize_files.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/aws/synchronize_files.py -------------------------------------------------------------------------------- /common/.gitignore: -------------------------------------------------------------------------------- 1 | *.egg-info/ 2 | dist/ -------------------------------------------------------------------------------- /common/common_libs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /common/common_libs/graphs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/common/common_libs/graphs.py -------------------------------------------------------------------------------- /common/common_libs/utilities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/common/common_libs/utilities.py -------------------------------------------------------------------------------- /common/inputs/delimiters.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/common/inputs/delimiters.txt -------------------------------------------------------------------------------- /common/inputs/encoding.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/common/inputs/encoding.h -------------------------------------------------------------------------------- /common/inputs/offsets.txt: -------------------------------------------------------------------------------- 1 | 158,0,156,157,1263 2 | -------------------------------------------------------------------------------- /common/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/common/setup.py -------------------------------------------------------------------------------- /data_collection/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/.gitignore -------------------------------------------------------------------------------- /data_collection/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/CMakeLists.txt -------------------------------------------------------------------------------- /data_collection/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/README.md -------------------------------------------------------------------------------- /data_collection/build_dynamorio.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/build_dynamorio.sh -------------------------------------------------------------------------------- /data_collection/common/change_opcode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/change_opcode.h -------------------------------------------------------------------------------- /data_collection/common/client.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/client.h -------------------------------------------------------------------------------- /data_collection/common/code_embedding.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/code_embedding.c -------------------------------------------------------------------------------- /data_collection/common/code_embedding.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/code_embedding.h -------------------------------------------------------------------------------- /data_collection/common/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/common.h -------------------------------------------------------------------------------- /data_collection/common/disasm_corrector.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/disasm_corrector.c -------------------------------------------------------------------------------- /data_collection/common/disasm_corrector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/disasm_corrector.h -------------------------------------------------------------------------------- /data_collection/common/dr_utility.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/dr_utility.c -------------------------------------------------------------------------------- /data_collection/common/dr_utility.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/dr_utility.h -------------------------------------------------------------------------------- /data_collection/common/mmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/mmap.h -------------------------------------------------------------------------------- /data_collection/common/mysql_impl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/mysql_impl.c -------------------------------------------------------------------------------- /data_collection/common/mysql_impl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/mysql_impl.h -------------------------------------------------------------------------------- /data_collection/common/sql_dump.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/sql_dump.c -------------------------------------------------------------------------------- /data_collection/common/sql_dump.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/sql_dump.h -------------------------------------------------------------------------------- /data_collection/common/sql_dump_v2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/sql_dump_v2.c -------------------------------------------------------------------------------- /data_collection/common/sql_dump_v2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/sql_dump_v2.h -------------------------------------------------------------------------------- /data_collection/common/sqlite3_impl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/sqlite3_impl.c -------------------------------------------------------------------------------- /data_collection/common/sqlite3_impl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/common/sqlite3_impl.h -------------------------------------------------------------------------------- /data_collection/disassembler/.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | ._* -------------------------------------------------------------------------------- /data_collection/disassembler/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/disassembler/CMakeLists.txt -------------------------------------------------------------------------------- /data_collection/disassembler/disassemble.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/disassembler/disassemble.cpp -------------------------------------------------------------------------------- /data_collection/disassembler/disassembler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/disassembler/disassembler.cpp -------------------------------------------------------------------------------- /data_collection/disassembler/disassembler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/disassembler/disassembler.h -------------------------------------------------------------------------------- /data_collection/dynamic/dynamic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/dynamic/dynamic.c -------------------------------------------------------------------------------- /data_collection/dynamic/dynamic_logic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/dynamic/dynamic_logic.c -------------------------------------------------------------------------------- /data_collection/dynamic/dynamic_logic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/dynamic/dynamic_logic.h -------------------------------------------------------------------------------- /data_collection/dynamic/dynamic_snoop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/dynamic/dynamic_snoop.c -------------------------------------------------------------------------------- /data_collection/elfs/.gitignore: -------------------------------------------------------------------------------- 1 | *.txt 2 | *.o 3 | -------------------------------------------------------------------------------- /data_collection/elfs/copy_text.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/elfs/copy_text.sh -------------------------------------------------------------------------------- /data_collection/elfs/disassemble.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/elfs/disassemble.sh -------------------------------------------------------------------------------- /data_collection/static/extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/static/extract.py -------------------------------------------------------------------------------- /data_collection/static/static.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/static/static.c -------------------------------------------------------------------------------- /data_collection/timing/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/timing/README -------------------------------------------------------------------------------- /data_collection/timing/timing.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/timing/timing.c -------------------------------------------------------------------------------- /data_collection/timing/timing_dump.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/timing/timing_dump.c -------------------------------------------------------------------------------- /data_collection/timing/timing_dump.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/timing/timing_dump.h -------------------------------------------------------------------------------- /data_collection/timing/timing_logic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/timing/timing_logic.c -------------------------------------------------------------------------------- /data_collection/timing/timing_logic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/timing/timing_logic.h -------------------------------------------------------------------------------- /data_collection/timing/timing_mmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/timing/timing_mmap.h -------------------------------------------------------------------------------- /data_collection/timing/timing_snoop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/timing/timing_snoop.c -------------------------------------------------------------------------------- /data_collection/tokenizer/tokenizer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_collection/tokenizer/tokenizer.c -------------------------------------------------------------------------------- /data_export/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/.gitignore -------------------------------------------------------------------------------- /data_export/schemas/.gitignore: -------------------------------------------------------------------------------- 1 | !*.sql -------------------------------------------------------------------------------- /data_export/schemas/mysql_reduced.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/schemas/mysql_reduced.sql -------------------------------------------------------------------------------- /data_export/schemas/mysql_schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/schemas/mysql_schema.sql -------------------------------------------------------------------------------- /data_export/schemas/mysql_schema_v2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/schemas/mysql_schema_v2.sql -------------------------------------------------------------------------------- /data_export/schemas/tokenization.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/schemas/tokenization.md -------------------------------------------------------------------------------- /data_export/schemas/update_schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/schemas/update_schema.sql -------------------------------------------------------------------------------- /data_export/scripts/create_and_populate_db.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/scripts/create_and_populate_db.sh -------------------------------------------------------------------------------- /data_export/scripts/create_database_from_file.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/scripts/create_database_from_file.sh -------------------------------------------------------------------------------- /data_export/scripts/create_db.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/scripts/create_db.sh -------------------------------------------------------------------------------- /data_export/scripts/data_linter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/scripts/data_linter.py -------------------------------------------------------------------------------- /data_export/scripts/populate_database.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/data_export/scripts/populate_database.sh -------------------------------------------------------------------------------- /docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/Dockerfile -------------------------------------------------------------------------------- /docker/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/README.md -------------------------------------------------------------------------------- /docker/_docker_utils.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/_docker_utils.sh -------------------------------------------------------------------------------- /docker/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/docker-compose.yml -------------------------------------------------------------------------------- /docker/docker_build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/docker_build.sh -------------------------------------------------------------------------------- /docker/docker_build_aws.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/docker_build_aws.sh -------------------------------------------------------------------------------- /docker/docker_connect.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/docker_connect.sh -------------------------------------------------------------------------------- /docker/docker_my.cnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/docker_my.cnf -------------------------------------------------------------------------------- /docker/docker_stop.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/docker_stop.sh -------------------------------------------------------------------------------- /docker/env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/env -------------------------------------------------------------------------------- /docker/notebook_config.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/docker/notebook_config.patch -------------------------------------------------------------------------------- /learning/.gitignore: -------------------------------------------------------------------------------- 1 | tensorflow/ 2 | -------------------------------------------------------------------------------- /learning/pytorch/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/.gitignore -------------------------------------------------------------------------------- /learning/pytorch/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/README.md -------------------------------------------------------------------------------- /learning/pytorch/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /learning/pytorch/data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /learning/pytorch/data/augmentation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/data/augmentation.py -------------------------------------------------------------------------------- /learning/pytorch/data/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/data/data.py -------------------------------------------------------------------------------- /learning/pytorch/data/data_cost.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/data/data_cost.py -------------------------------------------------------------------------------- /learning/pytorch/examples/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | a.out -------------------------------------------------------------------------------- /learning/pytorch/examples/example.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/examples/example.S -------------------------------------------------------------------------------- /learning/pytorch/examples/example.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/examples/example.asm -------------------------------------------------------------------------------- /learning/pytorch/examples/example.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/examples/example.c -------------------------------------------------------------------------------- /learning/pytorch/examples/iacaMarks.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/examples/iacaMarks.h -------------------------------------------------------------------------------- /learning/pytorch/experiments/.gitignore: -------------------------------------------------------------------------------- 1 | experiment_configs -------------------------------------------------------------------------------- /learning/pytorch/experiments/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /learning/pytorch/experiments/benchmarker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/experiments/benchmarker.py -------------------------------------------------------------------------------- /learning/pytorch/experiments/experiment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/experiments/experiment.py -------------------------------------------------------------------------------- /learning/pytorch/inputs/augmentations/.gitignore: -------------------------------------------------------------------------------- 1 | * -------------------------------------------------------------------------------- /learning/pytorch/inputs/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /learning/pytorch/inputs/embeddings/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /learning/pytorch/inputs/embeddings/code.emb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/inputs/embeddings/code.emb -------------------------------------------------------------------------------- /learning/pytorch/inputs/embeddings/code_delim.emb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/inputs/embeddings/code_delim.emb -------------------------------------------------------------------------------- /learning/pytorch/ithemal/ithemal_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/ithemal/ithemal_utils.py -------------------------------------------------------------------------------- /learning/pytorch/ithemal/mpconfig.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/ithemal/mpconfig.py -------------------------------------------------------------------------------- /learning/pytorch/ithemal/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/ithemal/predict.py -------------------------------------------------------------------------------- /learning/pytorch/ithemal/run_ithemal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/ithemal/run_ithemal.py -------------------------------------------------------------------------------- /learning/pytorch/ithemal/save_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/ithemal/save_data.py -------------------------------------------------------------------------------- /learning/pytorch/ithemal/training.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/ithemal/training.py -------------------------------------------------------------------------------- /learning/pytorch/ithemal/training_messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/ithemal/training_messages.py -------------------------------------------------------------------------------- /learning/pytorch/loss_reports/.gitignore: -------------------------------------------------------------------------------- 1 | data -------------------------------------------------------------------------------- /learning/pytorch/loss_reports/plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/loss_reports/plot.py -------------------------------------------------------------------------------- /learning/pytorch/loss_reports/sync_reports.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/loss_reports/sync_reports.sh -------------------------------------------------------------------------------- /learning/pytorch/models/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/models/README -------------------------------------------------------------------------------- /learning/pytorch/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /learning/pytorch/models/baselines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/models/baselines.py -------------------------------------------------------------------------------- /learning/pytorch/models/graph_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/models/graph_models.py -------------------------------------------------------------------------------- /learning/pytorch/models/losses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/models/losses.py -------------------------------------------------------------------------------- /learning/pytorch/models/model_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/models/model_utils.py -------------------------------------------------------------------------------- /learning/pytorch/models/rnn_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/models/rnn_models.py -------------------------------------------------------------------------------- /learning/pytorch/models/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/models/train.py -------------------------------------------------------------------------------- /learning/pytorch/notebooks/.gitignore: -------------------------------------------------------------------------------- 1 | .ipynb_checkpoints -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Aug.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Aug.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Edge Free Validation.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Edge Free Validation.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Execution Unit Augmentation.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Execution Unit Augmentation.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Figures.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Figures.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Gradients.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Gradients.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Graph Explorer.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Graph Explorer.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/IACA Test.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/IACA Test.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/ICML Rebuttal.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/ICML Rebuttal.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Neural Processor Simulator.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Neural Processor Simulator.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/New Timings.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/New Timings.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Perf.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Perf.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Permutation Data Exploration.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Permutation Data Exploration.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Permutation Learning.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Permutation Learning.ipynb -------------------------------------------------------------------------------- /learning/pytorch/notebooks/Train Test Data Exploration.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/notebooks/Train Test Data Exploration.ipynb -------------------------------------------------------------------------------- /learning/pytorch/results/figures/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /learning/pytorch/results/pickled_results/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /learning/pytorch/results/raw_results/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /learning/pytorch/stats/benchmarks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/stats/benchmarks.py -------------------------------------------------------------------------------- /learning/pytorch/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /learning/pytorch/utils/messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/learning/pytorch/utils/messages.py -------------------------------------------------------------------------------- /testing/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/testing/conftest.py -------------------------------------------------------------------------------- /testing/test_data/.gitignore: -------------------------------------------------------------------------------- 1 | db_config.cfg 2 | test_costmodel.sql -------------------------------------------------------------------------------- /testing/test_data/example_config.cfg: -------------------------------------------------------------------------------- 1 | [client] 2 | host=db 3 | port=3306 4 | user="root" 5 | password="ithemal" 6 | -------------------------------------------------------------------------------- /testing/test_data/static_test.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/testing/test_data/static_test.sql -------------------------------------------------------------------------------- /testing/test_database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/testing/test_database.py -------------------------------------------------------------------------------- /testing/test_dynamorio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/testing/test_dynamorio.py -------------------------------------------------------------------------------- /testing/test_ithemal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/testing/test_ithemal.py -------------------------------------------------------------------------------- /testing/test_stats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/testing/test_stats.py -------------------------------------------------------------------------------- /timing_tools/.gitignore: -------------------------------------------------------------------------------- 1 | stoke/ 2 | zsim/ 3 | iaca-bin -------------------------------------------------------------------------------- /timing_tools/agner/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !a64-out.sh 4 | !PMCTestB64.nasm -------------------------------------------------------------------------------- /timing_tools/agner/PMCTestB64.nasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/agner/PMCTestB64.nasm -------------------------------------------------------------------------------- /timing_tools/agner/a64-out.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/agner/a64-out.sh -------------------------------------------------------------------------------- /timing_tools/harness/.gitignore: -------------------------------------------------------------------------------- 1 | test 2 | bb.nasm 3 | *.o -------------------------------------------------------------------------------- /timing_tools/harness/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/harness/Makefile -------------------------------------------------------------------------------- /timing_tools/harness/a64-out.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/harness/a64-out.sh -------------------------------------------------------------------------------- /timing_tools/harness/rdpmc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/harness/rdpmc.c -------------------------------------------------------------------------------- /timing_tools/harness/rdpmc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/harness/rdpmc.h -------------------------------------------------------------------------------- /timing_tools/harness/run_test.nasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/harness/run_test.nasm -------------------------------------------------------------------------------- /timing_tools/harness/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/harness/test.c -------------------------------------------------------------------------------- /timing_tools/setup_tools.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/setup_tools.sh -------------------------------------------------------------------------------- /timing_tools/test_code_id.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/test_code_id.py -------------------------------------------------------------------------------- /timing_tools/test_sample.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/test_sample.sh -------------------------------------------------------------------------------- /timing_tools/timing/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/timing/.gitignore -------------------------------------------------------------------------------- /timing_tools/timing/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /timing_tools/timing/getiacatiming.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/timing/getiacatiming.py -------------------------------------------------------------------------------- /timing_tools/timing/getllvmtiming.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/timing/getllvmtiming.py -------------------------------------------------------------------------------- /timing_tools/timing/gettiming.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ithemal/Ithemal/HEAD/timing_tools/timing/gettiming.py --------------------------------------------------------------------------------