{"action":"created","comment":{"url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/comments/35744789","id":35744789,"diff_hunk":"@@ -119,6 +156,27 @@ void flush_events(void) {\n     buffer_index = 0;\n }\n \n+//! \\brief function to store provanence data elements into sdram\n+void record_provanence_data(){\n+    // Get the address this core's DTCM data starts at from SRAM\n+    address_t address = data_specification_get_data_address();\n+    // locate the provanence data region base address\n+    address_t provanence_region_address =\n+        data_specification_get_region(CONFIGURATION_REGION, address);\n+    uint32_t provanence_data[NUMBER_OF_PROVANENCE_DATA_ELEMENTS];\n+    // write provanence data into a array for memcpy\n+    provanence_data[NUMBER_OF_LOSS_PACKETS_WITHOUT_PAYLOAD] =\n+        number_of_over_flows_none_payload;\n+    provanence_data[NUMBER_OF_LOSS_PACKETS_WITH_PAYLOAD] =\n+        number_of_over_flows_payload;\n+    // Copy provanence data into sdram region\n+    memcpy(provanence_region_address, provanence_data,\n+           SIZE_OF_PROVANENCE_ELEMENTS_IN_BYTES);\n+    log_info(\"The provanence data consisting of %d lost packets without \"\n+             \"payload and %d lost packets with payload.\",\n+             number_of_over_flows_none_payload, number_of_over_flows_payload);\n+}\n+","path":"c_common/models/live_packet_gather/live_packet_gather.c","position":75,"original_position":75,"commit_id":"23e14213caeff7197e6cfe1e3d1589294a53d6ec","original_commit_id":"23e14213caeff7197e6cfe1e3d1589294a53d6ec","user":{"login":"neworderofjamie","id":6793242,"avatar_url":"https://avatars.githubusercontent.com/u/6793242?v=3","gravatar_id":"","url":"https://api.github.com/users/neworderofjamie","html_url":"https://github.com/neworderofjamie","followers_url":"https://api.github.com/users/neworderofjamie/followers","following_url":"https://api.github.com/users/neworderofjamie/following{/other_user}","gists_url":"https://api.github.com/users/neworderofjamie/gists{/gist_id}","starred_url":"https://api.github.com/users/neworderofjamie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neworderofjamie/subscriptions","organizations_url":"https://api.github.com/users/neworderofjamie/orgs","repos_url":"https://api.github.com/users/neworderofjamie/repos","events_url":"https://api.github.com/users/neworderofjamie/events{/privacy}","received_events_url":"https://api.github.com/users/neworderofjamie/received_events","type":"User","site_admin":false},"body":"As I said above, this seems overly circuitous! Either using a struct here or just copying straight into provanence_region_address would be be better.","created_at":"2015-07-29T10:08:49Z","updated_at":"2015-07-29T10:08:49Z","html_url":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon/pull/14#discussion_r35744789","pull_request_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/comments/35744789"},"html":{"href":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon/pull/14#discussion_r35744789"},"pull_request":{"href":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/14","id":41105756,"html_url":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon/pull/14","diff_url":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon/pull/14.diff","patch_url":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon/pull/14.patch","issue_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/issues/14","number":14,"state":"open","locked":false,"title":"added some provanence data gathering from the live packet gatherer an…","user":{"login":"alan-stokes","id":7520968,"avatar_url":"https://avatars.githubusercontent.com/u/7520968?v=3","gravatar_id":"","url":"https://api.github.com/users/alan-stokes","html_url":"https://github.com/alan-stokes","followers_url":"https://api.github.com/users/alan-stokes/followers","following_url":"https://api.github.com/users/alan-stokes/following{/other_user}","gists_url":"https://api.github.com/users/alan-stokes/gists{/gist_id}","starred_url":"https://api.github.com/users/alan-stokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alan-stokes/subscriptions","organizations_url":"https://api.github.com/users/alan-stokes/orgs","repos_url":"https://api.github.com/users/alan-stokes/repos","events_url":"https://api.github.com/users/alan-stokes/events{/privacy}","received_events_url":"https://api.github.com/users/alan-stokes/received_events","type":"User","site_admin":false},"body":"…d cleaned up the code slightly via the use of enums and adding a provanence data region to the live packet gather.","created_at":"2015-07-29T09:59:50Z","updated_at":"2015-07-29T10:08:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab6f632b9a7a820b97fe711357cee80b25bf309a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/14/commits","review_comments_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/14/comments","review_comment_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/issues/14/comments","statuses_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/statuses/23e14213caeff7197e6cfe1e3d1589294a53d6ec","head":{"label":"SpiNNakerManchester:new_prov_live_packet_gatherer","ref":"new_prov_live_packet_gatherer","sha":"23e14213caeff7197e6cfe1e3d1589294a53d6ec","user":{"login":"SpiNNakerManchester","id":7584947,"avatar_url":"https://avatars.githubusercontent.com/u/7584947?v=3","gravatar_id":"","url":"https://api.github.com/users/SpiNNakerManchester","html_url":"https://github.com/SpiNNakerManchester","followers_url":"https://api.github.com/users/SpiNNakerManchester/followers","following_url":"https://api.github.com/users/SpiNNakerManchester/following{/other_user}","gists_url":"https://api.github.com/users/SpiNNakerManchester/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiNNakerManchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiNNakerManchester/subscriptions","organizations_url":"https://api.github.com/users/SpiNNakerManchester/orgs","repos_url":"https://api.github.com/users/SpiNNakerManchester/repos","events_url":"https://api.github.com/users/SpiNNakerManchester/events{/privacy}","received_events_url":"https://api.github.com/users/SpiNNakerManchester/received_events","type":"Organization","site_admin":false},"repo":{"id":26166376,"name":"SpiNNFrontEndCommon","full_name":"SpiNNakerManchester/SpiNNFrontEndCommon","owner":{"login":"SpiNNakerManchester","id":7584947,"avatar_url":"https://avatars.githubusercontent.com/u/7584947?v=3","gravatar_id":"","url":"https://api.github.com/users/SpiNNakerManchester","html_url":"https://github.com/SpiNNakerManchester","followers_url":"https://api.github.com/users/SpiNNakerManchester/followers","following_url":"https://api.github.com/users/SpiNNakerManchester/following{/other_user}","gists_url":"https://api.github.com/users/SpiNNakerManchester/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiNNakerManchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiNNakerManchester/subscriptions","organizations_url":"https://api.github.com/users/SpiNNakerManchester/orgs","repos_url":"https://api.github.com/users/SpiNNakerManchester/repos","events_url":"https://api.github.com/users/SpiNNakerManchester/events{/privacy}","received_events_url":"https://api.github.com/users/SpiNNakerManchester/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon","description":"common python support for front ends","fork":false,"url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon","forks_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/forks","keys_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/teams","hooks_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/hooks","issue_events_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/issues/events{/number}","events_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/events","assignees_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/assignees{/user}","branches_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/branches{/branch}","tags_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/tags","blobs_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/statuses/{sha}","languages_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/languages","stargazers_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/stargazers","contributors_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/contributors","subscribers_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/subscribers","subscription_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/subscription","commits_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/contents/{+path}","compare_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/merges","archive_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/downloads","issues_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/issues{/number}","pulls_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls{/number}","milestones_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/milestones{/number}","notifications_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/labels{/name}","releases_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/releases{/id}","created_at":"2014-11-04T11:40:07Z","updated_at":"2015-04-27T15:17:54Z","pushed_at":"2015-07-29T09:59:50Z","git_url":"git://github.com/SpiNNakerManchester/SpiNNFrontEndCommon.git","ssh_url":"git@github.com:SpiNNakerManchester/SpiNNFrontEndCommon.git","clone_url":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon.git","svn_url":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon","homepage":null,"size":820,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"SpiNNakerManchester:master","ref":"master","sha":"2ea778837039b0d663ec8d3490b96c0ff3291528","user":{"login":"SpiNNakerManchester","id":7584947,"avatar_url":"https://avatars.githubusercontent.com/u/7584947?v=3","gravatar_id":"","url":"https://api.github.com/users/SpiNNakerManchester","html_url":"https://github.com/SpiNNakerManchester","followers_url":"https://api.github.com/users/SpiNNakerManchester/followers","following_url":"https://api.github.com/users/SpiNNakerManchester/following{/other_user}","gists_url":"https://api.github.com/users/SpiNNakerManchester/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiNNakerManchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiNNakerManchester/subscriptions","organizations_url":"https://api.github.com/users/SpiNNakerManchester/orgs","repos_url":"https://api.github.com/users/SpiNNakerManchester/repos","events_url":"https://api.github.com/users/SpiNNakerManchester/events{/privacy}","received_events_url":"https://api.github.com/users/SpiNNakerManchester/received_events","type":"Organization","site_admin":false},"repo":{"id":26166376,"name":"SpiNNFrontEndCommon","full_name":"SpiNNakerManchester/SpiNNFrontEndCommon","owner":{"login":"SpiNNakerManchester","id":7584947,"avatar_url":"https://avatars.githubusercontent.com/u/7584947?v=3","gravatar_id":"","url":"https://api.github.com/users/SpiNNakerManchester","html_url":"https://github.com/SpiNNakerManchester","followers_url":"https://api.github.com/users/SpiNNakerManchester/followers","following_url":"https://api.github.com/users/SpiNNakerManchester/following{/other_user}","gists_url":"https://api.github.com/users/SpiNNakerManchester/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiNNakerManchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiNNakerManchester/subscriptions","organizations_url":"https://api.github.com/users/SpiNNakerManchester/orgs","repos_url":"https://api.github.com/users/SpiNNakerManchester/repos","events_url":"https://api.github.com/users/SpiNNakerManchester/events{/privacy}","received_events_url":"https://api.github.com/users/SpiNNakerManchester/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon","description":"common python support for front ends","fork":false,"url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon","forks_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/forks","keys_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/teams","hooks_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/hooks","issue_events_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/issues/events{/number}","events_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/events","assignees_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/assignees{/user}","branches_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/branches{/branch}","tags_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/tags","blobs_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/statuses/{sha}","languages_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/languages","stargazers_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/stargazers","contributors_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/contributors","subscribers_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/subscribers","subscription_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/subscription","commits_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/contents/{+path}","compare_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/merges","archive_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/downloads","issues_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/issues{/number}","pulls_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls{/number}","milestones_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/milestones{/number}","notifications_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/labels{/name}","releases_url":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/releases{/id}","created_at":"2014-11-04T11:40:07Z","updated_at":"2015-04-27T15:17:54Z","pushed_at":"2015-07-29T09:59:50Z","git_url":"git://github.com/SpiNNakerManchester/SpiNNFrontEndCommon.git","ssh_url":"git@github.com:SpiNNakerManchester/SpiNNFrontEndCommon.git","clone_url":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon.git","svn_url":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon","homepage":null,"size":820,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/14"},"html":{"href":"https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon/pull/14"},"issue":{"href":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/issues/14"},"comments":{"href":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/SpiNNakerManchester/SpiNNFrontEndCommon/statuses/23e14213caeff7197e6cfe1e3d1589294a53d6ec"}}}}