Lines Matching refs:h

529 #define NEW_THREAD_INFO_W(gptr,h,h_tail,t,s,n) { \  argument
530 h = (__itt_thread_info*)malloc(sizeof(__itt_thread_info)); \
531 if (h != NULL) { \
532 h->tid = t; \
533 h->nameA = NULL; \
534 h->nameW = n ? _wcsdup(n) : NULL; \
535 h->state = s; \
536 h->extra1 = 0; /* reserved */ \
537 h->extra2 = NULL; /* reserved */ \
538 h->next = NULL; \
540 (gptr)->thread_list = h; \
542 h_tail->next = h; \
546 #define NEW_THREAD_INFO_A(gptr,h,h_tail,t,s,n) { \ argument
547 h = (__itt_thread_info*)malloc(sizeof(__itt_thread_info)); \
548 if (h != NULL) { \
549 h->tid = t; \
552 h->nameA = n_copy; \
553 h->nameW = NULL; \
554 h->state = s; \
555 h->extra1 = 0; /* reserved */ \
556 h->extra2 = NULL; /* reserved */ \
557 h->next = NULL; \
559 (gptr)->thread_list = h; \
561 h_tail->next = h; \
565 #define NEW_DOMAIN_W(gptr,h,h_tail,name) { \ argument
566 h = (__itt_domain*)malloc(sizeof(__itt_domain)); \
567 if (h != NULL) { \
568 h->flags = 1; /* domain is enabled by default */ \
569 h->nameA = NULL; \
570 h->nameW = name ? _wcsdup(name) : NULL; \
571 h->extra1 = 0; /* reserved */ \
572 h->extra2 = NULL; /* reserved */ \
573 h->next = NULL; \
575 (gptr)->domain_list = h; \
577 h_tail->next = h; \
581 #define NEW_DOMAIN_A(gptr,h,h_tail,name) { \ argument
582 h = (__itt_domain*)malloc(sizeof(__itt_domain)); \
583 if (h != NULL) { \
584 h->flags = 1; /* domain is enabled by default */ \
587 h->nameA = name_copy; \
588 h->nameW = NULL; \
589 h->extra1 = 0; /* reserved */ \
590 h->extra2 = NULL; /* reserved */ \
591 h->next = NULL; \
593 (gptr)->domain_list = h; \
595 h_tail->next = h; \
599 #define NEW_STRING_HANDLE_W(gptr,h,h_tail,name) { \ argument
600 h = (__itt_string_handle*)malloc(sizeof(__itt_string_handle)); \
601 if (h != NULL) { \
602 h->strA = NULL; \
603 h->strW = name ? _wcsdup(name) : NULL; \
604 h->extra1 = 0; /* reserved */ \
605 h->extra2 = NULL; /* reserved */ \
606 h->next = NULL; \
608 (gptr)->string_list = h; \
610 h_tail->next = h; \
614 #define NEW_STRING_HANDLE_A(gptr,h,h_tail,name) { \ argument
615 h = (__itt_string_handle*)malloc(sizeof(__itt_string_handle)); \
616 if (h != NULL) { \
619 h->strA = name_copy; \
620 h->strW = NULL; \
621 h->extra1 = 0; /* reserved */ \
622 h->extra2 = NULL; /* reserved */ \
623 h->next = NULL; \
625 (gptr)->string_list = h; \
627 h_tail->next = h; \
631 #define NEW_COUNTER_W(gptr,h,h_tail,name,domain,type) { \ argument
632 h = (__itt_counter_info_t*)malloc(sizeof(__itt_counter_info_t)); \
633 if (h != NULL) { \
634 h->nameA = NULL; \
635 h->nameW = name ? _wcsdup(name) : NULL; \
636 h->domainA = NULL; \
637 h->domainW = name ? _wcsdup(domain) : NULL; \
638 h->type = type; \
639 h->index = 0; \
640 h->next = NULL; \
642 (gptr)->counter_list = h; \
644 h_tail->next = h; \
648 #define NEW_COUNTER_A(gptr,h,h_tail,name,domain,type) { \ argument
649 h = (__itt_counter_info_t*)malloc(sizeof(__itt_counter_info_t)); \
650 if (h != NULL) { \
653 h->nameA = name_copy; \
654 h->nameW = NULL; \
657 h->domainA = domain_copy; \
658 h->domainW = NULL; \
659 h->type = type; \
660 h->index = 0; \
661 h->next = NULL; \
663 (gptr)->counter_list = h; \
665 h_tail->next = h; \
669 #define NEW_HISTOGRAM_W(gptr,h,h_tail,domain,name,x_type,y_type) { \ argument
670 h = (__itt_histogram*)malloc(sizeof(__itt_histogram)); \
671 if (h != NULL) { \
672 h->domain = domain; \
673 h->nameA = NULL; \
674 h->nameW = name ? _wcsdup(name) : NULL; \
675 h->x_type = x_type; \
676 h->y_type = y_type; \
677 h->extra1 = 0; \
678 h->extra2 = NULL; \
679 h->next = NULL; \
681 (gptr)->histogram_list = h; \
683 h_tail->next = h; \
687 #define NEW_HISTOGRAM_A(gptr,h,h_tail,domain,name,x_type,y_type) { \ argument
688 h = (__itt_histogram*)malloc(sizeof(__itt_histogram)); \
689 if (h != NULL) { \
690 h->domain = domain; \
693 h->nameA = name_copy; \
694 h->nameW = NULL; \
695 h->x_type = x_type; \
696 h->y_type = y_type; \
697 h->extra1 = 0; \
698 h->extra2 = NULL; \
699 h->next = NULL; \
701 (gptr)->histogram_list = h; \
703 h_tail->next = h; \
707 #define NEW_COUNTER_METADATA_NUM(gptr,h,h_tail,counter,type,value) { \ argument
708 h = (__itt_counter_metadata*)malloc(sizeof(__itt_counter_metadata)); \
709 if (h != NULL) { \
710 h->counter = counter; \
711 h->type = type; \
712 h->str_valueA = NULL; \
713 h->str_valueW = NULL; \
714 h->value = value; \
715 h->extra1 = 0; \
716 h->extra2 = NULL; \
717 h->next = NULL; \
719 (gptr)->counter_metadata_list = h; \
721 h_tail->next = h; \
725 #define NEW_COUNTER_METADATA_STR_A(gptr,h,h_tail,counter,type,str_valueA) { \ argument
726 h = (__itt_counter_metadata*)malloc(sizeof(__itt_counter_metadata)); \
727 if (h != NULL) { \
728 h->counter = counter; \
729 h->type = type; \
732 h->str_valueA = str_value_copy; \
733 h->str_valueW = NULL; \
734 h->value = 0; \
735 h->extra1 = 0; \
736 h->extra2 = NULL; \
737 h->next = NULL; \
739 (gptr)->counter_metadata_list = h; \
741 h_tail->next = h; \
745 #define NEW_COUNTER_METADATA_STR_W(gptr,h,h_tail,counter,type,str_valueW) { \ argument
746 h = (__itt_counter_metadata*)malloc(sizeof(__itt_counter_metadata)); \
747 if (h != NULL) { \
748 h->counter = counter; \
749 h->type = type; \
750 h->str_valueA = NULL; \
751 h->str_valueW = str_valueW ? _wcsdup(str_valueW) : NULL; \
752 h->value = 0; \
753 h->extra1 = 0; \
754 h->extra2 = NULL; \
755 h->next = NULL; \
757 (gptr)->counter_metadata_list = h; \
759 h_tail->next = h; \