Changeset dafa2d04 in mainline for uspace/srv/taskmon/taskmon.c
- Timestamp:
- 2010-02-06T21:36:08Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 444a54e, f27ada7
- Parents:
- 19f24fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/taskmon/taskmon.c
r19f24fd rdafa2d04 49 49 static void fault_event(ipc_callid_t callid, ipc_call_t *call) 50 50 { 51 char *argv[ 11];51 char *argv[6]; 52 52 char *fname; 53 53 char *dump_fname; … … 66 66 } 67 67 68 if (asprintf(&dump_fname, "/ scratch/d" PRIuTASKID ".txt", taskid) < 0) {68 if (asprintf(&dump_fname, "/data/core" PRIuTASKID, taskid) < 0) { 69 69 printf("Memory allocation failed.\n"); 70 70 return; … … 73 73 printf(NAME ": Task %" PRIuTASKID " fault in thread %p.\n", taskid, thread); 74 74 75 #ifdef CONFIG_VERBOSE_DUMPS 76 argv[0] = "/app/redir"; 77 argv[1] = "-i"; 78 argv[2] = "/readme"; 79 argv[3] = "-o"; 80 argv[4] = dump_fname; 81 argv[5] = "--"; 82 argv[6] = "/app/taskdump"; 83 argv[7] = "-m"; 84 argv[8] = "-t"; 85 argv[9] = s_taskid; 86 argv[10] = NULL; 75 #ifdef CONFIG_WRITE_CORE_FILES 76 argv[0] = "/app/taskdump"; 77 argv[1] = "-c"; 78 argv[2] = dump_fname; 79 argv[3] = "-t"; 80 argv[4] = s_taskid; 81 argv[5] = NULL; 87 82 #else 88 83 argv[0] = "/app/taskdump";
Note:
See TracChangeset
for help on using the changeset viewer.