otf.i 31.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118
/*
 This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2010.
 Authors: Andreas Knuepfer, Holger Brunst, Ronny Brendel, Thomas Kriebitzsch
*/

/*
 * no structures will be included, so they are no accessable through python
 *
 * Time- and BytesProgress now have 4 return values. 1. real return value and
 *   and min/cur/max - e.g. [ 1, 0, 100, 100000 ]
 *
 */


%module otf
%{

#include "otf.h"

#include "pyOTF_AuxiliaryFunctions.h"

#include "pyOTF_Wrapper.h"

%}


/* *** conversion from C datatypes to python data types *** */
%apply unsigned char { uint8_t }
%apply signed char { int8_t }
%apply unsigned short { uint16_t }
%apply signed short { int16_t }
%apply unsigned int { uint32_t }
%apply signed int { int32_t }
%apply unsigned long long { uint64_t }
%apply signed long long { int64_t }

%apply unsigned long long *OUTPUT { uint64_t* minimum, uint64_t* current, uint64_t* maximum }; /* progress return values */
%apply char *OUTPUT { char* value };
%apply signed char *OUTPUT { int8_t* value };
%apply unsigned char *OUTPUT { uint8_t* value, uint8_t* len };
%apply signed short *OUTPUT { int16_t* value };
%apply unsigned short *OUTPUT { uint16_t* value };
%apply signed int *OUTPUT { int32_t* value };
%apply unsigned int *OUTPUT { uint32_t* value, uint32_t* key };
%apply signed long long *OUTPUT { int64_t* value };
%apply unsigned long long *OUTPUT { uint64_t* value };
%apply float *OUTPUT { float* value };
%apply double *OUTPUT { double* value };


/* *** other interfaces *** */

/* OTF_Definitions.h */
%include ../otflib/OTF_Definitions.h


/* OTF_FileManager.h */
%ignore OTF_FileManager_guaranteeFile; /* the user shouldn't use this function */
%ignore OTF_FileManager_registerFile; /* the user shouldn't use this function */
%ignore OTF_FileManager_touchFile; /* the user shouldn't use this function */
%ignore OTF_FileManager_suspendFile; /* the user shouldn't use this function */

%include ../otflib/OTF_FileManager.h


/* OTF_Filenames.h */
%include ../otflib/OTF_Filenames.h


/* OTF_HandlerArray.h */
%ignore OTF_HandlerArray_getCopyHandler;

%ignore struct_OTF_HandlerArray;
%ignore OTF_HandlerArray_close;
%ignore OTF_HandlerArray_setHandler;
%ignore OTF_HandlerArray_setFirstHandlerArg;

%ignore OTF_Handler_DefinitionComment;
%ignore OTF_Handler_DefTimerResolution;
%ignore OTF_Handler_DefProcess;
%ignore OTF_Handler_DefProcessGroup;
%ignore OTF_Handler_DefAttributeList;
%ignore OTF_Handler_DefProcessOrGroupAttributes;
%ignore OTF_Handler_DefFunction;
%ignore OTF_Handler_DefFunctionGroup;
%ignore OTF_Handler_DefCollectiveOperation;
%ignore OTF_Handler_DefCounter;
%ignore OTF_Handler_DefCounterGroup;
%ignore OTF_Handler_DefScl;
%ignore OTF_Handler_DefSclFile;
%ignore OTF_Handler_DefCreator;
%ignore OTF_Handler_DefVersion;
%ignore OTF_Handler_DefFile;
%ignore OTF_Handler_DefFileGroup;
%ignore OTF_Handler_DefKeyValue;
%ignore OTF_Handler_NoOp;
%ignore OTF_Handler_Enter;
%ignore OTF_Handler_Leave;
%ignore OTF_Handler_SendMsg;
%ignore OTF_Handler_RecvMsg;
%ignore OTF_Handler_Counter;
%ignore OTF_Handler_CollectiveOperation;
%ignore OTF_Handler_BeginCollectiveOperation;
%ignore OTF_Handler_EndCollectiveOperation;
%ignore OTF_Handler_EventComment;
%ignore OTF_Handler_BeginProcess;
%ignore OTF_Handler_EndProcess;
%ignore OTF_Handler_FileOperation;
%ignore OTF_Handler_BeginFileOperation;
%ignore OTF_Handler_EndFileOperation;
%ignore OTF_Handler_RMAPut;
%ignore OTF_Handler_RMAPutRemoteEnd;
%ignore OTF_Handler_RMAGet;
%ignore OTF_Handler_RMAEnd;
%ignore OTF_Handler_SnapshotComment;
%ignore OTF_Handler_EnterSnapshot;
%ignore OTF_Handler_SendSnapshot;
%ignore OTF_Handler_OpenFileSnapshot;
%ignore OTF_Handler_BeginCollopSnapshot;
%ignore OTF_Handler_BeginFileOpSnapshot;
%ignore OTF_Handler_SummaryComment;
%ignore OTF_Handler_FunctionSummary;
%ignore OTF_Handler_FunctionGroupSummary;
%ignore OTF_Handler_MessageSummary;
%ignore OTF_Handler_CollopSummary;
%ignore OTF_Handler_FileOperationSummary;
%ignore OTF_Handler_FileGroupOperationSummary;
%ignore OTF_Handler_UnknownRecord;
%ignore OTF_Handler_DefMarker;
%ignore OTF_Handler_Marker;


