Changeset 6265a2b in mainline for uspace/app
- Timestamp:
- 2011-01-26T14:52:55Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7fc092a, 9f0318c, ea6a824
- Parents:
- 192a0063 (diff), a0ce870 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/app
- Files:
-
- 5 edited
-
tasks/tasks.c (modified) (2 diffs)
-
top/screen.c (modified) (2 diffs)
-
top/top.c (modified) (3 diffs)
-
top/top.h (modified) (1 diff)
-
trace/syscalls.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tasks/tasks.c
r192a0063 r6265a2b 66 66 } 67 67 68 printf(" ID Threads Mem uCycles kCycles Name\n");68 printf(" Task ID Threads Mem uCycles kCycles Name\n"); 69 69 70 70 size_t i; … … 96 96 } 97 97 98 printf(" ID State CPU Prio [k]uCycles [k]kcycles Cycle fault\n");98 printf(" ThrID State CPU Prio [k]uCycles [k]kcycles Cycle fault\n"); 99 99 size_t i; 100 100 for (i = 0; i < count; i++) { -
uspace/app/top/screen.c
r192a0063 r6265a2b 274 274 { 275 275 screen_style_inverted(); 276 printf("[taskid] [threads] [ virtual] [%%virt] [%%user]"277 " [%% kernel] [name");276 printf("[taskid] [threads] [resident] [%%resi] [virtual] [%%virt]" 277 " [%%user] [%%kern] [name"); 278 278 screen_newline(); 279 279 screen_style_normal(); … … 295 295 perc_task_t *perc = data->tasks_perc + data->tasks_map[i]; 296 296 297 uint64_t resmem; 298 char resmem_suffix; 299 order_suffix(task->resmem, &resmem, &resmem_suffix); 300 297 301 uint64_t virtmem; 298 302 char virtmem_suffix; 299 303 order_suffix(task->virtmem, &virtmem, &virtmem_suffix); 300 304 301 printf("%-8" PRIu64 " %9zu %8" PRIu64 "%c ", task->task_id, 302 task->threads, virtmem, virtmem_suffix); 305 printf("%-8" PRIu64 " %9zu %9" PRIu64 "%c ", 306 task->task_id, task->threads, resmem, resmem_suffix); 307 print_percent(perc->resmem, 2); 308 printf(" %8" PRIu64 "%c ", virtmem, virtmem_suffix); 303 309 print_percent(perc->virtmem, 2); 304 310 puts(" "); 305 311 print_percent(perc->ucycles, 2); 306 puts(" ");312 puts(" "); 307 313 print_percent(perc->kcycles, 2); 308 314 puts(" "); -
uspace/app/top/top.c
r192a0063 r6265a2b 195 195 196 196 uint64_t virtmem_total = 0; 197 uint64_t resmem_total = 0; 197 198 uint64_t ucycles_total = 0; 198 199 uint64_t kcycles_total = 0; … … 223 224 224 225 virtmem_total += new_data->tasks[i].virtmem; 226 resmem_total += new_data->tasks[i].resmem; 225 227 ucycles_total += new_data->ucycles_diff[i]; 226 228 kcycles_total += new_data->kcycles_diff[i]; … … 232 234 FRACTION_TO_FLOAT(new_data->tasks_perc[i].virtmem, 233 235 new_data->tasks[i].virtmem * 100, virtmem_total); 236 FRACTION_TO_FLOAT(new_data->tasks_perc[i].resmem, 237 new_data->tasks[i].resmem * 100, resmem_total); 234 238 FRACTION_TO_FLOAT(new_data->tasks_perc[i].ucycles, 235 239 new_data->ucycles_diff[i] * 100, ucycles_total); -
uspace/app/top/top.h
r192a0063 r6265a2b 77 77 typedef struct { 78 78 fixed_float virtmem; 79 fixed_float resmem; 79 80 fixed_float ucycles; 80 81 fixed_float kcycles; -
uspace/app/trace/syscalls.c
r192a0063 r6265a2b 77 77 [SYS_SYSINFO_GET_VALUE] = { "sysinfo_get_value", 3, V_ERRNO }, 78 78 [SYS_SYSINFO_GET_DATA_SIZE] = { "sysinfo_get_data_size", 3, V_ERRNO }, 79 [SYS_SYSINFO_GET_DATA] = { "sysinfo_get_data", 4, V_ERRNO },79 [SYS_SYSINFO_GET_DATA] = { "sysinfo_get_data", 5, V_ERRNO }, 80 80 81 81 [SYS_DEBUG_ENABLE_CONSOLE] = { "debug_enable_console", 0, V_ERRNO },
Note:
See TracChangeset
for help on using the changeset viewer.
