Changeset 3d23553 in mainline
- Timestamp:
- 2012-03-01T22:57:09Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5869ce0
- Parents:
- 4546fc3
- Location:
- kernel/generic/src/sysinfo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/stats.c
r4546fc3 r3d23553 249 249 ASSERT(interrupts_disabled()); 250 250 ASSERT(irq_spinlock_locked(&task->lock)); 251 251 252 252 stats_task->task_id = task->taskid; 253 253 str_cpy(stats_task->name, TASK_NAME_BUFLEN, task->name); … … 350 350 ASSERT(interrupts_disabled()); 351 351 ASSERT(irq_spinlock_locked(&thread->lock)); 352 352 353 353 stats_thread->thread_id = thread->tid; 354 354 stats_thread->task_id = thread->task->taskid; -
kernel/generic/src/sysinfo/sysinfo.c
r4546fc3 r3d23553 99 99 sizeof(sysinfo_item_t), 0, sysinfo_item_constructor, 100 100 sysinfo_item_destructor, SLAB_CACHE_MAGDEFERRED); 101 101 102 102 mutex_initialize(&sysinfo_lock, MUTEX_ACTIVE); 103 103 } … … 635 635 ASSERT(path); 636 636 637 if ((copy_from_uspace(path, ptr, size + 1) == 0) 638 &&(path[size] == 0)) {637 if ((copy_from_uspace(path, ptr, size + 1) == 0) && 638 (path[size] == 0)) { 639 639 /* 640 640 * Prevent other functions from messing with sysinfo while we … … 645 645 mutex_unlock(&sysinfo_lock); 646 646 } 647 647 648 free(path); 648 649 return ret; … … 672 673 673 674 /* 674 * Map generated value types to constant types (user space does not care675 * whether the value is constant or generated).675 * Map generated value types to constant types (user space does 676 * not care whether the value is constant or generated). 676 677 */ 677 678 if (ret.tag == SYSINFO_VAL_FUNCTION_VAL) … … 701 702 { 702 703 int rc; 703 704 704 705 /* 705 706 * Get the item. 706 707 * 707 * N.B.: There is no need to free any potential generated binary data708 * since we request a dry run.708 * N.B.: There is no need to free any potential generated binary 709 * data since we request a dry run. 709 710 */ 710 711 sysinfo_return_t ret = sysinfo_get_item_uspace(path_ptr, path_size, true); … … 741 742 * Get the item. 742 743 * 743 * N.B.: There is no need to free any potential generated binary data744 * since we request a dry run.744 * N.B.: There is no need to free any potential generated binary 745 * data since we request a dry run. 745 746 */ 746 747 sysinfo_return_t ret = sysinfo_get_item_uspace(path_ptr, path_size, true);
Note:
See TracChangeset
for help on using the changeset viewer.