Changeset 5869ce0 in mainline for kernel/generic/src/sysinfo/stats.c
- Timestamp:
- 2012-03-01T23:22:32Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0030eef
- Parents:
- 3d23553
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/stats.c
r3d23553 r5869ce0 451 451 * @param name Task ID (string-encoded number). 452 452 * @param dry_run Do not get the data, just calculate the size. 453 * @param data Unused. 453 454 * 454 455 * @return Sysinfo return holder. The type of the returned … … 460 461 * 461 462 */ 462 static sysinfo_return_t get_stats_task(const char *name, bool dry_run) 463 static sysinfo_return_t get_stats_task(const char *name, bool dry_run, 464 void *data) 463 465 { 464 466 /* Initially no return value */ … … 520 522 * @param name Thread ID (string-encoded number). 521 523 * @param dry_run Do not get the data, just calculate the size. 524 * @param data Unused. 522 525 * 523 526 * @return Sysinfo return holder. The type of the returned … … 529 532 * 530 533 */ 531 static sysinfo_return_t get_stats_thread(const char *name, bool dry_run) 534 static sysinfo_return_t get_stats_thread(const char *name, bool dry_run, 535 void *data) 532 536 { 533 537 /* Initially no return value */ … … 634 638 * @param name Exception number (string-encoded number). 635 639 * @param dry_run Do not get the data, just calculate the size. 640 * @param data Unused. 636 641 * 637 642 * @return Sysinfo return holder. The type of the returned … … 643 648 * 644 649 */ 645 static sysinfo_return_t get_stats_exception(const char *name, bool dry_run) 650 static sysinfo_return_t get_stats_exception(const char *name, bool dry_run, 651 void *data) 646 652 { 647 653 /* Initially no return value */ … … 817 823 sysinfo_set_item_fn_data("system.threads", NULL, get_stats_threads); 818 824 sysinfo_set_item_fn_data("system.exceptions", NULL, get_stats_exceptions); 819 sysinfo_set_subtree_fn("system.tasks", NULL, get_stats_task );820 sysinfo_set_subtree_fn("system.threads", NULL, get_stats_thread );821 sysinfo_set_subtree_fn("system.exceptions", NULL, get_stats_exception );825 sysinfo_set_subtree_fn("system.tasks", NULL, get_stats_task, NULL); 826 sysinfo_set_subtree_fn("system.threads", NULL, get_stats_thread, NULL); 827 sysinfo_set_subtree_fn("system.exceptions", NULL, get_stats_exception, NULL); 822 828 } 823 829
Note:
See TracChangeset
for help on using the changeset viewer.