%include ../otflib/OTF_HandlerArray.h


/* OTF_inttypes.h */
%include ../otflib/OTF_inttypes.h


/* OTF_MasterControl.h */
%ignore struct_OTF_MapEntry;
%ignore struct_OTF_Pair;
%ignore struct_OTF_MasterControl;
%ignore OTF_MasterControl_appendList; /* replaced by wrapper */

%include ../otflib/OTF_MasterControl.h

/* OTF_KeyValue.h */
%ignore OTF_KeyValueList_appendByteArray;
%ignore OTF_KeyValueList_getByteArray;
%include ../otflib/OTF_KeyValue.h


/* OTF_Reader.h */

%include ../otflib/OTF_Reader.h


/* OTF_RStream.h */
%ignore struct_OTF_RStream;

%include ../otflib/OTF_RStream.h


/* OTF_Writer.h */
%ignore OTF_Writer_writeOtfVersion;
%ignore OTF_Writer_writeDefProcessGroupKV;
%ignore OTF_Writer_writeDefProcessGroup;
%ignore OTF_Writer_writeDefAttributeListKV;
%ignore OTF_Writer_writeDefAttributeList;


%include ../otflib/OTF_Writer.h


/* OTF_WStream.h */
%ignore struct_OTF_WStream;

%include ../otflib/OTF_WStream.h


/* *** functions that had to be wrapped up *** */
%rename(OTF_COUNTER_VARTYPE_ISINTEGER) pyOTF_COUNTER_VARTYPE_ISINTEGER;
%rename(OTF_COUNTER_VARTYPE_ISSIGNED) pyOTF_COUNTER_VARTYPE_ISSIGNED;
%rename(OTF_COUNTER_VARTYPE_ISUNSIGNED) pyOTF_COUNTER_VARTYPE_ISUNSIGNED;

%rename(OTF_MasterControl_appendList) pyOTF_MasterControl_appendList;
%rename(OTF_HandlerArray_close) pyOTF_HandlerArray_close;
%rename(OTF_HandlerArray_setHandler) pyOTF_HandlerArray_setHandler;
%rename(OTF_HandlerArray_setFirstHandlerArg) pyOTF_HandlerArray_setFirstHandlerArg;

%rename(OTF_KeyValueList_appendByteArray) pyOTF_KeyValueList_appendByteArray;
%rename(OTF_KeyValueList_getByteArray) pyOTF_KeyValueList_getByteArray;

