{"action":"created","comment":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/232893080","pull_request_review_id":174188977,"id":232893080,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjg5MzA4MA==","diff_hunk":"@@ -0,0 +1,168 @@\n+/****************************************************************************\n+ *\n+ * Copyright 2018 Samsung Electronics All Rights Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\n+ * either express or implied. See the License for the specific\n+ * language governing permissions and limitations under the License.\n+ *\n+ ****************************************************************************/\n+/****************************************************************************\n+ * Included Files\n+ ****************************************************************************/\n+\n+#include <tinyara/config.h>\n+#include <stdio.h>\n+#include <stdlib.h>\n+#include <string.h>\n+#include <sys/time.h>\n+\n+/****************************************************************************\n+ * Definitions\n+ ****************************************************************************/\n+#define TEST_FILE_PATH \"/mnt/\"\n+#define TEST_FILE_NAME \"test\"\n+#define USAGE\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\\n+\t\"\\n Filesystem R/W Test\\n\"\t\t\t\t\t\t\t\t\t\t\t\t\\\n+\t\"\\n usage: fs_rw_test [Size] [Iteration] [Operation] [Log]\\n\"\t\t\\\n+\t\"\\n [Size] : Data size (byte)\\n\"\t\t\t\t\t\t\t\t\t\t\\\n+\t\" [Iteration] : Number of repetitions\\n\"\t\t\t\t\t\t\t\t\\\n+\t\" [Operation] : 1.Read/Write / 2.Read / 3.Write\\n\"\t\t\t\t\t\t\\\n+\t\" [Log] : Log Print Option [y/n]\\n\"\t\t\t\t\t\t\t\t\t\t\\\n+\t\"\\n ex) fs_rw_test 128 30 1 y\\n\"\n+\n+/****************************************************************************\n+ * fs_rw_test\n+ ****************************************************************************/\n+\n+static inline long get_time(void)\n+{\n+\tstruct timeval tv;\n+\tgettimeofday(&tv, NULL);\n+\treturn (tv.tv_sec * 1000 + tv.tv_usec / 1000);\n+}\n+\n+static void rw_testlog(char *printopt, const char *format, ...)\n+{\n+\tva_list ap;\n+\tif (printopt[0] == 'y' || printopt[0] == 'Y') {\n+\t\tva_start(ap, format);\n+\t\tvfprintf(stdout, format, ap);\n+\t\tva_end(ap);\n+\t}\n+}\n+\n+static FILE *t_fopen(const char *path, const char *mode, char *printopt)\n+{\n+\tFILE *fp;\n+\tlong t, dt;\n+\tt = get_time();\t\n+\tfp = fopen(path, mode);\n+\tif (fp == NULL) {\n+\t\tprintf(\"fopen Failed\\n\");\n+\t\treturn NULL;\n+\t}\n+\tdt = get_time() - t;\n+\trw_testlog(printopt, \"fopen(%c):%dms, \", mode[0], dt);\n+\treturn fp;\t\n+}\n+\n+static void t_fwrite(const void *data, size_t size, size_t n_items, FILE *stream, char *printopt)\n+{\n+\tlong t, dt;\n+\tt = get_time();\n+\tfwrite(data, size, n_items, stream);\n+\tdt = get_time() - t;\n+\trw_testlog(printopt, \"fwrite:%dms, \", dt);\n+}\n+\n+static void t_fclose(FILE *stream, char *printopt)\n+{\n+\tlong t, dt;\n+\tt = get_time();\n+\tfclose(stream);\n+\tdt = get_time() - t;\n+\trw_testlog(printopt, \"fclose:%dms\\n\", dt);\n+}\n+\n+static void t_fread(void *ptr, size_t size, size_t n_items, FILE *stream, char *printopt)\n+{\n+\tlong t, dt;","path":"apps/examples/fs_helper/fs_rw_test.c","position":98,"original_position":98,"commit_id":"0eb43842ced5dce64e94613e3ea2cc72db5291d1","original_commit_id":"bed2824ad9666a67cd01c3ab256e49b75aedc0a9","user":{"login":"sunghan-chang","id":25810970,"node_id":"MDQ6VXNlcjI1ODEwOTcw","avatar_url":"https://avatars1.githubusercontent.com/u/25810970?v=4","gravatar_id":"","url":"https://api.github.com/users/sunghan-chang","html_url":"https://github.com/sunghan-chang","followers_url":"https://api.github.com/users/sunghan-chang/followers","following_url":"https://api.github.com/users/sunghan-chang/following{/other_user}","gists_url":"https://api.github.com/users/sunghan-chang/gists{/gist_id}","starred_url":"https://api.github.com/users/sunghan-chang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunghan-chang/subscriptions","organizations_url":"https://api.github.com/users/sunghan-chang/orgs","repos_url":"https://api.github.com/users/sunghan-chang/repos","events_url":"https://api.github.com/users/sunghan-chang/events{/privacy}","received_events_url":"https://api.github.com/users/sunghan-chang/received_events","type":"User","site_admin":false},"body":"check again for all of these","created_at":"2018-11-13T04:18:51Z","updated_at":"2018-11-13T04:31:42Z","html_url":"https://github.com/Samsung/TizenRT/pull/2433#discussion_r232893080","pull_request_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/2433","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/232893080"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/2433#discussion_r232893080"},"pull_request":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/2433"}},"in_reply_to_id":232158554},"pull_request":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/2433","id":228964204,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4OTY0MjA0","html_url":"https://github.com/Samsung/TizenRT/pull/2433","diff_url":"https://github.com/Samsung/TizenRT/pull/2433.diff","patch_url":"https://github.com/Samsung/TizenRT/pull/2433.patch","issue_url":"https://api.github.com/repos/Samsung/TizenRT/issues/2433","number":2433,"state":"open","locked":false,"title":"examples/fs_helper: Add fs r/w test in fs_helper","user":{"login":"KimDongEon","id":8756932,"node_id":"MDQ6VXNlcjg3NTY5MzI=","avatar_url":"https://avatars2.githubusercontent.com/u/8756932?v=4","gravatar_id":"","url":"https://api.github.com/users/KimDongEon","html_url":"https://github.com/KimDongEon","followers_url":"https://api.github.com/users/KimDongEon/followers","following_url":"https://api.github.com/users/KimDongEon/following{/other_user}","gists_url":"https://api.github.com/users/KimDongEon/gists{/gist_id}","starred_url":"https://api.github.com/users/KimDongEon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KimDongEon/subscriptions","organizations_url":"https://api.github.com/users/KimDongEon/orgs","repos_url":"https://api.github.com/users/KimDongEon/repos","events_url":"https://api.github.com/users/KimDongEon/events{/privacy}","received_events_url":"https://api.github.com/users/KimDongEon/received_events","type":"User","site_admin":false},"body":"This test is intended to test the R/W performance of the filesystem","created_at":"2018-11-07T09:26:19Z","updated_at":"2018-11-13T04:31:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee52ecb27dfe6e1c73b64450dc3b648077043d70","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/2433/commits","review_comments_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/2433/comments","review_comment_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/issues/2433/comments","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/0eb43842ced5dce64e94613e3ea2cc72db5291d1","head":{"label":"KimDongEon:fs_rw_test","ref":"fs_rw_test","sha":"0eb43842ced5dce64e94613e3ea2cc72db5291d1","user":{"login":"KimDongEon","id":8756932,"node_id":"MDQ6VXNlcjg3NTY5MzI=","avatar_url":"https://avatars2.githubusercontent.com/u/8756932?v=4","gravatar_id":"","url":"https://api.github.com/users/KimDongEon","html_url":"https://github.com/KimDongEon","followers_url":"https://api.github.com/users/KimDongEon/followers","following_url":"https://api.github.com/users/KimDongEon/following{/other_user}","gists_url":"https://api.github.com/users/KimDongEon/gists{/gist_id}","starred_url":"https://api.github.com/users/KimDongEon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KimDongEon/subscriptions","organizations_url":"https://api.github.com/users/KimDongEon/orgs","repos_url":"https://api.github.com/users/KimDongEon/repos","events_url":"https://api.github.com/users/KimDongEon/events{/privacy}","received_events_url":"https://api.github.com/users/KimDongEon/received_events","type":"User","site_admin":false},"repo":{"id":149015762,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkwMTU3NjI=","name":"TizenRT","full_name":"KimDongEon/TizenRT","private":false,"owner":{"login":"KimDongEon","id":8756932,"node_id":"MDQ6VXNlcjg3NTY5MzI=","avatar_url":"https://avatars2.githubusercontent.com/u/8756932?v=4","gravatar_id":"","url":"https://api.github.com/users/KimDongEon","html_url":"https://github.com/KimDongEon","followers_url":"https://api.github.com/users/KimDongEon/followers","following_url":"https://api.github.com/users/KimDongEon/following{/other_user}","gists_url":"https://api.github.com/users/KimDongEon/gists{/gist_id}","starred_url":"https://api.github.com/users/KimDongEon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KimDongEon/subscriptions","organizations_url":"https://api.github.com/users/KimDongEon/orgs","repos_url":"https://api.github.com/users/KimDongEon/repos","events_url":"https://api.github.com/users/KimDongEon/events{/privacy}","received_events_url":"https://api.github.com/users/KimDongEon/received_events","type":"User","site_admin":false},"html_url":"https://github.com/KimDongEon/TizenRT","description":"TizenRT is a lightweight RTOS-based platform to support low-end IoT devices","fork":true,"url":"https://api.github.com/repos/KimDongEon/TizenRT","forks_url":"https://api.github.com/repos/KimDongEon/TizenRT/forks","keys_url":"https://api.github.com/repos/KimDongEon/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KimDongEon/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KimDongEon/TizenRT/teams","hooks_url":"https://api.github.com/repos/KimDongEon/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/KimDongEon/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/KimDongEon/TizenRT/events","assignees_url":"https://api.github.com/repos/KimDongEon/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/KimDongEon/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/KimDongEon/TizenRT/tags","blobs_url":"https://api.github.com/repos/KimDongEon/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KimDongEon/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KimDongEon/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/KimDongEon/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KimDongEon/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/KimDongEon/TizenRT/languages","stargazers_url":"https://api.github.com/repos/KimDongEon/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/KimDongEon/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/KimDongEon/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/KimDongEon/TizenRT/subscription","commits_url":"https://api.github.com/repos/KimDongEon/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/KimDongEon/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/KimDongEon/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/KimDongEon/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/KimDongEon/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/KimDongEon/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KimDongEon/TizenRT/merges","archive_url":"https://api.github.com/repos/KimDongEon/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KimDongEon/TizenRT/downloads","issues_url":"https://api.github.com/repos/KimDongEon/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/KimDongEon/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/KimDongEon/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/KimDongEon/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KimDongEon/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/KimDongEon/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/KimDongEon/TizenRT/deployments","created_at":"2018-09-16T16:49:36Z","updated_at":"2018-09-16T16:49:52Z","pushed_at":"2018-11-09T09:32:48Z","git_url":"git://github.com/KimDongEon/TizenRT.git","ssh_url":"git@github.com:KimDongEon/TizenRT.git","clone_url":"https://github.com/KimDongEon/TizenRT.git","svn_url":"https://github.com/KimDongEon/TizenRT","homepage":"","size":106708,"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":"Samsung:master","ref":"master","sha":"944ee91455c07308f1ecdddd5751e302d83a33a7","user":{"login":"Samsung","id":6210390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMTAzOTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"repo":{"id":82517252,"node_id":"MDEwOlJlcG9zaXRvcnk4MjUxNzI1Mg==","name":"TizenRT","full_name":"Samsung/TizenRT","private":false,"owner":{"login":"Samsung","id":6210390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMTAzOTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Samsung/TizenRT","description":"TizenRT is a lightweight RTOS-based platform to support low-end IoT devices","fork":false,"url":"https://api.github.com/repos/Samsung/TizenRT","forks_url":"https://api.github.com/repos/Samsung/TizenRT/forks","keys_url":"https://api.github.com/repos/Samsung/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samsung/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samsung/TizenRT/teams","hooks_url":"https://api.github.com/repos/Samsung/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/Samsung/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/Samsung/TizenRT/events","assignees_url":"https://api.github.com/repos/Samsung/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/Samsung/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/Samsung/TizenRT/tags","blobs_url":"https://api.github.com/repos/Samsung/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samsung/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samsung/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samsung/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/Samsung/TizenRT/languages","stargazers_url":"https://api.github.com/repos/Samsung/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/Samsung/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/Samsung/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/Samsung/TizenRT/subscription","commits_url":"https://api.github.com/repos/Samsung/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samsung/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samsung/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samsung/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/Samsung/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samsung/TizenRT/merges","archive_url":"https://api.github.com/repos/Samsung/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samsung/TizenRT/downloads","issues_url":"https://api.github.com/repos/Samsung/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/Samsung/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/Samsung/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/Samsung/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samsung/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/Samsung/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/Samsung/TizenRT/deployments","created_at":"2017-02-20T04:38:30Z","updated_at":"2018-11-13T03:40:25Z","pushed_at":"2018-11-13T03:40:16Z","git_url":"git://github.com/Samsung/TizenRT.git","ssh_url":"git@github.com:Samsung/TizenRT.git","clone_url":"https://github.com/Samsung/TizenRT.git","svn_url":"https://github.com/Samsung/TizenRT","homepage":"","size":106847,"stargazers_count":207,"watchers_count":207,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":293,"mirror_url":null,"archived":false,"open_issues_count":66,"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":293,"open_issues":66,"watchers":207,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/2433"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/2433"},"issue":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/2433"},"comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/2433/comments"},"review_comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/2433/comments"},"review_comment":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/2433/commits"},"statuses":{"href":"https://api.github.com/repos/Samsung/TizenRT/statuses/0eb43842ced5dce64e94613e3ea2cc72db5291d1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sunghan-chang"}}