ttrace           1073 tools/perf/builtin-trace.c 	struct thread_trace *ttrace =  zalloc(sizeof(struct thread_trace));
ttrace           1075 tools/perf/builtin-trace.c 	if (ttrace) {
ttrace           1076 tools/perf/builtin-trace.c 		ttrace->files.max = -1;
ttrace           1077 tools/perf/builtin-trace.c 		ttrace->syscall_stats = intlist__new(NULL);
ttrace           1080 tools/perf/builtin-trace.c 	return ttrace;
ttrace           1085 tools/perf/builtin-trace.c 	struct thread_trace *ttrace;
ttrace           1096 tools/perf/builtin-trace.c 	ttrace = thread__priv(thread);
ttrace           1097 tools/perf/builtin-trace.c 	++ttrace->nr_events;
ttrace           1099 tools/perf/builtin-trace.c 	return ttrace;
ttrace           1110 tools/perf/builtin-trace.c 	struct thread_trace *ttrace = thread__priv(arg->thread);
ttrace           1112 tools/perf/builtin-trace.c 	ttrace->ret_scnprintf = ret_scnprintf;
ttrace           1120 tools/perf/builtin-trace.c static struct file *thread_trace__files_entry(struct thread_trace *ttrace, int fd)
ttrace           1125 tools/perf/builtin-trace.c 	if (fd > ttrace->files.max) {
ttrace           1126 tools/perf/builtin-trace.c 		struct file *nfiles = realloc(ttrace->files.table, (fd + 1) * sizeof(struct file));
ttrace           1131 tools/perf/builtin-trace.c 		if (ttrace->files.max != -1) {
ttrace           1132 tools/perf/builtin-trace.c 			memset(nfiles + ttrace->files.max + 1, 0,
ttrace           1133 tools/perf/builtin-trace.c 			       (fd - ttrace->files.max) * sizeof(struct file));
ttrace           1138 tools/perf/builtin-trace.c 		ttrace->files.table = nfiles;
ttrace           1139 tools/perf/builtin-trace.c 		ttrace->files.max   = fd;
ttrace           1142 tools/perf/builtin-trace.c 	return ttrace->files.table + fd;
ttrace           1152 tools/perf/builtin-trace.c 	struct thread_trace *ttrace = thread__priv(thread);
ttrace           1153 tools/perf/builtin-trace.c 	struct file *file = thread_trace__files_entry(ttrace, fd);
ttrace           1196 tools/perf/builtin-trace.c 	struct thread_trace *ttrace = thread__priv(thread);
ttrace           1198 tools/perf/builtin-trace.c 	if (ttrace == NULL || trace->fd_path_disabled)
ttrace           1204 tools/perf/builtin-trace.c 	if ((fd > ttrace->files.max || ttrace->files.table[fd].pathname == NULL)) {
ttrace           1212 tools/perf/builtin-trace.c 	return ttrace->files.table[fd].pathname;
ttrace           1249 tools/perf/builtin-trace.c 	struct thread_trace *ttrace = thread__priv(arg->thread);
ttrace           1251 tools/perf/builtin-trace.c 	if (ttrace && fd >= 0 && fd <= ttrace->files.max)
ttrace           1252 tools/perf/builtin-trace.c 		zfree(&ttrace->files.table[fd].pathname);
ttrace           1260 tools/perf/builtin-trace.c 	struct thread_trace *ttrace = thread__priv(thread);
ttrace           1262 tools/perf/builtin-trace.c 	ttrace->filename.ptr = ptr;
ttrace           1263 tools/perf/builtin-trace.c 	ttrace->filename.entry_str_pos = bf - ttrace->entry_str;
ttrace           1722 tools/perf/builtin-trace.c 	struct thread_trace *ttrace = thread__priv(thread);
ttrace           1729 tools/perf/builtin-trace.c 	ttrace->ret_scnprintf = NULL;
ttrace           1847 tools/perf/builtin-trace.c static void thread__update_stats(struct thread_trace *ttrace,
ttrace           1854 tools/perf/builtin-trace.c 	inode = intlist__findnew(ttrace->syscall_stats, id);
ttrace           1867 tools/perf/builtin-trace.c 	if (ttrace->entry_time && sample->time > ttrace->entry_time)
ttrace           1868 tools/perf/builtin-trace.c 		duration = sample->time - ttrace->entry_time;
ttrace           1875 tools/perf/builtin-trace.c 	struct thread_trace *ttrace;
ttrace           1882 tools/perf/builtin-trace.c 	ttrace = thread__priv(trace->current);
ttrace           1884 tools/perf/builtin-trace.c 	if (!ttrace->entry_pending)
ttrace           1887 tools/perf/builtin-trace.c 	printed  = trace__fprintf_entry_head(trace, trace->current, 0, false, ttrace->entry_time, trace->output);
ttrace           1888 tools/perf/builtin-trace.c 	printed += len = fprintf(trace->output, "%s)", ttrace->entry_str);
ttrace           1895 tools/perf/builtin-trace.c 	ttrace->entry_pending = false;
ttrace           1956 tools/perf/builtin-trace.c 	struct thread_trace *ttrace;
ttrace           1962 tools/perf/builtin-trace.c 	ttrace = thread__trace(thread, trace->output);
ttrace           1963 tools/perf/builtin-trace.c 	if (ttrace == NULL)
ttrace           1970 tools/perf/builtin-trace.c 	if (ttrace->entry_str == NULL) {
ttrace           1971 tools/perf/builtin-trace.c 		ttrace->entry_str = malloc(trace__entry_str_size);
ttrace           1972 tools/perf/builtin-trace.c 		if (!ttrace->entry_str)
ttrace           1990 tools/perf/builtin-trace.c 	ttrace->entry_time = sample->time;
ttrace           1991 tools/perf/builtin-trace.c 	msg = ttrace->entry_str;
ttrace           2001 tools/perf/builtin-trace.c 			trace__fprintf_entry_head(trace, thread, 0, false, ttrace->entry_time, trace->output);
ttrace           2002 tools/perf/builtin-trace.c 			printed = fprintf(trace->output, "%s)", ttrace->entry_str);
ttrace           2008 tools/perf/builtin-trace.c 		ttrace->entry_pending = true;
ttrace           2010 tools/perf/builtin-trace.c 		ttrace->filename.pending_open = false;
ttrace           2026 tools/perf/builtin-trace.c 	struct thread_trace *ttrace;
ttrace           2038 tools/perf/builtin-trace.c 	ttrace = thread__trace(thread, trace->output);
ttrace           2043 tools/perf/builtin-trace.c 	if (ttrace == NULL)
ttrace           2103 tools/perf/builtin-trace.c 	struct thread_trace *ttrace;
ttrace           2109 tools/perf/builtin-trace.c 	ttrace = thread__trace(thread, trace->output);
ttrace           2110 tools/perf/builtin-trace.c 	if (ttrace == NULL)
ttrace           2116 tools/perf/builtin-trace.c 		thread__update_stats(ttrace, id, sample);
ttrace           2120 tools/perf/builtin-trace.c 	if (!trace->fd_path_disabled && sc->is_open && ret >= 0 && ttrace->filename.pending_open) {
ttrace           2121 tools/perf/builtin-trace.c 		trace__set_fd_pathname(thread, ret, ttrace->filename.name);
ttrace           2122 tools/perf/builtin-trace.c 		ttrace->filename.pending_open = false;
ttrace           2126 tools/perf/builtin-trace.c 	if (ttrace->entry_time) {
ttrace           2127 tools/perf/builtin-trace.c 		duration = sample->time - ttrace->entry_time;
ttrace           2146 tools/perf/builtin-trace.c 	trace__fprintf_entry_head(trace, thread, duration, duration_calculated, ttrace->entry_time, trace->output);
ttrace           2148 tools/perf/builtin-trace.c 	if (ttrace->entry_pending) {
ttrace           2149 tools/perf/builtin-trace.c 		printed = fprintf(trace->output, "%s", ttrace->entry_str);
ttrace           2181 tools/perf/builtin-trace.c 	else if (ttrace->ret_scnprintf) {
ttrace           2188 tools/perf/builtin-trace.c 		ttrace->ret_scnprintf(bf, sizeof(bf), &arg);
ttrace           2189 tools/perf/builtin-trace.c 		ttrace->ret_scnprintf = NULL;
ttrace           2219 tools/perf/builtin-trace.c 	ttrace->entry_pending = false;
ttrace           2231 tools/perf/builtin-trace.c 	struct thread_trace *ttrace;
ttrace           2240 tools/perf/builtin-trace.c 	ttrace = thread__priv(thread);
ttrace           2241 tools/perf/builtin-trace.c 	if (!ttrace)
ttrace           2248 tools/perf/builtin-trace.c 	if (ttrace->filename.namelen < filename_len) {
ttrace           2249 tools/perf/builtin-trace.c 		char *f = realloc(ttrace->filename.name, filename_len + 1);
ttrace           2254 tools/perf/builtin-trace.c 		ttrace->filename.namelen = filename_len;
ttrace           2255 tools/perf/builtin-trace.c 		ttrace->filename.name = f;
ttrace           2258 tools/perf/builtin-trace.c 	strcpy(ttrace->filename.name, filename);
ttrace           2259 tools/perf/builtin-trace.c 	ttrace->filename.pending_open = true;
ttrace           2261 tools/perf/builtin-trace.c 	if (!ttrace->filename.ptr)
ttrace           2264 tools/perf/builtin-trace.c 	entry_str_len = strlen(ttrace->entry_str);
ttrace           2274 tools/perf/builtin-trace.c 	to_move = entry_str_len - ttrace->filename.entry_str_pos + 1; /* \0 */
ttrace           2275 tools/perf/builtin-trace.c 	pos = ttrace->entry_str + ttrace->filename.entry_str_pos;
ttrace           2279 tools/perf/builtin-trace.c 	ttrace->filename.ptr = 0;
ttrace           2280 tools/perf/builtin-trace.c 	ttrace->filename.entry_str_pos = 0;
ttrace           2296 tools/perf/builtin-trace.c 	struct thread_trace *ttrace = thread__trace(thread, trace->output);
ttrace           2298 tools/perf/builtin-trace.c 	if (ttrace == NULL)
ttrace           2301 tools/perf/builtin-trace.c 	ttrace->runtime_ms += runtime_ms;
ttrace           2458 tools/perf/builtin-trace.c 	struct thread_trace *ttrace;
ttrace           2473 tools/perf/builtin-trace.c 	ttrace = thread__trace(thread, trace->output);
ttrace           2474 tools/perf/builtin-trace.c 	if (ttrace == NULL)
ttrace           2478 tools/perf/builtin-trace.c 		ttrace->pfmaj++;
ttrace           2480 tools/perf/builtin-trace.c 		ttrace->pfmin++;
ttrace           3681 tools/perf/builtin-trace.c static size_t thread__dump_stats(struct thread_trace *ttrace,
ttrace           3687 tools/perf/builtin-trace.c 	DECLARE_RESORT_RB_INTLIST(syscall_stats, ttrace->syscall_stats);
ttrace           3727 tools/perf/builtin-trace.c 	struct thread_trace *ttrace = thread__priv(thread);
ttrace           3730 tools/perf/builtin-trace.c 	if (ttrace == NULL)
ttrace           3733 tools/perf/builtin-trace.c 	ratio = (double)ttrace->nr_events / trace->nr_events * 100.0;
ttrace           3736 tools/perf/builtin-trace.c 	printed += fprintf(fp, "%lu events, ", ttrace->nr_events);
ttrace           3738 tools/perf/builtin-trace.c 	if (ttrace->pfmaj)
ttrace           3739 tools/perf/builtin-trace.c 		printed += fprintf(fp, ", %lu majfaults", ttrace->pfmaj);
ttrace           3740 tools/perf/builtin-trace.c 	if (ttrace->pfmin)
ttrace           3741 tools/perf/builtin-trace.c 		printed += fprintf(fp, ", %lu minfaults", ttrace->pfmin);
ttrace           3743 tools/perf/builtin-trace.c 		printed += fprintf(fp, ", %.3f msec\n", ttrace->runtime_ms);
ttrace           3747 tools/perf/builtin-trace.c 	printed += thread__dump_stats(ttrace, trace, fp);
ttrace           3752 tools/perf/builtin-trace.c static unsigned long thread__nr_events(struct thread_trace *ttrace)
ttrace           3754 tools/perf/builtin-trace.c 	return ttrace ? ttrace->nr_events : 0;