{"action":"created","issue":{"url":"https://api.github.com/repos/cznic/cc/issues/74","repository_url":"https://api.github.com/repos/cznic/cc","labels_url":"https://api.github.com/repos/cznic/cc/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/cznic/cc/issues/74/comments","events_url":"https://api.github.com/repos/cznic/cc/issues/74/events","html_url":"https://github.com/cznic/cc/issues/74","id":195024345,"number":74,"title":"bit field has invalid type (have unsigned long long)","user":{"login":"pwaller","id":438648,"avatar_url":"https://avatars.githubusercontent.com/u/438648?v=3","gravatar_id":"","url":"https://api.github.com/users/pwaller","html_url":"https://github.com/pwaller","followers_url":"https://api.github.com/users/pwaller/followers","following_url":"https://api.github.com/users/pwaller/following{/other_user}","gists_url":"https://api.github.com/users/pwaller/gists{/gist_id}","starred_url":"https://api.github.com/users/pwaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwaller/subscriptions","organizations_url":"https://api.github.com/users/pwaller/orgs","repos_url":"https://api.github.com/users/pwaller/repos","events_url":"https://api.github.com/users/pwaller/events{/privacy}","received_events_url":"https://api.github.com/users/pwaller/received_events","type":"User","site_admin":false},"labels":[{"id":335525636,"url":"https://api.github.com/repos/cznic/cc/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"pwaller","id":438648,"avatar_url":"https://avatars.githubusercontent.com/u/438648?v=3","gravatar_id":"","url":"https://api.github.com/users/pwaller","html_url":"https://github.com/pwaller","followers_url":"https://api.github.com/users/pwaller/followers","following_url":"https://api.github.com/users/pwaller/following{/other_user}","gists_url":"https://api.github.com/users/pwaller/gists{/gist_id}","starred_url":"https://api.github.com/users/pwaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwaller/subscriptions","organizations_url":"https://api.github.com/users/pwaller/orgs","repos_url":"https://api.github.com/users/pwaller/repos","events_url":"https://api.github.com/users/pwaller/events{/privacy}","received_events_url":"https://api.github.com/users/pwaller/received_events","type":"User","site_admin":false},"assignees":[{"login":"pwaller","id":438648,"avatar_url":"https://avatars.githubusercontent.com/u/438648?v=3","gravatar_id":"","url":"https://api.github.com/users/pwaller","html_url":"https://github.com/pwaller","followers_url":"https://api.github.com/users/pwaller/followers","following_url":"https://api.github.com/users/pwaller/following{/other_user}","gists_url":"https://api.github.com/users/pwaller/gists{/gist_id}","starred_url":"https://api.github.com/users/pwaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwaller/subscriptions","organizations_url":"https://api.github.com/users/pwaller/orgs","repos_url":"https://api.github.com/users/pwaller/repos","events_url":"https://api.github.com/users/pwaller/events{/privacy}","received_events_url":"https://api.github.com/users/pwaller/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-12-12T16:46:28Z","updated_at":"2016-12-12T17:05:28Z","closed_at":null,"body":"```\r\n/usr/include/linux/perf_event.h:309:23: bit field has invalid type (have unsigned long long)\r\n```\r\n\r\n<details>\r\n\r\n```c\r\nstruct perf_event_attr {\r\n\tunsigned long long\t\t\tdisabled       :  1, /* off by default        */\r\n\t\t\t\tinherit\t       :  1, /* children inherit it   */\r\n\t\t\t\tpinned\t       :  1, /* must always be on PMU */\r\n\t\t\t\texclusive      :  1, /* only group on PMU     */\r\n\t\t\t\texclude_user   :  1, /* don't count user      */\r\n\t\t\t\texclude_kernel :  1, /* ditto kernel          */\r\n\t\t\t\texclude_hv     :  1, /* ditto hypervisor      */\r\n\t\t\t\texclude_idle   :  1, /* don't count when idle */\r\n\t\t\t\tmmap           :  1, /* include mmap data     */\r\n\t\t\t\tcomm\t       :  1, /* include comm data     */\r\n\t\t\t\tfreq           :  1, /* use freq, not period  */\r\n\t\t\t\tinherit_stat   :  1, /* per task counts       */\r\n\t\t\t\tenable_on_exec :  1, /* next exec enables     */\r\n\t\t\t\ttask           :  1, /* trace fork/exit       */\r\n\t\t\t\twatermark      :  1, /* wakeup_watermark      */\r\n\t\t\t\t/*\r\n\t\t\t\t * precise_ip:\r\n\t\t\t\t *\r\n\t\t\t\t *  0 - SAMPLE_IP can have arbitrary skid\r\n\t\t\t\t *  1 - SAMPLE_IP must have constant skid\r\n\t\t\t\t *  2 - SAMPLE_IP requested to have 0 skid\r\n\t\t\t\t *  3 - SAMPLE_IP must have 0 skid\r\n\t\t\t\t *\r\n\t\t\t\t *  See also PERF_RECORD_MISC_EXACT_IP\r\n\t\t\t\t */\r\n\t\t\t\tprecise_ip     :  2, /* skid constraint       */\r\n\t\t\t\tmmap_data      :  1, /* non-exec mmap data    */\r\n\t\t\t\tsample_id_all  :  1, /* sample_type all events */\r\n\r\n\t\t\t\texclude_host   :  1, /* don't count in host   */\r\n\t\t\t\texclude_guest  :  1, /* don't count in guest  */\r\n\r\n\t\t\t\texclude_callchain_kernel : 1, /* exclude kernel callchains */\r\n\t\t\t\texclude_callchain_user   : 1, /* exclude user callchains */\r\n\t\t\t\tmmap2          :  1, /* include mmap with inode data     */\r\n\t\t\t\tcomm_exec      :  1, /* flag comm events that are due to an exec */\r\n\t\t\t\tuse_clockid    :  1, /* use @clockid for time fields */\r\n\t\t\t\tcontext_switch :  1, /* context switch data */\r\n\t\t\t\twrite_backward :  1, /* Write ring buffer from end to beginning */\r\n\t\t\t\t__reserved_1   : 36;\r\n}\r\n```\r\n</details>\r\n\r\n\r\n\r\nFix incoming."},"comment":{"url":"https://api.github.com/repos/cznic/cc/issues/comments/266488202","html_url":"https://github.com/cznic/cc/issues/74#issuecomment-266488202","issue_url":"https://api.github.com/repos/cznic/cc/issues/74","id":266488202,"user":{"login":"cznic","id":729580,"avatar_url":"https://avatars.githubusercontent.com/u/729580?v=3","gravatar_id":"","url":"https://api.github.com/users/cznic","html_url":"https://github.com/cznic","followers_url":"https://api.github.com/users/cznic/followers","following_url":"https://api.github.com/users/cznic/following{/other_user}","gists_url":"https://api.github.com/users/cznic/gists{/gist_id}","starred_url":"https://api.github.com/users/cznic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cznic/subscriptions","organizations_url":"https://api.github.com/users/cznic/orgs","repos_url":"https://api.github.com/users/cznic/repos","events_url":"https://api.github.com/users/cznic/events{/privacy}","received_events_url":"https://api.github.com/users/cznic/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T17:05:28Z","updated_at":"2016-12-12T17:05:28Z","body":"I would like to be conservative by default, but I see no problem with enabling more/non-standard features on demand. Suggested approach:\r\n\r\n- Extend [tweaks](https://github.com/cznic/cc/blob/533ca70c55a2970885094ae5e68eb27588f7ffc7/cc.go#L136) with a new `bool` field enabling it. \r\n- Add a new [`Opt`](https://github.com/cznic/cc/blob/533ca70c55a2970885094ae5e68eb27588f7ffc7/cc.go#L274) to the API.\r\n- Add a case to this [`switch`](https://github.com/cznic/cc/blob/533ca70c55a2970885094ae5e68eb27588f7ffc7/ast2.go#L2136) that enables the wider types when the respective tweak flag is set."}}
{"actor":{"display_login":"cznic"}}