%rename(OTF_Writer_writeDefProcessGroupKV) pyOTF_Writer_writeDefProcessGroupKV;
%rename(OTF_Writer_writeDefProcessGroup) pyOTF_Writer_writeDefProcessGroup;
%rename(OTF_Writer_writeDefAttributeListKV) pyOTF_Writer_writeDefAttributeListKV;
%rename(OTF_Writer_writeDefAttributeList) pyOTF_Writer_writeDefAttributeList;


%ignore pyOTF_FirstHandlerArgument;
/*%ignore pyOTF_KeyValueList;*/

%ignore pyOTF_Handler_DefinitionComment;
%ignore pyOTF_Handler_DefTimerResolution;
%ignore pyOTF_Handler_DefProcess;
%ignore pyOTF_Handler_DefProcessGroup;
%ignore pyOTF_Handler_DefAttributeList;
%ignore pyOTF_Handler_DefProcessOrGroupAttributes;
%ignore pyOTF_Handler_DefFunction;
%ignore pyOTF_Handler_DefFunctionGroup;
%ignore pyOTF_Handler_DefCollectiveOperation;
%ignore pyOTF_Handler_DefCounter;
%ignore pyOTF_Handler_DefCounterGroup;
%ignore pyOTF_Handler_DefScl;
%ignore pyOTF_Handler_DefSclFile;
%ignore pyOTF_Handler_DefCreator;
%ignore pyOTF_Handler_DefVersion;
%ignore pyOTF_Handler_DefFile;
%ignore pyOTF_Handler_DefFileGroup;
%ignore pyOTF_Handler_DefKeyValue;
%ignore pyOTF_Handler_NoOp;
%ignore pyOTF_Handler_Enter;
%ignore pyOTF_Handler_Leave;
%ignore pyOTF_Handler_SendMsg;
%ignore pyOTF_Handler_RecvMsg;
%ignore pyOTF_Handler_Counter;
%ignore pyOTF_Handler_CollectiveOperation;
%ignore pyOTF_Handler_BeginCollectiveOperation;
%ignore pyOTF_Handler_EndCollectiveOperation;
%ignore pyOTF_Handler_EventComment;
%ignore pyOTF_Handler_BeginProcess;
%ignore pyOTF_Handler_EndProcess;
%ignore pyOTF_Handler_FileOperation;
%ignore pyOTF_Handler_BeginFileOperation;
%ignore pyOTF_Handler_EndFileOperation;
%ignore pyOTF_Handler_RMAPut;
%ignore pyOTF_Handler_RMAPutRemoteEnd;
%ignore pyOTF_Handler_RMAGet;
%ignore pyOTF_Handler_RMAEnd;
%ignore pyOTF_Handler_SnapshotComment;
%ignore pyOTF_Handler_EnterSnapshot;
%ignore pyOTF_Handler_SendSnapshot;
%ignore pyOTF_Handler_OpenFileSnapshot;
%ignore pyOTF_Handler_BeginCollopSnapshot;
%ignore pyOTF_Handler_BeginFileOpSnapshot;
%ignore pyOTF_Handler_SummaryComment;
%ignore pyOTF_Handler_FunctionSummary;
%ignore pyOTF_Handler_FunctionGroupSummary;
%ignore pyOTF_Handler_MessageSummary;
%ignore pyOTF_Handler_CollopSummary;
%ignore pyOTF_Handler_FileOperationSummary;
%ignore pyOTF_Handler_FileGroupOperationSummary;
%ignore pyOTF_Handler_UnknownRecord;
%ignore pyOTF_Handler_DefMarker;
%ignore pyOTF_Handler_Marker;


%include pyOTF_Wrapper.h


