{"action":"created","comment":{"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/comments/229445351","pull_request_review_id":169948470,"id":229445351,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTQ0NTM1MQ==","diff_hunk":"@@ -0,0 +1,178 @@\n+/*\n+ * Copyright (c) 2018 Nordic Semiconductor ASA\n+ *\n+ * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic","path":"subsys/debug/tracing/cpu_stats.c","position":4,"original_position":4,"commit_id":"7c1040dde92b38f10e442e8ac31ee2b53ee7233e","original_commit_id":"7c1040dde92b38f10e442e8ac31ee2b53ee7233e","user":{"login":"aescolar","id":32480799,"node_id":"MDQ6VXNlcjMyNDgwNzk5","avatar_url":"https://avatars0.githubusercontent.com/u/32480799?v=4","gravatar_id":"","url":"https://api.github.com/users/aescolar","html_url":"https://github.com/aescolar","followers_url":"https://api.github.com/users/aescolar/followers","following_url":"https://api.github.com/users/aescolar/following{/other_user}","gists_url":"https://api.github.com/users/aescolar/gists{/gist_id}","starred_url":"https://api.github.com/users/aescolar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aescolar/subscriptions","organizations_url":"https://api.github.com/users/aescolar/orgs","repos_url":"https://api.github.com/users/aescolar/repos","events_url":"https://api.github.com/users/aescolar/events{/privacy}","received_events_url":"https://api.github.com/users/aescolar/received_events","type":"User","site_admin":false},"body":"Zephyr follows Apache 2 not BSD with extras.","created_at":"2018-10-30T19:03:42Z","updated_at":"2018-10-30T19:05:40Z","html_url":"https://github.com/zephyrproject-rtos/zephyr/pull/10940#discussion_r229445351","pull_request_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/10940","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/comments/229445351"},"html":{"href":"https://github.com/zephyrproject-rtos/zephyr/pull/10940#discussion_r229445351"},"pull_request":{"href":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/10940"}}},"pull_request":{"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/10940","id":226988088,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2OTg4MDg4","html_url":"https://github.com/zephyrproject-rtos/zephyr/pull/10940","diff_url":"https://github.com/zephyrproject-rtos/zephyr/pull/10940.diff","patch_url":"https://github.com/zephyrproject-rtos/zephyr/pull/10940.patch","issue_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/10940","number":10940,"state":"open","locked":false,"title":"debug: tracing: Add CPU stats module.","user":{"login":"MarekPieta","id":29888381,"node_id":"MDQ6VXNlcjI5ODg4Mzgx","avatar_url":"https://avatars3.githubusercontent.com/u/29888381?v=4","gravatar_id":"","url":"https://api.github.com/users/MarekPieta","html_url":"https://github.com/MarekPieta","followers_url":"https://api.github.com/users/MarekPieta/followers","following_url":"https://api.github.com/users/MarekPieta/following{/other_user}","gists_url":"https://api.github.com/users/MarekPieta/gists{/gist_id}","starred_url":"https://api.github.com/users/MarekPieta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarekPieta/subscriptions","organizations_url":"https://api.github.com/users/MarekPieta/orgs","repos_url":"https://api.github.com/users/MarekPieta/repos","events_url":"https://api.github.com/users/MarekPieta/events{/privacy}","received_events_url":"https://api.github.com/users/MarekPieta/received_events","type":"User","site_admin":false},"body":"Change adds CPU stats module for tracing hooks (compares time spend in idle thread, non idle threads and scheduler). Currently feature is limited to hooks: sys_trace_thread_switched_in(void), sys_trace_thread_switched_out(void) (hooks for interrupt tracing are not working properly).","created_at":"2018-10-30T16:15:23Z","updated_at":"2018-10-30T19:05:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c79337a4983c4fea75f7f6036bbb553472de804a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"pizi-nordic","id":18549729,"node_id":"MDQ6VXNlcjE4NTQ5NzI5","avatar_url":"https://avatars1.githubusercontent.com/u/18549729?v=4","gravatar_id":"","url":"https://api.github.com/users/pizi-nordic","html_url":"https://github.com/pizi-nordic","followers_url":"https://api.github.com/users/pizi-nordic/followers","following_url":"https://api.github.com/users/pizi-nordic/following{/other_user}","gists_url":"https://api.github.com/users/pizi-nordic/gists{/gist_id}","starred_url":"https://api.github.com/users/pizi-nordic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pizi-nordic/subscriptions","organizations_url":"https://api.github.com/users/pizi-nordic/orgs","repos_url":"https://api.github.com/users/pizi-nordic/repos","events_url":"https://api.github.com/users/pizi-nordic/events{/privacy}","received_events_url":"https://api.github.com/users/pizi-nordic/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/10940/commits","review_comments_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/10940/comments","review_comment_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/10940/comments","statuses_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/statuses/7c1040dde92b38f10e442e8ac31ee2b53ee7233e","head":{"label":"MarekPieta:cpu_stats","ref":"cpu_stats","sha":"7c1040dde92b38f10e442e8ac31ee2b53ee7233e","user":{"login":"MarekPieta","id":29888381,"node_id":"MDQ6VXNlcjI5ODg4Mzgx","avatar_url":"https://avatars3.githubusercontent.com/u/29888381?v=4","gravatar_id":"","url":"https://api.github.com/users/MarekPieta","html_url":"https://github.com/MarekPieta","followers_url":"https://api.github.com/users/MarekPieta/followers","following_url":"https://api.github.com/users/MarekPieta/following{/other_user}","gists_url":"https://api.github.com/users/MarekPieta/gists{/gist_id}","starred_url":"https://api.github.com/users/MarekPieta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarekPieta/subscriptions","organizations_url":"https://api.github.com/users/MarekPieta/orgs","repos_url":"https://api.github.com/users/MarekPieta/repos","events_url":"https://api.github.com/users/MarekPieta/events{/privacy}","received_events_url":"https://api.github.com/users/MarekPieta/received_events","type":"User","site_admin":false},"repo":{"id":152594669,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI1OTQ2Njk=","name":"zephyr","full_name":"MarekPieta/zephyr","private":false,"owner":{"login":"MarekPieta","id":29888381,"node_id":"MDQ6VXNlcjI5ODg4Mzgx","avatar_url":"https://avatars3.githubusercontent.com/u/29888381?v=4","gravatar_id":"","url":"https://api.github.com/users/MarekPieta","html_url":"https://github.com/MarekPieta","followers_url":"https://api.github.com/users/MarekPieta/followers","following_url":"https://api.github.com/users/MarekPieta/following{/other_user}","gists_url":"https://api.github.com/users/MarekPieta/gists{/gist_id}","starred_url":"https://api.github.com/users/MarekPieta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarekPieta/subscriptions","organizations_url":"https://api.github.com/users/MarekPieta/orgs","repos_url":"https://api.github.com/users/MarekPieta/repos","events_url":"https://api.github.com/users/MarekPieta/events{/privacy}","received_events_url":"https://api.github.com/users/MarekPieta/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MarekPieta/zephyr","description":"Primary GIT Repository for the Zephyr Project","fork":true,"url":"https://api.github.com/repos/MarekPieta/zephyr","forks_url":"https://api.github.com/repos/MarekPieta/zephyr/forks","keys_url":"https://api.github.com/repos/MarekPieta/zephyr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarekPieta/zephyr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarekPieta/zephyr/teams","hooks_url":"https://api.github.com/repos/MarekPieta/zephyr/hooks","issue_events_url":"https://api.github.com/repos/MarekPieta/zephyr/issues/events{/number}","events_url":"https://api.github.com/repos/MarekPieta/zephyr/events","assignees_url":"https://api.github.com/repos/MarekPieta/zephyr/assignees{/user}","branches_url":"https://api.github.com/repos/MarekPieta/zephyr/branches{/branch}","tags_url":"https://api.github.com/repos/MarekPieta/zephyr/tags","blobs_url":"https://api.github.com/repos/MarekPieta/zephyr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarekPieta/zephyr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarekPieta/zephyr/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarekPieta/zephyr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarekPieta/zephyr/statuses/{sha}","languages_url":"https://api.github.com/repos/MarekPieta/zephyr/languages","stargazers_url":"https://api.github.com/repos/MarekPieta/zephyr/stargazers","contributors_url":"https://api.github.com/repos/MarekPieta/zephyr/contributors","subscribers_url":"https://api.github.com/repos/MarekPieta/zephyr/subscribers","subscription_url":"https://api.github.com/repos/MarekPieta/zephyr/subscription","commits_url":"https://api.github.com/repos/MarekPieta/zephyr/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarekPieta/zephyr/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarekPieta/zephyr/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarekPieta/zephyr/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarekPieta/zephyr/contents/{+path}","compare_url":"https://api.github.com/repos/MarekPieta/zephyr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarekPieta/zephyr/merges","archive_url":"https://api.github.com/repos/MarekPieta/zephyr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarekPieta/zephyr/downloads","issues_url":"https://api.github.com/repos/MarekPieta/zephyr/issues{/number}","pulls_url":"https://api.github.com/repos/MarekPieta/zephyr/pulls{/number}","milestones_url":"https://api.github.com/repos/MarekPieta/zephyr/milestones{/number}","notifications_url":"https://api.github.com/repos/MarekPieta/zephyr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarekPieta/zephyr/labels{/name}","releases_url":"https://api.github.com/repos/MarekPieta/zephyr/releases{/id}","deployments_url":"https://api.github.com/repos/MarekPieta/zephyr/deployments","created_at":"2018-10-11T13:16:18Z","updated_at":"2018-10-11T13:17:08Z","pushed_at":"2018-10-30T16:27:44Z","git_url":"git://github.com/MarekPieta/zephyr.git","ssh_url":"git@github.com:MarekPieta/zephyr.git","clone_url":"https://github.com/MarekPieta/zephyr.git","svn_url":"https://github.com/MarekPieta/zephyr","homepage":"https://docs.zephyrproject.org","size":155846,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zephyrproject-rtos:master","ref":"master","sha":"9f7e25ad227be17b1f48addc60b0f3d8b7618f04","user":{"login":"zephyrproject-rtos","id":19595895,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NTk1ODk1","avatar_url":"https://avatars2.githubusercontent.com/u/19595895?v=4","gravatar_id":"","url":"https://api.github.com/users/zephyrproject-rtos","html_url":"https://github.com/zephyrproject-rtos","followers_url":"https://api.github.com/users/zephyrproject-rtos/followers","following_url":"https://api.github.com/users/zephyrproject-rtos/following{/other_user}","gists_url":"https://api.github.com/users/zephyrproject-rtos/gists{/gist_id}","starred_url":"https://api.github.com/users/zephyrproject-rtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zephyrproject-rtos/subscriptions","organizations_url":"https://api.github.com/users/zephyrproject-rtos/orgs","repos_url":"https://api.github.com/users/zephyrproject-rtos/repos","events_url":"https://api.github.com/users/zephyrproject-rtos/events{/privacy}","received_events_url":"https://api.github.com/users/zephyrproject-rtos/received_events","type":"Organization","site_admin":false},"repo":{"id":59771425,"node_id":"MDEwOlJlcG9zaXRvcnk1OTc3MTQyNQ==","name":"zephyr","full_name":"zephyrproject-rtos/zephyr","private":false,"owner":{"login":"zephyrproject-rtos","id":19595895,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NTk1ODk1","avatar_url":"https://avatars2.githubusercontent.com/u/19595895?v=4","gravatar_id":"","url":"https://api.github.com/users/zephyrproject-rtos","html_url":"https://github.com/zephyrproject-rtos","followers_url":"https://api.github.com/users/zephyrproject-rtos/followers","following_url":"https://api.github.com/users/zephyrproject-rtos/following{/other_user}","gists_url":"https://api.github.com/users/zephyrproject-rtos/gists{/gist_id}","starred_url":"https://api.github.com/users/zephyrproject-rtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zephyrproject-rtos/subscriptions","organizations_url":"https://api.github.com/users/zephyrproject-rtos/orgs","repos_url":"https://api.github.com/users/zephyrproject-rtos/repos","events_url":"https://api.github.com/users/zephyrproject-rtos/events{/privacy}","received_events_url":"https://api.github.com/users/zephyrproject-rtos/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/zephyrproject-rtos/zephyr","description":"Primary GIT Repository for the Zephyr Project","fork":false,"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr","forks_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/forks","keys_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/teams","hooks_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/hooks","issue_events_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/events{/number}","events_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/events","assignees_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/assignees{/user}","branches_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/branches{/branch}","tags_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/tags","blobs_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/git/refs{/sha}","trees_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/statuses/{sha}","languages_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/languages","stargazers_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/stargazers","contributors_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/contributors","subscribers_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/subscribers","subscription_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/subscription","commits_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/commits{/sha}","git_commits_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/git/commits{/sha}","comments_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/comments{/number}","issue_comment_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/comments{/number}","contents_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/contents/{+path}","compare_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/merges","archive_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/downloads","issues_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues{/number}","pulls_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls{/number}","milestones_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/milestones{/number}","notifications_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/labels{/name}","releases_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/releases{/id}","deployments_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/deployments","created_at":"2016-05-26T17:54:19Z","updated_at":"2018-10-30T17:28:31Z","pushed_at":"2018-10-30T19:00:20Z","git_url":"git://github.com/zephyrproject-rtos/zephyr.git","ssh_url":"git@github.com:zephyrproject-rtos/zephyr.git","clone_url":"https://github.com/zephyrproject-rtos/zephyr.git","svn_url":"https://github.com/zephyrproject-rtos/zephyr","homepage":"https://docs.zephyrproject.org","size":156006,"stargazers_count":1315,"watchers_count":1315,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":857,"mirror_url":null,"archived":false,"open_issues_count":1121,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":857,"open_issues":1121,"watchers":1315,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/10940"},"html":{"href":"https://github.com/zephyrproject-rtos/zephyr/pull/10940"},"issue":{"href":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/10940"},"comments":{"href":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/10940/comments"},"review_comments":{"href":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/10940/comments"},"review_comment":{"href":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zephyrproject-rtos/zephyr/pulls/10940/commits"},"statuses":{"href":"https://api.github.com/repos/zephyrproject-rtos/zephyr/statuses/7c1040dde92b38f10e442e8ac31ee2b53ee7233e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"aescolar"}}