summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
906c08f)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
free(proc->comm);
proc->comm = strdup(comm);
}
free(proc->comm);
proc->comm = strdup(comm);
}
+ if (hostname && !proc->hostname) {
+ proc->hostname = strdup(hostname);
+ if (lookup_hostname_list(hostname)) {
+ add_filter_tid_list(tid, proc);
+ }
+ }
unsigned long timestamp, char *hostname)
{
struct processtop *tmp;
unsigned long timestamp, char *hostname)
{
struct processtop *tmp;
tmp = find_process_tid(ctx, tid, comm);
tmp = find_process_tid(ctx, tid, comm);
- if (tmp && strcmp(tmp->comm, comm) == 0)
+ if (tmp && strcmp(tmp->comm, comm) == 0) {
return add_proc(ctx, tid, comm, timestamp, hostname);
}
return add_proc(ctx, tid, comm, timestamp, hostname);
}
struct processtop *proc;
unsigned long timestamp;
int64_t pid, tid, ppid, vtid, vpid, vppid;
struct processtop *proc;
unsigned long timestamp;
int64_t pid, tid, ppid, vtid, vpid, vppid;
+ char *procname, *hostname = NULL;
timestamp = bt_ctf_get_timestamp(call_data);
if (timestamp == -1ULL)
timestamp = bt_ctf_get_timestamp(call_data);
if (timestamp == -1ULL)
fprintf(stderr, "Missing process name context info\n");
goto error;
}
fprintf(stderr, "Missing process name context info\n");
goto error;
}
+ /*
+ hostname = bt_ctf_get_char_array(bt_ctf_get_field(call_data,
+ scope, "_hostname"));
+ if (bt_ctf_field_get_error()) {
+ }
+ */
proc = find_process_tid(<tngtop, tid, procname);
proc = find_process_tid(<tngtop, tid, procname);
- /* FIXME : hostname NULL */
- proc = add_proc(<tngtop, tid, procname, timestamp, NULL);
- update_proc(proc, pid, tid, ppid, vpid, vtid, vppid, procname, NULL);
+ proc = add_proc(<tngtop, tid, procname, timestamp, hostname);
+ update_proc(proc, pid, tid, ppid, vpid, vtid, vppid, procname, hostname);
if (proc) {
free(proc->comm);
if (proc) {
free(proc->comm);
uint64_t cpu_id;
char *prev_comm, *next_comm;
int prev_tid, next_tid;
uint64_t cpu_id;
char *prev_comm, *next_comm;
int prev_tid, next_tid;
timestamp = bt_ctf_get_timestamp(call_data);
if (timestamp == -1ULL)
timestamp = bt_ctf_get_timestamp(call_data);
if (timestamp == -1ULL)
fprintf(stderr, "Missing next_tid context info\n");
goto error;
}
fprintf(stderr, "Missing next_tid context info\n");
goto error;
}
- hostname = get_context_hostname(call_data);
cpu_id = get_cpu_id(call_data);
cpu_id = get_cpu_id(call_data);
chan.attr.subbuf_size = 32768;
chan.attr.num_subbuf = 8;
} else {
chan.attr.subbuf_size = 32768;
chan.attr.num_subbuf = 8;
} else {
- chan.attr.subbuf_size = 1048576; /* 1MB */
+ //chan.attr.subbuf_size = 1048576; /* 1MB */
+ chan.attr.subbuf_size = 2097152; /* 1MB */
chan.attr.num_subbuf = 4;
}
chan.attr.switch_timer_interval = 0;
chan.attr.num_subbuf = 4;
}
chan.attr.switch_timer_interval = 0;