{"action":"closed","number":69,"pull_request":{"url":"https://api.github.com/repos/thesofproject/linux/pulls/69","id":206943810,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2OTQzODEw","html_url":"https://github.com/thesofproject/linux/pull/69","diff_url":"https://github.com/thesofproject/linux/pull/69.diff","patch_url":"https://github.com/thesofproject/linux/pull/69.patch","issue_url":"https://api.github.com/repos/thesofproject/linux/issues/69","number":69,"state":"closed","locked":false,"title":"add trace level setting support in host","user":{"login":"RanderWang","id":39945651,"node_id":"MDQ6VXNlcjM5OTQ1NjUx","avatar_url":"https://avatars2.githubusercontent.com/u/39945651?v=4","gravatar_id":"","url":"https://api.github.com/users/RanderWang","html_url":"https://github.com/RanderWang","followers_url":"https://api.github.com/users/RanderWang/followers","following_url":"https://api.github.com/users/RanderWang/following{/other_user}","gists_url":"https://api.github.com/users/RanderWang/gists{/gist_id}","starred_url":"https://api.github.com/users/RanderWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RanderWang/subscriptions","organizations_url":"https://api.github.com/users/RanderWang/orgs","repos_url":"https://api.github.com/users/RanderWang/repos","events_url":"https://api.github.com/users/RanderWang/events{/privacy}","received_events_url":"https://api.github.com/users/RanderWang/received_events","type":"User","site_admin":false},"body":"User could check current trace level status like the following:\r\ncat /sys/kernel/debug/sof/trace_level\r\n\r\nirq >> 0xff\r\nipc >> 0xff\r\npipe >> 0xff\r\nhost >> 0xff\r\ndai >> 0xff\r\ndma >> 0xff\r\nssp >> 0xff\r\ncomp >> 0xff\r\nwait >> 0xff\r\nlock >> 0xff\r\nmem >> 0xf\r\nmixer >> 0xff\r\nbuffer >> 0xff\r\nvolume >> 0xff\r\nswitch >> 0xff\r\nmux >> 0xff\r\nsrc >> 0xff\r\ntone >> 0xff\r\neq_fir >> 0xff\r\neq_iir >> 0xff\r\nsa >> 0xff\r\ndmic >> 0xff\r\nall >> 0xff\r\n\r\ngeneral setting:\r\nerror msg << 0xf notice msg << 0xf0 verbose msg << 0xf00\r\ncomponent setting:\r\nhost: playback << 0x10 capture << 0x20\r\n\r\nThis is for FW developer to control trace accurately. \r\nIn FW, the algorithm is like:\r\n\r\nif (flag & mask) {\r\n  do tracing\r\n}\r\n\r\nSet trace level like the following:\r\necho host 0 > /sys/kernel/debug/sof/trace_level\r\nwill disable the trace of host component of fw pipeline.\r\n\r\necho host 0xf0 > /sys/kernel/debug/sof/trace_level\r\nwill only enable normal trace of host\r\n\r\necho host 0xfff > /sys/kernel/debug/sof/trace_level\r\nwill enable all the trace message\r\n\r\necho all 0x0 > /sys/kernel/debug/sof/trace_level\r\nwill disable all the trace of each component\r\n\r\necho all 0xf0 > /sys/kernel/debug/sof/trace_level\r\nwill enable the normal trace of each component\r\n\r\nAt the end of message, a manual for setting is for you to enjoy it.\r\n\r\nIt includes trace levels of global trace types\r\n\r\nWhen level = 0xf, only error trace will be enabled.\r\nWhen level = 0xff, error and normal trace will be enabled.\r\nWhen level = 0xfff, all trace including verbose trace will be enabled.\r\n\r\nEach level is divided to 4 sub level and each sub level is controlled\r\n","created_at":"2018-08-08T09:23:03Z","updated_at":"2018-09-13T03:17:50Z","closed_at":"2018-09-13T03:17:50Z","merged_at":null,"merge_commit_sha":"59785a9169948d27ffca44e3e021da2233e04e50","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/thesofproject/linux/pulls/69/commits","review_comments_url":"https://api.github.com/repos/thesofproject/linux/pulls/69/comments","review_comment_url":"https://api.github.com/repos/thesofproject/linux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thesofproject/linux/issues/69/comments","statuses_url":"https://api.github.com/repos/thesofproject/linux/statuses/e85684fe84f01d591be44d515306103e83e3fe55","head":{"label":"RanderWang:trace_kernel","ref":"trace_kernel","sha":"e85684fe84f01d591be44d515306103e83e3fe55","user":{"login":"RanderWang","id":39945651,"node_id":"MDQ6VXNlcjM5OTQ1NjUx","avatar_url":"https://avatars2.githubusercontent.com/u/39945651?v=4","gravatar_id":"","url":"https://api.github.com/users/RanderWang","html_url":"https://github.com/RanderWang","followers_url":"https://api.github.com/users/RanderWang/followers","following_url":"https://api.github.com/users/RanderWang/following{/other_user}","gists_url":"https://api.github.com/users/RanderWang/gists{/gist_id}","starred_url":"https://api.github.com/users/RanderWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RanderWang/subscriptions","organizations_url":"https://api.github.com/users/RanderWang/orgs","repos_url":"https://api.github.com/users/RanderWang/repos","events_url":"https://api.github.com/users/RanderWang/events{/privacy}","received_events_url":"https://api.github.com/users/RanderWang/received_events","type":"User","site_admin":false},"repo":{"id":137188132,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcxODgxMzI=","name":"linux","full_name":"RanderWang/linux","owner":{"login":"RanderWang","id":39945651,"node_id":"MDQ6VXNlcjM5OTQ1NjUx","avatar_url":"https://avatars2.githubusercontent.com/u/39945651?v=4","gravatar_id":"","url":"https://api.github.com/users/RanderWang","html_url":"https://github.com/RanderWang","followers_url":"https://api.github.com/users/RanderWang/followers","following_url":"https://api.github.com/users/RanderWang/following{/other_user}","gists_url":"https://api.github.com/users/RanderWang/gists{/gist_id}","starred_url":"https://api.github.com/users/RanderWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RanderWang/subscriptions","organizations_url":"https://api.github.com/users/RanderWang/orgs","repos_url":"https://api.github.com/users/RanderWang/repos","events_url":"https://api.github.com/users/RanderWang/events{/privacy}","received_events_url":"https://api.github.com/users/RanderWang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RanderWang/linux","description":"Linux kernel source tree","fork":true,"url":"https://api.github.com/repos/RanderWang/linux","forks_url":"https://api.github.com/repos/RanderWang/linux/forks","keys_url":"https://api.github.com/repos/RanderWang/linux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RanderWang/linux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RanderWang/linux/teams","hooks_url":"https://api.github.com/repos/RanderWang/linux/hooks","issue_events_url":"https://api.github.com/repos/RanderWang/linux/issues/events{/number}","events_url":"https://api.github.com/repos/RanderWang/linux/events","assignees_url":"https://api.github.com/repos/RanderWang/linux/assignees{/user}","branches_url":"https://api.github.com/repos/RanderWang/linux/branches{/branch}","tags_url":"https://api.github.com/repos/RanderWang/linux/tags","blobs_url":"https://api.github.com/repos/RanderWang/linux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RanderWang/linux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RanderWang/linux/git/refs{/sha}","trees_url":"https://api.github.com/repos/RanderWang/linux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RanderWang/linux/statuses/{sha}","languages_url":"https://api.github.com/repos/RanderWang/linux/languages","stargazers_url":"https://api.github.com/repos/RanderWang/linux/stargazers","contributors_url":"https://api.github.com/repos/RanderWang/linux/contributors","subscribers_url":"https://api.github.com/repos/RanderWang/linux/subscribers","subscription_url":"https://api.github.com/repos/RanderWang/linux/subscription","commits_url":"https://api.github.com/repos/RanderWang/linux/commits{/sha}","git_commits_url":"https://api.github.com/repos/RanderWang/linux/git/commits{/sha}","comments_url":"https://api.github.com/repos/RanderWang/linux/comments{/number}","issue_comment_url":"https://api.github.com/repos/RanderWang/linux/issues/comments{/number}","contents_url":"https://api.github.com/repos/RanderWang/linux/contents/{+path}","compare_url":"https://api.github.com/repos/RanderWang/linux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RanderWang/linux/merges","archive_url":"https://api.github.com/repos/RanderWang/linux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RanderWang/linux/downloads","issues_url":"https://api.github.com/repos/RanderWang/linux/issues{/number}","pulls_url":"https://api.github.com/repos/RanderWang/linux/pulls{/number}","milestones_url":"https://api.github.com/repos/RanderWang/linux/milestones{/number}","notifications_url":"https://api.github.com/repos/RanderWang/linux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RanderWang/linux/labels{/name}","releases_url":"https://api.github.com/repos/RanderWang/linux/releases{/id}","deployments_url":"https://api.github.com/repos/RanderWang/linux/deployments","created_at":"2018-06-13T08:45:09Z","updated_at":"2018-06-28T03:09:20Z","pushed_at":"2018-08-20T08:20:50Z","git_url":"git://github.com/RanderWang/linux.git","ssh_url":"git@github.com:RanderWang/linux.git","clone_url":"https://github.com/RanderWang/linux.git","svn_url":"https://github.com/RanderWang/linux","homepage":"","size":2166074,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"topic/sof-dev"}},"base":{"label":"thesofproject:topic/sof-dev","ref":"topic/sof-dev","sha":"c46546120955e049cf1e454f4ba2c7292284aaf0","user":{"login":"thesofproject","id":39773507,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzczNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/39773507?v=4","gravatar_id":"","url":"https://api.github.com/users/thesofproject","html_url":"https://github.com/thesofproject","followers_url":"https://api.github.com/users/thesofproject/followers","following_url":"https://api.github.com/users/thesofproject/following{/other_user}","gists_url":"https://api.github.com/users/thesofproject/gists{/gist_id}","starred_url":"https://api.github.com/users/thesofproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesofproject/subscriptions","organizations_url":"https://api.github.com/users/thesofproject/orgs","repos_url":"https://api.github.com/users/thesofproject/repos","events_url":"https://api.github.com/users/thesofproject/events{/privacy}","received_events_url":"https://api.github.com/users/thesofproject/received_events","type":"Organization","site_admin":false},"repo":{"id":135611127,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU2MTExMjc=","name":"linux","full_name":"thesofproject/linux","owner":{"login":"thesofproject","id":39773507,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzczNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/39773507?v=4","gravatar_id":"","url":"https://api.github.com/users/thesofproject","html_url":"https://github.com/thesofproject","followers_url":"https://api.github.com/users/thesofproject/followers","following_url":"https://api.github.com/users/thesofproject/following{/other_user}","gists_url":"https://api.github.com/users/thesofproject/gists{/gist_id}","starred_url":"https://api.github.com/users/thesofproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesofproject/subscriptions","organizations_url":"https://api.github.com/users/thesofproject/orgs","repos_url":"https://api.github.com/users/thesofproject/repos","events_url":"https://api.github.com/users/thesofproject/events{/privacy}","received_events_url":"https://api.github.com/users/thesofproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thesofproject/linux","description":"Linux kernel source tree","fork":true,"url":"https://api.github.com/repos/thesofproject/linux","forks_url":"https://api.github.com/repos/thesofproject/linux/forks","keys_url":"https://api.github.com/repos/thesofproject/linux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thesofproject/linux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thesofproject/linux/teams","hooks_url":"https://api.github.com/repos/thesofproject/linux/hooks","issue_events_url":"https://api.github.com/repos/thesofproject/linux/issues/events{/number}","events_url":"https://api.github.com/repos/thesofproject/linux/events","assignees_url":"https://api.github.com/repos/thesofproject/linux/assignees{/user}","branches_url":"https://api.github.com/repos/thesofproject/linux/branches{/branch}","tags_url":"https://api.github.com/repos/thesofproject/linux/tags","blobs_url":"https://api.github.com/repos/thesofproject/linux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thesofproject/linux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thesofproject/linux/git/refs{/sha}","trees_url":"https://api.github.com/repos/thesofproject/linux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thesofproject/linux/statuses/{sha}","languages_url":"https://api.github.com/repos/thesofproject/linux/languages","stargazers_url":"https://api.github.com/repos/thesofproject/linux/stargazers","contributors_url":"https://api.github.com/repos/thesofproject/linux/contributors","subscribers_url":"https://api.github.com/repos/thesofproject/linux/subscribers","subscription_url":"https://api.github.com/repos/thesofproject/linux/subscription","commits_url":"https://api.github.com/repos/thesofproject/linux/commits{/sha}","git_commits_url":"https://api.github.com/repos/thesofproject/linux/git/commits{/sha}","comments_url":"https://api.github.com/repos/thesofproject/linux/comments{/number}","issue_comment_url":"https://api.github.com/repos/thesofproject/linux/issues/comments{/number}","contents_url":"https://api.github.com/repos/thesofproject/linux/contents/{+path}","compare_url":"https://api.github.com/repos/thesofproject/linux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thesofproject/linux/merges","archive_url":"https://api.github.com/repos/thesofproject/linux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thesofproject/linux/downloads","issues_url":"https://api.github.com/repos/thesofproject/linux/issues{/number}","pulls_url":"https://api.github.com/repos/thesofproject/linux/pulls{/number}","milestones_url":"https://api.github.com/repos/thesofproject/linux/milestones{/number}","notifications_url":"https://api.github.com/repos/thesofproject/linux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thesofproject/linux/labels{/name}","releases_url":"https://api.github.com/repos/thesofproject/linux/releases{/id}","deployments_url":"https://api.github.com/repos/thesofproject/linux/deployments","created_at":"2018-05-31T16:47:45Z","updated_at":"2018-09-10T13:47:51Z","pushed_at":"2018-09-13T01:26:46Z","git_url":"git://github.com/thesofproject/linux.git","ssh_url":"git@github.com:thesofproject/linux.git","clone_url":"https://github.com/thesofproject/linux.git","svn_url":"https://github.com/thesofproject/linux","homepage":"","size":2275786,"stargazers_count":2,"watchers_count":2,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":18,"open_issues":39,"watchers":2,"default_branch":"topic/sof-dev"}},"_links":{"self":{"href":"https://api.github.com/repos/thesofproject/linux/pulls/69"},"html":{"href":"https://github.com/thesofproject/linux/pull/69"},"issue":{"href":"https://api.github.com/repos/thesofproject/linux/issues/69"},"comments":{"href":"https://api.github.com/repos/thesofproject/linux/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/thesofproject/linux/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/thesofproject/linux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thesofproject/linux/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/thesofproject/linux/statuses/e85684fe84f01d591be44d515306103e83e3fe55"}},"author_association":"NONE","merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":3,"review_comments":0,"maintainer_can_modify":false,"commits":229,"additions":17940,"deletions":282,"changed_files":102}}
{"actor":{"display_login":"RanderWang"}}