<p>pespin <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/18226">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bts: Drop specific functions to increase counters<br><br>It's super annoying seeing lots of functions being called everywhere<br>only to find out they are only incrementing a counter. Let's drop all<br>those functions and increment the counter so people looking at code<br>doesn't see dozens of code paths evyerwhere.<br><br>Most of the commit was generated by following sh snippet:<br>"""<br> #!/bin/bash<br>grep -r -l ^CREATE_COUNT_INLINE . | xargs cat | grep "^CREATE_COUNT_INLINE("| tr -d ",;" | tr "()" " " | awk '{ print $2 " " $3 }' >/tmp/hello<br><br>while read -r func_name ctr_name<br>do<br> #echo "$func_name -> $ctr_name"<br>files="$(grep -r -l "${func_name}()" .)"<br>for f in $files; do<br>echo "$f: $func_name -> $ctr_name";<br>sed -i "s#${func_name}()#do_rate_ctr_inc(${ctr_name})#g" $f<br>done;<br>done < /tmp/hello<br><br>grep -r -l "void do_rate_ctr_inc" | xargs sed -i "/void do_rate_ctr_inc(CTR/d"<br>grep -r -l "CREATE_COUNT_INLINE" | xargs sed -i "/^CREATE_COUNT_INLINE/d"<br>"""<br><br>Change-Id: I360e322a30edf639aefb3c0f0e4354d98c9035a3<br>---<br>M src/bts.cpp<br>M src/bts.h<br>M src/gprs_rlcmac_sched.cpp<br>M src/gprs_rlcmac_ts_alloc.cpp<br>M src/llc.cpp<br>M src/pdch.cpp<br>M src/rlc.cpp<br>M src/sba.cpp<br>M src/tbf.cpp<br>M src/tbf_dl.cpp<br>M src/tbf_ul.cpp<br>11 files changed, 186 insertions(+), 346 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/26/18226/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/18226">change 18226</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/osmo-pcu/+/18226"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I360e322a30edf639aefb3c0f0e4354d98c9035a3 </div>
<div style="display:none"> Gerrit-Change-Number: 18226 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Jenkins Builder </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>