/* OTF_Copyhandler.h */
%pythoncode %{

def OTF_CopyHandler_DefinitionComment( writer , stream, 
		comment, pylist):

	if OTF_Writer_writeDefinitionCommentKV( writer , stream, 
		comment, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefTimerResolution( writer , stream, 
		ticksPerSecond, pylist):

	if OTF_Writer_writeDefTimerResolutionKV( writer , stream, 
		ticksPerSecond, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefProcess( writer , stream, 
		process, name, parent, 
		pylist):

	if OTF_Writer_writeDefProcessKV( writer , stream, 
		process, name, parent, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefProcessGroup( writer , stream, 
		procGroup, name, numberOfProcs, 
		pyprocs, pylist):

	if OTF_Writer_writeDefProcessGroupKV( writer , stream, 
		procGroup, name, numberOfProcs, 
		pyprocs, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefAttributeList( writer , stream, 
		attr_token, num, pyarray, 
		pylist):

	if OTF_Writer_writeDefAttributeListKV( writer , stream, 
		attr_token, num, pyarray, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefProcessOrGroupAttributes( writer , stream, 
		proc_token, attr_token, pylist):

	if OTF_Writer_writeDefProcessOrGroupAttributesKV( writer , stream, 
		proc_token, attr_token, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefFunction( writer , stream, 
		func, name, funcGroup, 
		source, pylist):

	if OTF_Writer_writeDefFunctionKV( writer , stream, 
		func, name, funcGroup, 
		source, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefFunctionGroup( writer , stream, 
		funcGroup, name, pylist):

	if OTF_Writer_writeDefFunctionGroupKV( writer , stream, 
		funcGroup, name, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefCollectiveOperation( writer , stream, 
		collOp, name, type, 
		pylist):

	if OTF_Writer_writeDefCollectiveOperationKV( writer , stream, 
		collOp, name, type, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefCounter( writer , stream, 
		counter, name, properties, 
		counterGroup, unit, pylist):

	if OTF_Writer_writeDefCounterKV( writer , stream, 
		counter, name, properties, 
		counterGroup, unit, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefCounterGroup( writer , stream, 
		counterGroup, name, pylist):

	if OTF_Writer_writeDefCounterGroupKV( writer , stream, 
		counterGroup, name, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefScl( writer , stream, 
		source, sourceFile, line, 
		pylist):

	if OTF_Writer_writeDefSclKV( writer , stream, 
		source, sourceFile, line, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefSclFile( writer , stream, 
		sourceFile, name, pylist):

	if OTF_Writer_writeDefSclFileKV( writer , stream, 
		sourceFile, name, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefCreator( writer , stream, 
		creator, pylist):

	if OTF_Writer_writeDefCreatorKV( writer , stream, 
		creator, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefVersion( writer , stream, 
		major, minor, sub, 
		string, pylist):

	#version is writen implicitly

	return OTF_RETURN_OK


def OTF_CopyHandler_DefFile( writer , stream, 
		token, name, group, 
		pylist):

	if OTF_Writer_writeDefFileKV( writer , stream, 
		token, name, group, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefFileGroup( writer , stream, 
		token, name, pylist):

	if OTF_Writer_writeDefFileGroupKV( writer , stream, 
		token, name, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefKeyValue( writer , stream, 
		key, type, name, 
		description, pylist):

	if OTF_Writer_writeDefKeyValueKV( writer , stream, 
		key, type, name, 
		description, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_NoOp( writer , time, 
		process, pylist):

	if OTF_Writer_writeNoOpKV( writer , time, 
		process, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_Enter( writer , time, 
		function, process, source, 
		pylist):

	if OTF_Writer_writeEnterKV( writer , time, 
		function, process, source, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_Leave( writer , time, 
		function, process, source, 
		pylist):

	if OTF_Writer_writeLeaveKV( writer , time, 
		function, process, source, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_SendMsg( writer , time, 
		sender, receiver, group, 
		type, length, source, 
		pylist):

	if OTF_Writer_writeSendMsgKV( writer , time, 
		sender, receiver, group, 
		type, length, source, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_RecvMsg( writer , time, 
		recvProc, sendProc, group, 
		type, length, source, 
		pylist):

	if OTF_Writer_writeRecvMsgKV( writer , time, 
		recvProc, sendProc, group, 
		type, length, source, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_Counter( writer , time, 
		process, counter, value, 
		pylist):

	if OTF_Writer_writeCounterKV( writer , time, 
		process, counter, value, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_CollectiveOperation( writer , time, 
		process, collective, procGroup, 
		rootProc, sent, received, 
		duration, source, pylist):

	if OTF_Writer_writeCollectiveOperationKV( writer , time, 
		process, collective, procGroup, 
		rootProc, sent, received, 
		duration, source, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_BeginCollectiveOperation( writer , time, 
		process, collOp, matchingId, 
		procGroup, rootProc, sent, 
		received, scltoken, pylist):

	if OTF_Writer_writeBeginCollectiveOperationKV( writer , time, 
		process, collOp, matchingId, 
		procGroup, rootProc, sent, 
		received, scltoken, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_EndCollectiveOperation( writer , time, 
		process, matchingId, pylist):

	if OTF_Writer_writeEndCollectiveOperationKV( writer , time, 
		process, matchingId, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_EventComment( writer , time, 
		process, comment, pylist):

	if OTF_Writer_writeEventCommentKV( writer , time, 
		process, comment, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_BeginProcess( writer , time, 
		process, pylist):

	if OTF_Writer_writeBeginProcessKV( writer , time, 
		process, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_EndProcess( writer , time, 
		process, pylist):

	if OTF_Writer_writeEndProcessKV( writer , time, 
		process, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_FileOperation( writer , time, 
		fileid, process, handleid, 
		operation, bytes, duration, 
		source, pylist):

	if OTF_Writer_writeFileOperationKV( writer , time, 
		fileid, process, handleid, 
		operation, bytes, duration, 
		source, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_BeginFileOperation( writer , time, 
		process, matchingId, scltoken, 
		pylist):

	if OTF_Writer_writeBeginFileOperationKV( writer , time, 
		process, matchingId, scltoken, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_EndFileOperation( writer , time, 
		process, fileid, matchingId, 
		handleId, operation, bytes, 
		scltoken, pylist):

	if OTF_Writer_writeEndFileOperationKV( writer , time, 
		process, fileid, matchingId, 
		handleId, operation, bytes, 
		scltoken, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_RMAPut( writer , time, 
		process, origin, target, 
		communicator, tag, bytes, 
		source, pylist):

	if OTF_Writer_writeRMAPutKV( writer , time, 
		process, origin, target, 
		communicator, tag, bytes, 
		source, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_RMAPutRemoteEnd( writer , time, 
		process, origin, target, 
		communicator, tag, bytes, 
		source, pylist):

	if OTF_Writer_writeRMAPutRemoteEndKV( writer , time, 
		process, origin, target, 
		communicator, tag, bytes, 
		source, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_RMAGet( writer , time, 
		process, origin, target, 
		communicator, tag, bytes, 
		source, pylist):

	if OTF_Writer_writeRMAGetKV( writer , time, 
		process, origin, target, 
		communicator, tag, bytes, 
		source, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_RMAEnd( writer , time, 
		process, remote, communicator, 
		tag, source, pylist):

	if OTF_Writer_writeRMAEndKV( writer , time, 
		process, remote, communicator, 
		tag, source, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_SnapshotComment( writer , time, 
		process, comment, pylist):

	if OTF_Writer_writeSnapshotCommentKV( writer , time, 
		process, comment, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_EnterSnapshot( writer , time, 
		originaltime, function, process, 
		source, pylist):

	if OTF_Writer_writeEnterSnapshotKV( writer , time, 
		originaltime, function, process, 
		source, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_SendSnapshot( writer , time, 
		originaltime, sender, receiver, 
		procGroup, tag, length, 
		source, pylist):

	if OTF_Writer_writeSendSnapshotKV( writer , time, 
		originaltime, sender, receiver, 
		procGroup, tag, length, 
		source, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_OpenFileSnapshot( writer , time, 
		originaltime, fileid, process, 
		handleid, source, pylist):

	if OTF_Writer_writeOpenFileSnapshotKV( writer , time, 
		originaltime, fileid, process, 
		handleid, source, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_BeginCollopSnapshot( writer , time, 
		originaltime, process, collOp, 
		matchingId, procGroup, rootProc, 
		sent, received, scltoken, 
		pylist):

	if OTF_Writer_writeBeginCollopSnapshotKV( writer , time, 
		originaltime, process, collOp, 
		matchingId, procGroup, rootProc, 
		sent, received, scltoken, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_BeginFileOpSnapshot( writer , time, 
		originaltime, process, matchingId, 
		scltoken, pylist):

	if OTF_Writer_writeBeginFileOpSnapshotKV( writer , time, 
		originaltime, process, matchingId, 
		scltoken, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_SummaryComment( writer , time, 
		process, comment, pylist):

	if OTF_Writer_writeSummaryCommentKV( writer , time, 
		process, comment, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_FunctionSummary( writer , time, 
		function, process, invocations, 
		exclTime, inclTime, pylist):

	if OTF_Writer_writeFunctionSummaryKV( writer , time, 
		function, process, invocations, 
		exclTime, inclTime, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_FunctionGroupSummary( writer , time, 
		funcGroup, process, invocations, 
		exclTime, inclTime, pylist):

	if OTF_Writer_writeFunctionGroupSummaryKV( writer , time, 
		funcGroup, process, invocations, 
		exclTime, inclTime, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_MessageSummary( writer , time, 
		process, peer, comm, 
		type, sentNumber, receivedNumber, 
		sentBytes, receivedBytes, pylist):

	if OTF_Writer_writeMessageSummaryKV( writer , time, 
		process, peer, comm, 
		type, sentNumber, receivedNumber, 
		sentBytes, receivedBytes, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_CollopSummary( writer , time, 
		process, comm, collective, 
		sentNumber, receivedNumber, sentBytes, 
		receivedBytes, pylist):

	if OTF_Writer_writeCollopSummaryKV( writer , time, 
		process, comm, collective, 
		sentNumber, receivedNumber, sentBytes, 
		receivedBytes, pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_FileOperationSummary( writer , time, 
		fileid, process, nopen, 
		nclose, nread, nwrite, 
		nseek, bytesread, byteswrite, 
		pylist):

	if OTF_Writer_writeFileOperationSummaryKV( writer , time, 
		fileid, process, nopen, 
		nclose, nread, nwrite, 
		nseek, bytesread, byteswrite, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_FileGroupOperationSummary( writer , time, 
		groupid, process, nopen, 
		nclose, nread, nwrite, 
		nseek, bytesread, byteswrite, 
		pylist):

	if OTF_Writer_writeFileGroupOperationSummaryKV( writer , time, 
		groupid, process, nopen, 
		nclose, nread, nwrite, 
		nseek, bytesread, byteswrite, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_UnknownRecord( writer , time, 
		process, record):

	if OTF_Writer_writeUnknownRecord( writer , time, 
		process, record ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_DefMarker( writer , stream, 
		token, name, type, 
		pylist):

	if OTF_Writer_writeDefMarkerKV( writer , stream, 
		token, name, type, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_CopyHandler_Marker( writer , time, 
		process, token, text, 
		pylist):

	if OTF_Writer_writeMarkerKV( writer , time, 
		process, token, text, 
		pylist ) == 0 :

		return OTF_RETURN_ABORT
	else :
		return OTF_RETURN_OK


def OTF_HandlerArray_getCopyHandler( handlers, writer ):

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefinitionComment, OTF_DEFINITIONCOMMENT_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFINITIONCOMMENT_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefTimerResolution, OTF_DEFTIMERRESOLUTION_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFTIMERRESOLUTION_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefProcess, OTF_DEFPROCESS_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFPROCESS_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefProcessGroup, OTF_DEFPROCESSGROUP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFPROCESSGROUP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefAttributeList, OTF_DEFATTRLIST_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFATTRLIST_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefProcessOrGroupAttributes, OTF_DEFPROCESSORGROUPATTR_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFPROCESSORGROUPATTR_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefFunction, OTF_DEFFUNCTION_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFFUNCTION_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefFunctionGroup, OTF_DEFFUNCTIONGROUP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFFUNCTIONGROUP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefCollectiveOperation, OTF_DEFCOLLOP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFCOLLOP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefCounter, OTF_DEFCOUNTER_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFCOUNTER_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefCounterGroup, OTF_DEFCOUNTERGROUP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFCOUNTERGROUP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefScl, OTF_DEFSCL_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFSCL_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefSclFile, OTF_DEFSCLFILE_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFSCLFILE_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefCreator, OTF_DEFCREATOR_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFCREATOR_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefVersion, OTF_DEFVERSION_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFVERSION_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefFile, OTF_DEFFILE_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFFILE_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefFileGroup, OTF_DEFFILEGROUP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFFILEGROUP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefKeyValue, OTF_DEFKEYVALUE_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFKEYVALUE_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_NoOp, OTF_NOOP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_NOOP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_Enter, OTF_ENTER_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_ENTER_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_Leave, OTF_LEAVE_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_LEAVE_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_SendMsg, OTF_SEND_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_SEND_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_RecvMsg, OTF_RECEIVE_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_RECEIVE_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_Counter, OTF_COUNTER_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_COUNTER_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_CollectiveOperation, OTF_COLLOP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_COLLOP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_BeginCollectiveOperation, OTF_BEGINCOLLOP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_BEGINCOLLOP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_EndCollectiveOperation, OTF_ENDCOLLOP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_ENDCOLLOP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_EventComment, OTF_EVENTCOMMENT_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_EVENTCOMMENT_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_BeginProcess, OTF_BEGINPROCESS_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_BEGINPROCESS_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_EndProcess, OTF_ENDPROCESS_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_ENDPROCESS_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_FileOperation, OTF_FILEOPERATION_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_FILEOPERATION_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_BeginFileOperation, OTF_BEGINFILEOP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_BEGINFILEOP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_EndFileOperation, OTF_ENDFILEOP_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_ENDFILEOP_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_RMAPut, OTF_RMAPUT_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_RMAPUT_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_RMAPutRemoteEnd, OTF_RMAPUTRE_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_RMAPUTRE_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_RMAGet, OTF_RMAGET_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_RMAGET_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_RMAEnd, OTF_RMAEND_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_RMAEND_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_SnapshotComment, OTF_SNAPSHOTCOMMENT_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_SNAPSHOTCOMMENT_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_EnterSnapshot, OTF_ENTERSNAPSHOT_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_ENTERSNAPSHOT_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_SendSnapshot, OTF_SENDSNAPSHOT_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_SENDSNAPSHOT_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_OpenFileSnapshot, OTF_OPENFILESNAPSHOT_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_OPENFILESNAPSHOT_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_BeginCollopSnapshot, OTF_BEGINCOLLOPSNAPSHOT_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_BEGINCOLLOPSNAPSHOT_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_BeginFileOpSnapshot, OTF_BEGINFILEOPSNAPSHOT_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_BEGINFILEOPSNAPSHOT_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_SummaryComment, OTF_SUMMARYCOMMENT_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_SUMMARYCOMMENT_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_FunctionSummary, OTF_FUNCTIONSUMMARY_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_FUNCTIONSUMMARY_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_FunctionGroupSummary, OTF_FUNCTIONGROUPSUMMARY_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_FUNCTIONGROUPSUMMARY_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_MessageSummary, OTF_MESSAGESUMMARY_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_MESSAGESUMMARY_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_CollopSummary, OTF_COLLOPSUMMARY_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_COLLOPSUMMARY_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_FileOperationSummary, OTF_FILEOPERATIONSUMMARY_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_FILEOPERATIONSUMMARY_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_FileGroupOperationSummary, OTF_FILEGROUPOPERATIONSUMMARY_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_FILEGROUPOPERATIONSUMMARY_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_UnknownRecord, OTF_UNKNOWN_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_UNKNOWN_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_DefMarker, OTF_DEFMARKER_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_DEFMARKER_RECORD  )

	OTF_HandlerArray_setHandler( handlers, OTF_CopyHandler_Marker, OTF_MARKER_RECORD  )
	OTF_HandlerArray_setFirstHandlerArg( handlers, writer, OTF_MARKER_RECORD  )

	return 1


%}