@@ -131,7 +131,7 @@ static void get_new_shmem_buffer(struct mcount_thread_data *mtdp)
131
131
132
132
reuse :
133
133
/*
134
- * Start a new buffer and mark it recording data.
134
+ * Start a new buffer and mark its recording data.
135
135
* See cmd-record.c::writer_thread().
136
136
*/
137
137
__sync_fetch_and_or (& curr_buf -> flag , SHMEM_FL_RECORDING );
@@ -554,9 +554,11 @@ static int save_proc_statm(void *ctx, void *buf)
554
554
if (fscanf (fp , "%" SCNu64 " %" SCNu64 " %" SCNu64 ,
555
555
& statm -> vmsize , & statm -> vmrss , & statm -> shared ) != 3 )
556
556
pr_err ("failed to scan /proc/self/statm" );
557
-
558
- /* Since /proc/[pid]/statm prints the number of pages for each field,
559
- * it'd be better to keep the memory size in KB. */
557
+
558
+ /*
559
+ * Since /proc/[pid]/statm prints the number of pages for each field,
560
+ * it'd be better to keep the memory size in KB.
561
+ */
560
562
statm -> vmsize *= page_size_in_kb ;
561
563
statm -> vmrss *= page_size_in_kb ;
562
564
statm -> shared *= page_size_in_kb ;
@@ -747,8 +749,8 @@ void save_watchpoint(struct mcount_thread_data *mtdp,
747
749
* Normally watch point event comes before the rstack (record)
748
750
* in order to indicate where it's changed precisely.
749
751
* But first watch point event needs to come after the first
750
- * record otherwise it'd not shown since 'event-skip' mechanism.
751
- * so add 2(nsec) so that it can be 1 nsec later.
752
+ * record otherwise it'd not show since 'event-skip' mechanism.
753
+ * Therefore, add 2(nsec) so that it can be 1 nsec later.
752
754
*/
753
755
timestamp += 2 ;
754
756
mtdp -> watch .inited = true;
@@ -853,8 +855,8 @@ static int record_event(struct mcount_thread_data *mtdp,
853
855
rec = (void * )(curr_buf -> data + curr_buf -> size );
854
856
855
857
/*
856
- * instead of set bitfields , do the bit operations manually.
857
- * this would be good both for performance and portability.
858
+ * instead of set bit fields , do the bit operations manually.
859
+ * this would be good for both performance and portability.
858
860
*/
859
861
rec -> data = UFTRACE_EVENT | RECORD_MAGIC << 3 ;
860
862
rec -> data += (uint64_t )event -> id << 16 ;
@@ -944,8 +946,8 @@ static int record_ret_stack(struct mcount_thread_data *mtdp,
944
946
frstack -> addr = mrstack -> child_ip ;
945
947
#else
946
948
/*
947
- * instead of set bitfields , do the bit operations manually.
948
- * this would be good both for performance and portability.
949
+ * instead of set bit fields , do the bit operations manually.
950
+ * this would be good for both performance and portability.
949
951
*/
950
952
rec = type | RECORD_MAGIC << 3 ;
951
953
rec += argbuf ? 4 : 0 ;
0 commit comments