{"id":21481553,"url":"https://github.com/afa7789/dynamorio_instruction_count","last_synced_at":"2025-03-17T09:14:16.537Z","repository":{"id":107080881,"uuid":"440685892","full_name":"afa7789/dynamorio_instruction_count","owner":"afa7789","description":"Instruction tool to be used with DynamoRIO that counts the number of machine instructions in a application.","archived":false,"fork":false,"pushed_at":"2021-12-31T23:21:25.000Z","size":240,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T18:49:29.326Z","etag":null,"topics":["c","dbi","dynamorio"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afa7789.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-22T00:20:10.000Z","updated_at":"2022-05-17T17:47:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"28f5de60-1c59-464c-9cb3-30a2426c3b4a","html_url":"https://github.com/afa7789/dynamorio_instruction_count","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afa7789%2Fdynamorio_instruction_count","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afa7789%2Fdynamorio_instruction_count/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afa7789%2Fdynamorio_instruction_count/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afa7789%2Fdynamorio_instruction_count/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afa7789","download_url":"https://codeload.github.com/afa7789/dynamorio_instruction_count/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244006398,"owners_count":20382443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","dbi","dynamorio"],"created_at":"2024-11-23T12:26:13.556Z","updated_at":"2025-03-17T09:14:16.508Z","avatar_url":"https://github.com/afa7789.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![!Theme Image](resources/icounter_header.png)\n# Dynamo Tool\n## Block counter\nSimple instrumentation for instruction counting made on c++ to be used with [dynamorio](https://dynamorio.org/).\n\n## Disclaimer\n\nThe instructions tool was made with the tutoring and help of [Andrei Rimsa](http://rimsa.com.br/page/). Andrei is my professor and thesis tutor from CEFET-MG.\n\n## How to Install\n\n### Install Dynamorio.\n\n```bash\ngit clone https://github.com/DynamoRIO/dynamorio.git\ncd dynamorio\nDYNAMORIO_HOME=$(pwd);\n```\n\n### This tool package\n\n```bash\n# go into the correct folder\ncd api/samples\n# clone to the here\ngit clone https://github.com/afa7789/dynamorio_instruction_count.git dynamo_tool\n# extract it\ncp ./{dyn.patch,bbl_count.cpp} .\n# Add line to CMakeLists\npatch \u003c dyn.patch\n```\n## Running the tool\n\n### Make first\n\n#### Make Dynamorio\n\nmake sure you have set DYNAMORIO_HOME env var at the root of the dynamorio folder.\n\n```bash\ncd $DYNAMORIO_HOME\nmkdir build \u0026\u0026 cd build\ncmake  -DBUILD_DOCS=no ..\nmake -j\n```\n\n#### make tool\n\n```bash\ncd build\nmake bbl_count\n```\n### Running it\nCommands to run this code\n#### bbl_count.c\n\n```bash\n$DYNAMORIO_HOME/bin64/drrun -c bin/libbbl_count.so -- ls \n# how to use to get the output to a file.\n$DYNAMORIO_HOME/bin64/drrun -c bin/libbbl_count.so arquivo_test.txt -- ls \n# Example on how to run it with a full path\n# By doing like this you can from anywhere in your computer\n$DYNAMORIO_HOME/build/bin64/drrun -c /home/afa/Documents/code/TCC/dynamorio/dynamorio/build/api/samples/../bin/libbbl_count.so -- ls \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafa7789%2Fdynamorio_instruction_count","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafa7789%2Fdynamorio_instruction_count","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafa7789%2Fdynamorio_instruction_count/lists"}