Lines Matching defs:table
132 struct syscall *table;
1213 * nonexistent: Just a hole in the syscall table, syscall id not allocated
1279 struct file *table;
1353 struct file *file = ttrace->files.table + i;
1357 zfree(&ttrace->files.table);
1367 struct file *nfiles = realloc(ttrace->files.table, (fd + 1) * sizeof(struct file));
1379 ttrace->files.table = nfiles;
1383 return ttrace->files.table + fd;
1446 if ((fd > ttrace->files.max || ttrace->files.table[fd].pathname == NULL)) {
1454 return ttrace->files.table[fd].pathname;
1494 zfree(&ttrace->files.table[fd].pathname);
1801 if (trace->syscalls.table == NULL) {
1802 trace->syscalls.table = calloc(trace->sctbl->syscalls.max_id + 1, sizeof(*sc));
1803 if (trace->syscalls.table == NULL)
1807 if (id > trace->sctbl->syscalls.max_id || (id == 0 && trace->syscalls.table == NULL)) {
1809 struct syscall *table = realloc(trace->syscalls.table, (id + 1) * sizeof(*sc));
1811 if (table == NULL)
1815 if (trace->syscalls.table == NULL)
1816 memset(table, 0, (id + 1) * sizeof(*sc));
1818 memset(table + trace->sctbl->syscalls.max_id + 1, 0, (id - trace->sctbl->syscalls.max_id) * sizeof(*sc));
1820 trace->syscalls.table = table;
1824 sc = trace->syscalls.table + id;
2169 if ((trace->syscalls.table == NULL || trace->syscalls.table[id].name == NULL) &&
2173 if (trace->syscalls.table && trace->syscalls.table[id].nonexistent)
2176 return &trace->syscalls.table[id];
2182 if (id <= trace->sctbl->syscalls.max_id && trace->syscalls.table[id].name != NULL)
2183 fprintf(trace->output, "(%s)", trace->syscalls.table[id].name);
3950 * fd->pathname table and were ending up showing the last value set by
4260 sc = &trace->syscalls.table[syscall_stats_entry->syscall];
4654 if (trace->syscalls.table) {
4656 syscall__exit(&trace->syscalls.table[i]);
4657 zfree(&trace->syscalls.table);