Skip to content

Commit

Permalink
uftrace: Fix white space
Browse files Browse the repository at this point in the history
Signed-off-by: GwanYeong Kim <[email protected]>
  • Loading branch information
gy741 authored and namhyung committed Oct 18, 2019
1 parent 5cffda2 commit ff2f61e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion utils/data-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void write_session_info(const char *dirname, struct uftrace_msg_sess *smsg,

snprint_timestamp(ts, sizeof(ts), smsg->task.time);
fprintf(fp, "SESS timestamp=%s pid=%d sid=%s exename=\"%s\"\n",
ts, smsg->task.pid, smsg->sid, exename);
ts, smsg->task.pid, smsg->sid, exename);

fclose(fp);
free(fname);
Expand Down
2 changes: 1 addition & 1 deletion utils/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ void print_diff_count(unsigned long base, unsigned long pair)

if (out_color == COLOR_ON) {
sc = diff_colors[sign_idx];
ec = TERM_COLOR_RESET;
ec = TERM_COLOR_RESET;
}

pr_out("%s%+9ld%s", sc, diff, ec);
Expand Down
2 changes: 1 addition & 1 deletion utils/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ struct uftrace_filter *uftrace_match_filter(uint64_t ip, struct rb_root *root,
iter = rb_entry(parent, struct uftrace_filter, node);

if (match_ip(iter, ip)) {
*tr = iter->trigger;
*tr = iter->trigger;

pr_dbg2("filter match: %s\n", iter->name);
if (dbg_domain[DBG_FILTER] >= 3)
Expand Down
4 changes: 2 additions & 2 deletions utils/fstack.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ bool fstack_check_filter(struct uftrace_task_reader *task);
bool fstack_check_opts(struct uftrace_task_reader *task, struct opts *opts);

void get_argspec_string(struct uftrace_task_reader *task,
char *args, size_t len,
enum argspec_string_bits str_mode);
char *args, size_t len,
enum argspec_string_bits str_mode);

#define EXTERN_DATA_MAX 1024

Expand Down
2 changes: 1 addition & 1 deletion utils/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ int setup_kernel_tracing(struct uftrace_kernel_writer *kernel, struct opts *opts
kernel->traces = xcalloc(n, sizeof(*kernel->traces));
kernel->fds = xcalloc(n, sizeof(*kernel->fds));

for (i = 0; i < kernel->nr_cpus; i++) {
for (i = 0; i < kernel->nr_cpus; i++) {
kernel->traces[i] = -1;
kernel->fds[i] = -1;
}
Expand Down
4 changes: 2 additions & 2 deletions utils/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ struct perf_comm_event {
* type: PERF_RECORD_COMM (3)
*/
uint32_t pid, tid;
/* variable length (aligned to 8) */
/* variable length (aligned to 8) */
char comm[COMM_LEN];
/* needs to be read separately */
/* needs to be read separately */
struct sample_id sample_id;
};

Expand Down

0 comments on commit ff2f61e

Please sign in to comment.