{"action":"created","comment":{"url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/comments/73470982","id":73470982,"diff_hunk":"@@ -0,0 +1,233 @@\n+#include <core/sched/scheduler_skeleton.h>\n+#include <core/sched/sched-config.h>\n+#include <config.h>\n+#include <arch/armv7.h>\n+#include <stdlib.h>\n+#include <debug.h>\n+#include <stdbool.h>\n+\n+#include <lib/list.h>\n+#include <core/timer.h>\n+\n+// #define SCHED_RM_REPORT\n+\n+struct entry_data_rm {\n+    struct sched_entry *e;\n+\n+    uint32_t period;\n+    uint32_t budget;\n+\n+    uint32_t period_cntdn;\n+    uint32_t budget_cntdn;\n+\n+#ifdef SCHED_RM_REPORT\n+    /* for analysis */\n+    uint32_t foreground_ticks;\n+    uint32_t preempted;\n+#endif\n+\n+    struct list_head head;\n+};\n+\n+struct sched_data_rm {\n+    struct scheduler *s;\n+\n+    uint64_t tick_interval_us;\n+    uint64_t tick_count;\n+#ifdef SCHED_RM_REPORT\n+    uint64_t tick_1kcount;\n+#endif\n+\n+    struct entry_data_rm *current;\n+    struct list_head runqueue;\n+};\n+\n+/* Scheduler related data initialization */\n+void sched_rm_init(struct scheduler *s)\n+{\n+    struct sched_data_rm *sd = (struct sched_data_rm *) malloc(sizeof(struct sched_data_rm));\n+\n+    /* Check scheduler config */\n+    /* Allocate memory for system-wide data */\n+    /* Initialize data */\n+    sd->current = NULL;\n+    sd->tick_count = 0;\n+#ifdef SCHED_RM_REPORT\n+    sd->tick_1kcount = 1000;\n+#endif\n+    sd->tick_interval_us = schedconf_rm_tick_interval_ms[s->pcpuid];","path":"core/sched/rt-rm.c","position":58,"original_position":58,"commit_id":"b6c4ab7dafde9ecc5e06df6f84085ad8a484b4c5","original_commit_id":"b6c4ab7dafde9ecc5e06df6f84085ad8a484b4c5","user":{"login":"Wonseok","id":1691430,"avatar_url":"https://avatars.githubusercontent.com/u/1691430?v=3","gravatar_id":"","url":"https://api.github.com/users/Wonseok","html_url":"https://github.com/Wonseok","followers_url":"https://api.github.com/users/Wonseok/followers","following_url":"https://api.github.com/users/Wonseok/following{/other_user}","gists_url":"https://api.github.com/users/Wonseok/gists{/gist_id}","starred_url":"https://api.github.com/users/Wonseok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wonseok/subscriptions","organizations_url":"https://api.github.com/users/Wonseok/orgs","repos_url":"https://api.github.com/users/Wonseok/repos","events_url":"https://api.github.com/users/Wonseok/events{/privacy}","received_events_url":"https://api.github.com/users/Wonseok/received_events","type":"User","site_admin":false},"body":"unit of left variable looks like us and unit of right variable looks like ms, in this case, it may causes time unit converting problem. it works fine?","created_at":"2016-08-04T07:00:32Z","updated_at":"2016-08-04T07:00:32Z","html_url":"https://github.com/kesl-internal/khypervisor-v2/pull/94#discussion_r73470982","pull_request_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/comments/73470982"},"html":{"href":"https://github.com/kesl-internal/khypervisor-v2/pull/94#discussion_r73470982"},"pull_request":{"href":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/94","id":79679901,"html_url":"https://github.com/kesl-internal/khypervisor-v2/pull/94","diff_url":"https://github.com/kesl-internal/khypervisor-v2/pull/94.diff","patch_url":"https://github.com/kesl-internal/khypervisor-v2/pull/94.patch","issue_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/issues/94","number":94,"state":"open","locked":false,"title":"vTimer, Sched-RM to master","user":{"login":"igxactly","id":941947,"avatar_url":"https://avatars.githubusercontent.com/u/941947?v=3","gravatar_id":"","url":"https://api.github.com/users/igxactly","html_url":"https://github.com/igxactly","followers_url":"https://api.github.com/users/igxactly/followers","following_url":"https://api.github.com/users/igxactly/following{/other_user}","gists_url":"https://api.github.com/users/igxactly/gists{/gist_id}","starred_url":"https://api.github.com/users/igxactly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igxactly/subscriptions","organizations_url":"https://api.github.com/users/igxactly/orgs","repos_url":"https://api.github.com/users/igxactly/repos","events_url":"https://api.github.com/users/igxactly/events{/privacy}","received_events_url":"https://api.github.com/users/igxactly/received_events","type":"User","site_admin":false},"body":"- Rate Monotonic Scheduler implementation\r\n- vTimer (generic timer emulation with periodic mode) early version\r\n","created_at":"2016-08-02T05:58:31Z","updated_at":"2016-08-04T07:00:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89ead161b80ad87ec4d5e88b3112b25267a64cf8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/94/commits","review_comments_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/94/comments","review_comment_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/issues/94/comments","statuses_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/statuses/b6c4ab7dafde9ecc5e06df6f84085ad8a484b4c5","head":{"label":"igxactly:merging/vtimer-schedrm_to_master","ref":"merging/vtimer-schedrm_to_master","sha":"b6c4ab7dafde9ecc5e06df6f84085ad8a484b4c5","user":{"login":"igxactly","id":941947,"avatar_url":"https://avatars.githubusercontent.com/u/941947?v=3","gravatar_id":"","url":"https://api.github.com/users/igxactly","html_url":"https://github.com/igxactly","followers_url":"https://api.github.com/users/igxactly/followers","following_url":"https://api.github.com/users/igxactly/following{/other_user}","gists_url":"https://api.github.com/users/igxactly/gists{/gist_id}","starred_url":"https://api.github.com/users/igxactly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igxactly/subscriptions","organizations_url":"https://api.github.com/users/igxactly/orgs","repos_url":"https://api.github.com/users/igxactly/repos","events_url":"https://api.github.com/users/igxactly/events{/privacy}","received_events_url":"https://api.github.com/users/igxactly/received_events","type":"User","site_admin":false},"repo":{"id":46558453,"name":"khypervisor-v2","full_name":"igxactly/khypervisor-v2","owner":{"login":"igxactly","id":941947,"avatar_url":"https://avatars.githubusercontent.com/u/941947?v=3","gravatar_id":"","url":"https://api.github.com/users/igxactly","html_url":"https://github.com/igxactly","followers_url":"https://api.github.com/users/igxactly/followers","following_url":"https://api.github.com/users/igxactly/following{/other_user}","gists_url":"https://api.github.com/users/igxactly/gists{/gist_id}","starred_url":"https://api.github.com/users/igxactly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igxactly/subscriptions","organizations_url":"https://api.github.com/users/igxactly/orgs","repos_url":"https://api.github.com/users/igxactly/repos","events_url":"https://api.github.com/users/igxactly/events{/privacy}","received_events_url":"https://api.github.com/users/igxactly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/igxactly/khypervisor-v2","description":"khypervisor-v2 development ","fork":true,"url":"https://api.github.com/repos/igxactly/khypervisor-v2","forks_url":"https://api.github.com/repos/igxactly/khypervisor-v2/forks","keys_url":"https://api.github.com/repos/igxactly/khypervisor-v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/igxactly/khypervisor-v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/igxactly/khypervisor-v2/teams","hooks_url":"https://api.github.com/repos/igxactly/khypervisor-v2/hooks","issue_events_url":"https://api.github.com/repos/igxactly/khypervisor-v2/issues/events{/number}","events_url":"https://api.github.com/repos/igxactly/khypervisor-v2/events","assignees_url":"https://api.github.com/repos/igxactly/khypervisor-v2/assignees{/user}","branches_url":"https://api.github.com/repos/igxactly/khypervisor-v2/branches{/branch}","tags_url":"https://api.github.com/repos/igxactly/khypervisor-v2/tags","blobs_url":"https://api.github.com/repos/igxactly/khypervisor-v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/igxactly/khypervisor-v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/igxactly/khypervisor-v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/igxactly/khypervisor-v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/igxactly/khypervisor-v2/statuses/{sha}","languages_url":"https://api.github.com/repos/igxactly/khypervisor-v2/languages","stargazers_url":"https://api.github.com/repos/igxactly/khypervisor-v2/stargazers","contributors_url":"https://api.github.com/repos/igxactly/khypervisor-v2/contributors","subscribers_url":"https://api.github.com/repos/igxactly/khypervisor-v2/subscribers","subscription_url":"https://api.github.com/repos/igxactly/khypervisor-v2/subscription","commits_url":"https://api.github.com/repos/igxactly/khypervisor-v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/igxactly/khypervisor-v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/igxactly/khypervisor-v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/igxactly/khypervisor-v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/igxactly/khypervisor-v2/contents/{+path}","compare_url":"https://api.github.com/repos/igxactly/khypervisor-v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/igxactly/khypervisor-v2/merges","archive_url":"https://api.github.com/repos/igxactly/khypervisor-v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/igxactly/khypervisor-v2/downloads","issues_url":"https://api.github.com/repos/igxactly/khypervisor-v2/issues{/number}","pulls_url":"https://api.github.com/repos/igxactly/khypervisor-v2/pulls{/number}","milestones_url":"https://api.github.com/repos/igxactly/khypervisor-v2/milestones{/number}","notifications_url":"https://api.github.com/repos/igxactly/khypervisor-v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/igxactly/khypervisor-v2/labels{/name}","releases_url":"https://api.github.com/repos/igxactly/khypervisor-v2/releases{/id}","deployments_url":"https://api.github.com/repos/igxactly/khypervisor-v2/deployments","created_at":"2015-11-20T11:33:43Z","updated_at":"2016-01-11T13:53:21Z","pushed_at":"2016-07-28T10:24:43Z","git_url":"git://github.com/igxactly/khypervisor-v2.git","ssh_url":"git@github.com:igxactly/khypervisor-v2.git","clone_url":"https://github.com/igxactly/khypervisor-v2.git","svn_url":"https://github.com/igxactly/khypervisor-v2","homepage":null,"size":1604,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kesl-internal:master","ref":"master","sha":"84e00e7cf6646a9be5041feb32769e05e8971534","user":{"login":"kesl-internal","id":15628570,"avatar_url":"https://avatars.githubusercontent.com/u/15628570?v=3","gravatar_id":"","url":"https://api.github.com/users/kesl-internal","html_url":"https://github.com/kesl-internal","followers_url":"https://api.github.com/users/kesl-internal/followers","following_url":"https://api.github.com/users/kesl-internal/following{/other_user}","gists_url":"https://api.github.com/users/kesl-internal/gists{/gist_id}","starred_url":"https://api.github.com/users/kesl-internal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kesl-internal/subscriptions","organizations_url":"https://api.github.com/users/kesl-internal/orgs","repos_url":"https://api.github.com/users/kesl-internal/repos","events_url":"https://api.github.com/users/kesl-internal/events{/privacy}","received_events_url":"https://api.github.com/users/kesl-internal/received_events","type":"Organization","site_admin":false},"repo":{"id":45458939,"name":"khypervisor-v2","full_name":"kesl-internal/khypervisor-v2","owner":{"login":"kesl-internal","id":15628570,"avatar_url":"https://avatars.githubusercontent.com/u/15628570?v=3","gravatar_id":"","url":"https://api.github.com/users/kesl-internal","html_url":"https://github.com/kesl-internal","followers_url":"https://api.github.com/users/kesl-internal/followers","following_url":"https://api.github.com/users/kesl-internal/following{/other_user}","gists_url":"https://api.github.com/users/kesl-internal/gists{/gist_id}","starred_url":"https://api.github.com/users/kesl-internal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kesl-internal/subscriptions","organizations_url":"https://api.github.com/users/kesl-internal/orgs","repos_url":"https://api.github.com/users/kesl-internal/repos","events_url":"https://api.github.com/users/kesl-internal/events{/privacy}","received_events_url":"https://api.github.com/users/kesl-internal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kesl-internal/khypervisor-v2","description":"khypervisor-v2 development ","fork":false,"url":"https://api.github.com/repos/kesl-internal/khypervisor-v2","forks_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/forks","keys_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/teams","hooks_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/hooks","issue_events_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/issues/events{/number}","events_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/events","assignees_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/assignees{/user}","branches_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/branches{/branch}","tags_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/tags","blobs_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/statuses/{sha}","languages_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/languages","stargazers_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/stargazers","contributors_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/contributors","subscribers_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/subscribers","subscription_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/subscription","commits_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/contents/{+path}","compare_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/merges","archive_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/downloads","issues_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/issues{/number}","pulls_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls{/number}","milestones_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/milestones{/number}","notifications_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/labels{/name}","releases_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/releases{/id}","deployments_url":"https://api.github.com/repos/kesl-internal/khypervisor-v2/deployments","created_at":"2015-11-03T10:24:58Z","updated_at":"2016-07-29T13:50:56Z","pushed_at":"2016-08-02T05:58:31Z","git_url":"git://github.com/kesl-internal/khypervisor-v2.git","ssh_url":"git@github.com:kesl-internal/khypervisor-v2.git","clone_url":"https://github.com/kesl-internal/khypervisor-v2.git","svn_url":"https://github.com/kesl-internal/khypervisor-v2","homepage":null,"size":1548,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":17,"forks":6,"open_issues":17,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/94"},"html":{"href":"https://github.com/kesl-internal/khypervisor-v2/pull/94"},"issue":{"href":"https://api.github.com/repos/kesl-internal/khypervisor-v2/issues/94"},"comments":{"href":"https://api.github.com/repos/kesl-internal/khypervisor-v2/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kesl-internal/khypervisor-v2/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/kesl-internal/khypervisor-v2/statuses/b6c4ab7dafde9ecc5e06df6f84085ad8a484b4c5"}}}}
{"actor":{"display_login":"Wonseok"}}