<p>Patch set 3:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442">View Change</a></p><p>10 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c">File src/vty/sched_vty.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c@89">Patch Set #3, Line 89:</a> <code style="font-family:monospace,monospace">static bool proc_tid_exists(pid_t tid)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">one-line comment would be useful</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c@103">Patch Set #3, Line 103:</a> <code style="font-family:monospace,monospace">     {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">inconsistent syntax. Other clauese have opening braces at end of line, this one doesn't.  And if is a function below</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c@117">Patch Set #3, Line 117:</a> <code style="font-family:monospace,monospace">static bool proc_name_exists(const char *name, pid_t *res_pid)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">one-line summary</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c@121">Patch Set #3, Line 121:</a> <code style="font-family:monospace,monospace">       char path[100];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">why not PATH_MAX?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c@138">Patch Set #3, Line 138:</a> <code style="font-family:monospace,monospace">           if(entry->d_name[0] == '.')</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">if...</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c@147">Patch Set #3, Line 147:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Last char contain a '\n', get rid of it */<br>                       buf[rc-1] = '\0';<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">don't blindly assume what you read has a certain structure; test for it!</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c@149">Patch Set #3, Line 149:</a> <code style="font-family:monospace,monospace">                  buf</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">buffer overflow: rc may be sizeof(buf) and you're writing beyond the end of the buffer here.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c@165">Patch Set #3, Line 165:</a> <code style="font-family:monospace,monospace">static enum sched_vty_thread_id procname2pid(pid_t *res_pid, const char *str, bool applynow)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">one-line summary</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c@218">Patch Set #3, Line 218:</a> <code style="font-family:monospace,monospace">int my_sched_setaffinity(enum sched_vty_thread_id tid_type, pid_t pid, unsigned long mask)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">one lne summary</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/19442/3/src/vty/sched_vty.c@230">Patch Set #3, Line 230:</a> <code style="font-family:monospace,monospace"> cpuset = CPU_ALLOC(64);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">blind assumption of 64 cores</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/19442">change 19442</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/19442"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If76a4bd2cc7b3c7adf5d84790a944d78be70e10a </div>
<div style="display:none"> Gerrit-Change-Number: 19442 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 29 Jul 2020 20:00:56 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>