aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2020-01-24 22:53:40 +0100
committerAndreas Schneider <asn@cryptomilk.org>2020-01-24 22:53:40 +0100
commitebc95857d0108c2644c4ec89279092abdf8b7bfe (patch)
treebcbc5959777c6ea30314089a31c66c2625309526
parent981a500f2cedd4b6fd26c9557f8987da77afdc71 (diff)
downloadcmocka-ebc95857d0108c2644c4ec89279092abdf8b7bfe.tar.gz
cmocka-ebc95857d0108c2644c4ec89279092abdf8b7bfe.tar.xz
cmocka-ebc95857d0108c2644c4ec89279092abdf8b7bfe.zip
Fixes
-rw-r--r--img/Original/unit_test_wrap_read_proc_uptime.odgbin14351 -> 14487 bytes
-rw-r--r--img/unit_test_wrap_read_proc_uptime.svg45
-rw-r--r--slides.md28
3 files changed, 31 insertions, 42 deletions
diff --git a/img/Original/unit_test_wrap_read_proc_uptime.odg b/img/Original/unit_test_wrap_read_proc_uptime.odg
index 125584b..865a01d 100644
--- a/img/Original/unit_test_wrap_read_proc_uptime.odg
+++ b/img/Original/unit_test_wrap_read_proc_uptime.odg
Binary files differ
diff --git a/img/unit_test_wrap_read_proc_uptime.svg b/img/unit_test_wrap_read_proc_uptime.svg
index 9df1b8b..b362dbf 100644
--- a/img/unit_test_wrap_read_proc_uptime.svg
+++ b/img/unit_test_wrap_read_proc_uptime.svg
@@ -11,28 +11,6 @@
</defs>
<defs>
<font id="EmbeddedFont_1" horiz-adv-x="2048">
- <font-face font-family="FreeMono embedded" units-per-em="2048" font-weight="normal" font-style="normal" ascent="1640" descent="397"/>
- <missing-glyph horiz-adv-x="2048" d="M 0,0 L 2047,0 2047,2047 0,2047 0,0 Z"/>
- <glyph unicode="u" horiz-adv-x="1033" d="M 899,0 L 899,135 C 843,79 784,37 721,9 658,-19 593,-33 526,-33 444,-33 379,-8 329,41 279,90 254,155 254,235 L 254,770 143,770 C 107,770 88,784 88,813 88,840 107,854 143,854 L 338,854 338,235 C 338,183 356,140 392,104 428,69 472,51 524,51 661,51 786,113 899,236 L 899,770 748,770 C 709,770 690,784 690,813 690,840 709,854 748,854 L 983,854 983,84 1053,84 C 1090,84 1108,70 1108,43 1108,14 1090,0 1053,0 L 899,0 Z"/>
- <glyph unicode="t" horiz-adv-x="954" d="M 381,854 L 831,854 C 868,854 887,840 887,813 887,784 868,770 831,770 L 381,770 381,223 C 381,171 401,130 442,98 483,67 539,51 610,51 668,51 729,59 794,75 858,90 911,110 950,133 964,141 975,145 983,145 993,145 1001,141 1010,133 1018,125 1022,115 1022,104 1022,74 976,44 884,13 792,-18 702,-33 614,-33 517,-33 440,-10 383,36 326,81 297,142 297,219 L 297,770 145,770 C 107,770 88,784 88,813 88,840 107,854 145,854 L 297,854 297,1098 C 297,1135 311,1153 340,1153 367,1153 381,1135 381,1098 L 381,854 Z"/>
- <glyph unicode="s" horiz-adv-x="848" d="M 926,240 C 926,290 902,329 856,356 810,384 754,402 688,412 623,421 557,431 492,442 426,453 370,476 324,510 277,544 254,591 254,651 254,718 287,774 353,817 420,861 503,883 604,883 720,883 814,852 885,789 L 885,797 C 885,835 899,854 928,854 955,854 969,835 969,797 L 969,655 C 969,618 955,600 928,600 903,600 889,616 885,647 879,694 852,731 803,758 754,785 690,799 612,799 536,799 472,784 422,755 371,726 346,689 346,645 346,604 369,573 416,551 462,529 518,514 584,505 649,496 715,485 780,472 846,459 902,433 948,394 995,355 1018,303 1018,238 1018,186 1000,139 966,98 931,57 883,25 822,2 762,-21 693,-33 616,-33 485,-33 378,4 295,78 L 295,55 C 295,48 294,42 293,36 292,30 290,24 288,19 286,15 283,11 280,8 276,5 272,3 268,2 264,1 259,0 254,0 225,0 211,18 211,55 L 211,225 C 211,262 225,281 254,281 281,281 295,266 295,236 L 295,221 C 295,175 326,135 387,101 449,68 523,51 610,51 700,51 776,69 836,104 896,140 926,185 926,240 Z"/>
- <glyph unicode="r" horiz-adv-x="953" d="M 1065,704 C 1058,704 1037,719 1001,748 966,777 931,791 897,791 851,791 802,775 753,742 703,709 621,641 508,537 L 508,84 875,84 C 911,84 930,70 930,41 930,36 929,31 928,27 926,23 924,19 921,15 917,12 913,9 909,7 905,5 900,3 894,2 888,1 881,0 875,0 L 227,0 C 190,0 172,14 172,43 172,70 190,84 227,84 L 424,84 424,770 270,770 C 233,770 215,784 215,813 215,840 233,854 270,854 L 508,854 508,645 C 602,731 679,791 737,825 796,858 851,875 903,875 958,875 1006,859 1047,826 1087,793 1108,767 1108,748 1108,735 1104,725 1096,717 1087,709 1077,704 1065,704 Z"/>
- <glyph unicode="n" horiz-adv-x="1006" d="M 653,799 C 629,799 605,797 583,792 560,787 539,780 519,769 499,759 483,750 469,741 455,732 441,719 425,703 409,686 398,674 392,667 386,659 376,647 364,630 351,613 343,604 342,602 L 342,84 434,84 C 471,84 489,70 489,43 489,14 471,0 434,0 L 166,0 C 128,0 109,14 109,43 109,70 128,84 166,84 L 258,84 258,770 188,770 C 152,770 133,784 133,813 133,840 152,854 188,854 L 342,854 342,713 C 401,778 453,823 498,847 543,871 597,883 662,883 753,883 829,856 891,803 952,750 983,684 983,604 L 983,84 1053,84 C 1090,84 1108,70 1108,43 1108,14 1090,0 1053,0 L 829,0 C 793,0 774,14 774,43 774,70 793,84 829,84 L 899,84 899,590 C 899,649 877,698 833,739 788,779 728,799 653,799 Z"/>
- <glyph unicode="m" horiz-adv-x="1218" d="M 229,854 L 229,747 C 264,797 297,832 330,852 362,873 401,883 444,883 532,883 598,834 643,737 718,834 795,883 875,883 933,883 984,861 1026,817 1068,774 1090,722 1090,662 L 1090,84 1159,84 C 1196,84 1214,70 1214,43 1214,14 1196,0 1159,0 L 1008,0 1008,654 C 1008,692 994,726 967,755 939,784 908,799 872,799 804,799 733,743 659,631 L 659,84 729,84 C 766,84 784,70 784,43 784,14 766,0 729,0 L 578,0 578,647 C 578,687 564,722 538,753 511,784 480,799 444,799 376,799 304,743 229,631 L 229,84 299,84 C 336,84 354,70 354,43 354,38 354,32 352,28 351,23 349,19 345,15 342,12 338,9 334,7 330,5 325,3 318,2 312,1 306,0 299,0 L 76,0 C 40,0 23,14 23,43 23,70 41,84 78,84 L 147,84 147,770 78,770 C 41,770 23,784 23,813 23,840 41,854 78,854 L 229,854 Z"/>
- <glyph unicode="l" horiz-adv-x="874" d="M 655,1237 L 655,84 983,84 C 1021,84 1040,70 1040,43 1040,38 1040,32 1038,28 1037,23 1035,19 1031,15 1028,12 1024,9 1019,7 1014,5 1009,3 1003,2 996,1 990,0 983,0 L 244,0 C 207,0 188,14 188,43 188,70 207,84 244,84 L 571,84 571,1153 332,1153 C 295,1153 276,1167 276,1196 276,1223 295,1237 332,1237 L 655,1237 Z"/>
- <glyph unicode="i" horiz-adv-x="874" d="M 655,854 L 655,84 983,84 C 1021,84 1040,70 1040,43 1040,38 1040,32 1038,28 1037,23 1035,19 1031,15 1028,12 1024,9 1019,7 1014,5 1009,3 1003,2 996,1 990,0 983,0 L 244,0 C 207,0 188,14 188,43 188,70 207,84 244,84 L 571,84 571,770 330,770 C 293,770 274,784 274,813 274,840 293,854 330,854 L 655,854 Z M 651,1278 L 651,1065 530,1065 530,1278 651,1278 Z"/>
- <glyph unicode="e" horiz-adv-x="980" d="M 1065,407 L 213,407 C 223,336 246,274 284,220 321,166 370,124 429,95 488,66 554,51 627,51 691,51 756,61 823,82 890,102 944,129 985,161 999,171 1010,176 1018,176 1029,176 1038,172 1046,164 1053,155 1057,146 1057,135 1057,99 1008,63 910,24 813,-14 717,-33 625,-33 535,-33 451,-12 375,31 298,73 238,131 195,204 151,277 129,357 129,444 129,569 174,673 264,757 354,841 465,883 596,883 734,883 847,840 934,753 1021,666 1065,551 1065,407 Z M 213,491 L 979,491 C 963,584 920,659 850,715 780,771 696,799 596,799 496,799 412,771 344,716 276,660 232,585 213,491 Z"/>
- <glyph unicode="c" horiz-adv-x="953" d="M 1096,180 C 1096,168 1084,150 1061,128 1038,105 1007,82 970,57 932,33 883,11 821,-6 760,-24 697,-33 633,-33 499,-33 389,9 302,94 215,179 172,287 172,418 172,553 216,664 305,752 394,839 507,883 643,883 770,883 877,845 963,770 L 963,797 C 963,835 977,854 1006,854 1033,854 1047,835 1047,797 L 1047,610 C 1047,573 1033,555 1006,555 981,555 967,571 963,604 958,659 925,705 861,743 798,780 723,799 637,799 524,799 432,764 361,693 291,623 256,532 256,420 256,312 292,223 362,154 433,86 525,51 637,51 786,51 913,100 1020,199 1034,212 1046,219 1057,219 1068,219 1077,215 1084,208 1092,200 1096,191 1096,180 Z"/>
- <glyph unicode="a" horiz-adv-x="980" d="M 256,774 C 256,804 302,830 395,851 488,872 560,883 612,883 708,883 787,859 849,811 911,764 942,703 942,631 L 942,84 1053,84 C 1090,84 1108,70 1108,43 1108,14 1090,0 1053,0 L 858,0 858,137 C 795,78 733,35 670,8 607,-19 539,-33 467,-33 371,-33 294,-9 236,40 177,88 147,151 147,229 147,318 187,390 267,445 347,500 451,528 580,528 660,528 753,514 858,485 L 858,631 C 858,681 835,722 788,753 742,784 681,799 606,799 543,799 479,788 412,766 345,744 306,733 295,733 284,733 275,737 267,746 260,754 256,763 256,774 Z M 858,229 L 858,413 C 776,434 689,444 596,444 488,444 400,424 333,384 265,343 231,291 231,227 231,174 253,131 295,99 337,67 394,51 465,51 537,51 604,65 665,92 725,119 790,165 858,229 Z"/>
- <glyph unicode="2" horiz-adv-x="821" d="M 213,963 C 213,1024 250,1090 325,1161 399,1231 489,1266 594,1266 694,1266 781,1230 857,1159 933,1088 971,1007 971,914 971,852 953,795 916,741 880,687 800,602 676,486 L 252,90 252,84 895,84 895,158 C 895,195 909,213 938,213 965,213 979,195 979,158 L 979,0 172,0 172,123 655,578 C 751,672 813,740 843,783 872,825 887,869 887,916 887,987 857,1049 799,1102 740,1155 672,1182 594,1182 524,1182 461,1162 404,1121 348,1080 311,1028 295,967 287,940 272,926 252,926 242,926 233,930 225,937 217,945 213,953 213,963 Z"/>
- <glyph unicode="1" horiz-adv-x="794" d="M 657,1254 L 657,84 942,84 C 979,84 997,70 997,43 997,14 979,0 942,0 L 289,0 C 251,0 231,14 231,43 231,70 251,84 289,84 L 573,84 573,1143 342,912 C 331,901 317,896 299,896 288,896 279,900 271,909 264,918 260,929 260,943 260,955 268,969 283,984 L 553,1254 657,1254 Z"/>
- <glyph unicode=")" horiz-adv-x="345" d="M 301,-214 C 301,-198 312,-171 334,-131 356,-90 380,-46 407,3 433,51 457,120 479,209 501,297 512,392 512,491 512,702 444,929 307,1173 303,1183 301,1191 301,1196 301,1207 306,1217 314,1225 323,1233 333,1237 344,1237 366,1237 400,1200 445,1125 491,1051 535,952 575,829 616,706 637,592 637,485 637,384 616,273 574,152 533,31 489,-67 442,-142 396,-217 363,-254 342,-255 331,-254 322,-250 313,-242 305,-234 301,-224 301,-214 Z"/>
- <glyph unicode="(" horiz-adv-x="372" d="M 602,497 C 602,598 623,709 665,830 706,951 750,1049 797,1124 843,1199 877,1237 897,1237 908,1237 918,1233 926,1225 934,1217 938,1207 938,1196 938,1181 927,1153 905,1113 883,1073 859,1028 833,980 806,931 782,863 760,774 738,685 727,591 727,491 727,282 795,55 932,-191 936,-201 938,-208 938,-214 938,-224 934,-234 925,-242 916,-250 906,-254 895,-255 873,-254 839,-217 794,-143 748,-68 705,30 664,153 623,276 602,391 602,497 Z"/>
- <glyph unicode=" " horiz-adv-x="1217"/>
- </font>
- </defs>
- <defs>
- <font id="EmbeddedFont_2" horiz-adv-x="2048">
<font-face font-family="Liberation Sans embedded" units-per-em="2048" font-weight="normal" font-style="normal" ascent="1852" descent="423"/>
<missing-glyph horiz-adv-x="2048" d="M 0,0 L 2047,0 2047,2047 0,2047 0,0 Z"/>
<glyph unicode="t" horiz-adv-x="531" d="M 554,8 C 495,-8 434,-16 372,-16 228,-16 156,66 156,229 L 156,951 31,951 31,1082 163,1082 216,1324 336,1324 336,1082 536,1082 536,951 336,951 336,268 C 336,216 345,180 362,159 379,138 408,127 450,127 474,127 509,132 554,141 L 554,8 Z"/>
@@ -47,25 +25,35 @@
</font>
</defs>
<defs>
- <font id="EmbeddedFont_3" horiz-adv-x="2048">
+ <font id="EmbeddedFont_2" horiz-adv-x="2048">
<font-face font-family="Source Code Pro embedded" units-per-em="2048" font-weight="normal" font-style="normal" ascent="2011" descent="556"/>
<missing-glyph horiz-adv-x="2048" d="M 0,0 L 2047,0 2047,2047 0,2047 0,0 Z"/>
+ <glyph unicode="y" horiz-adv-x="1060" d="M 268,-428 C 494,-428 616,-279 690,-82 L 1128,995 969,995 752,444 C 719,354 680,250 645,156 L 637,156 C 596,252 553,356 514,444 L 270,995 100,995 565,-2 535,-76 C 485,-199 401,-289 262,-289 231,-289 199,-283 172,-274 L 137,-408 C 172,-420 221,-428 268,-428 Z"/>
<glyph unicode="w" horiz-adv-x="1218" d="M 233,0 L 451,0 561,475 C 578,545 594,643 610,770 L 619,770 C 635,643 651,545 668,475 L 782,0 999,0 1212,995 1057,995 938,418 C 920,324 909,238 893,143 L 885,143 C 872,238 846,324 823,418 L 705,934 537,934 414,418 C 391,326 369,238 356,143 L 348,143 C 336,238 322,324 303,418 L 184,995 16,995 233,0 Z"/>
+ <glyph unicode="v" horiz-adv-x="1060" d="M 524,0 L 713,0 1124,995 963,995 733,430 C 692,330 659,231 625,137 L 616,137 C 582,231 545,330 504,430 L 274,995 104,995 524,0 Z"/>
<glyph unicode="u" horiz-adv-x="901" d="M 504,-25 C 657,-25 774,57 875,174 L 883,174 897,0 1034,0 1034,995 866,995 866,305 C 756,176 672,121 557,121 391,121 328,211 328,399 L 328,995 158,995 158,377 C 158,115 266,-25 504,-25 Z"/>
<glyph unicode="t" horiz-adv-x="1007" d="M 807,-25 C 932,-25 1028,2 1118,35 L 1081,158 C 1010,131 936,113 842,113 649,113 590,207 590,385 L 590,858 1079,858 1079,995 590,995 590,1315 451,1315 428,995 141,985 141,858 422,858 422,387 C 422,141 516,-25 807,-25 Z"/>
+ <glyph unicode="s" horiz-adv-x="954" d="M 635,-25 C 920,-25 1077,111 1077,272 1077,424 997,508 666,580 463,623 377,659 377,745 377,821 436,889 606,889 733,889 848,848 940,784 L 1022,893 C 924,961 772,1020 621,1020 348,1020 207,897 207,737 207,588 338,500 596,446 866,391 907,338 907,262 907,178 823,107 655,107 471,107 338,160 223,242 L 145,131 C 266,47 440,-25 635,-25 Z"/>
<glyph unicode="r" horiz-adv-x="821" d="M 299,0 L 467,0 467,584 C 586,791 727,868 877,868 954,868 991,858 1061,834 L 1100,979 C 1038,1010 977,1020 903,1020 719,1020 563,920 459,760 L 453,760 438,995 299,995 299,0 Z"/>
<glyph unicode="p" horiz-adv-x="927" d="M 190,-420 L 358,-420 358,-84 350,104 356,104 C 444,23 561,-25 653,-25 893,-25 1106,174 1106,512 1106,821 963,1020 694,1020 571,1020 442,956 350,868 L 344,868 330,995 190,995 190,-420 Z M 625,117 C 557,117 453,150 358,233 L 358,729 C 461,831 563,879 651,879 850,879 932,731 932,512 932,266 803,117 625,117 Z"/>
<glyph unicode="o" horiz-adv-x="1006" d="M 614,-25 C 877,-25 1106,166 1106,496 1106,829 877,1020 614,1020 352,1020 123,829 123,496 123,166 352,-25 614,-25 Z M 614,115 C 424,115 297,268 297,496 297,725 424,881 614,881 805,881 932,725 932,496 932,268 805,115 614,115 Z"/>
+ <glyph unicode="n" horiz-adv-x="901" d="M 190,0 L 358,0 358,694 C 475,815 555,875 674,875 838,875 903,784 903,596 L 903,0 1071,0 1071,619 C 1071,881 963,1020 727,1020 571,1020 457,936 352,825 L 344,825 330,995 190,995 190,0 Z"/>
<glyph unicode="m" horiz-adv-x="1033" d="M 119,0 L 287,0 287,721 C 336,823 381,875 451,875 524,875 553,815 553,700 L 553,0 709,0 709,721 C 762,823 799,875 868,875 942,875 975,815 975,700 L 975,0 1143,0 1143,713 C 1143,911 1061,1020 922,1020 807,1020 745,954 688,848 659,963 598,1020 500,1020 385,1020 324,956 272,864 L 268,864 254,995 119,995 119,0 Z"/>
<glyph unicode="l" horiz-adv-x="980" d="M 834,-25 C 942,-25 1008,-4 1100,35 L 1057,160 C 989,129 928,115 870,115 752,115 674,176 674,322 L 674,1458 152,1458 152,1321 506,1321 506,334 C 506,98 623,-25 834,-25 Z"/>
+ <glyph unicode="k" horiz-adv-x="980" d="M 217,0 L 385,0 385,270 621,502 987,0 1176,0 725,604 1122,995 930,995 393,471 385,471 385,1458 217,1458 217,0 Z"/>
<glyph unicode="i" horiz-adv-x="689" d="M 647,0 L 815,0 815,995 184,995 184,858 647,858 647,0 Z M 713,1204 C 788,1204 848,1255 848,1335 848,1413 788,1466 713,1466 637,1466 578,1413 578,1335 578,1255 637,1204 713,1204 Z"/>
<glyph unicode="e" horiz-adv-x="980" d="M 676,-25 C 836,-25 963,29 1061,94 L 999,205 C 909,147 815,111 696,111 489,111 330,225 309,451 L 1094,451 C 1098,477 1102,514 1102,553 1102,834 934,1020 647,1020 381,1020 139,823 139,500 139,168 377,-25 676,-25 Z M 651,887 C 821,887 934,786 948,582 L 313,582 C 344,778 487,887 651,887 Z"/>
<glyph unicode="d" horiz-adv-x="953" d="M 555,-25 C 678,-25 797,47 879,131 L 885,131 899,0 1038,0 1038,1458 870,1458 870,1075 879,891 872,891 C 786,973 694,1020 575,1020 340,1020 123,819 123,496 123,164 295,-25 555,-25 Z M 590,117 C 406,117 297,260 297,498 297,725 436,879 608,879 694,879 780,846 870,762 L 870,266 C 782,168 688,117 590,117 Z"/>
<glyph unicode="c" horiz-adv-x="953" d="M 709,-25 C 856,-25 993,33 1104,131 L 1028,240 C 946,170 844,115 721,115 492,115 338,268 338,496 338,725 496,881 725,881 829,881 915,838 997,766 L 1081,875 C 999,954 881,1020 719,1020 418,1020 164,829 164,496 164,166 397,-25 709,-25 Z"/>
+ <glyph unicode="b" horiz-adv-x="927" d="M 655,-25 C 893,-25 1106,174 1106,514 1106,821 961,1020 692,1020 575,1020 449,961 358,868 L 352,868 358,1061 358,1458 190,1458 190,0 326,0 340,111 346,111 C 440,27 559,-25 655,-25 Z M 629,117 C 557,117 453,150 358,233 L 358,729 C 461,831 563,879 651,879 850,879 932,731 932,512 932,266 803,117 629,117 Z"/>
<glyph unicode="a" horiz-adv-x="900" d="M 504,-25 C 645,-25 786,49 897,135 L 903,135 918,0 1055,0 1055,610 C 1055,858 924,1020 651,1020 477,1020 309,942 209,877 L 274,762 C 367,819 494,881 623,881 815,881 883,766 887,631 373,590 166,481 166,258 166,80 317,-25 504,-25 Z M 549,111 C 434,111 330,158 330,270 330,401 461,485 887,520 L 887,258 C 774,164 662,111 549,111 Z"/>
<glyph unicode="_" horiz-adv-x="1006" d="M 123,-287 L 1106,-287 1106,-141 123,-141 123,-287 Z"/>
+ <glyph unicode="3" horiz-adv-x="953" d="M 588,-25 C 848,-25 1061,117 1061,348 1061,528 911,643 737,680 L 737,688 C 899,741 1016,842 1016,999 1016,1210 829,1331 584,1331 416,1331 274,1262 166,1167 L 256,1061 C 342,1139 455,1194 578,1194 737,1194 844,1114 844,987 844,850 725,743 416,743 L 416,614 C 760,614 891,510 891,354 891,209 756,115 578,115 410,115 289,188 203,270 L 117,160 C 213,63 363,-25 588,-25 Z"/>
+ <glyph unicode="2" horiz-adv-x="954" d="M 150,0 L 1069,0 1069,145 639,145 C 561,145 477,139 395,133 752,457 997,700 997,946 997,1178 834,1331 571,1331 387,1331 258,1251 141,1133 L 238,1036 C 322,1124 428,1194 551,1194 743,1194 836,1087 836,938 836,721 592,492 150,100 L 150,0 Z"/>
+ <glyph unicode="1" horiz-adv-x="901" d="M 199,0 L 1085,0 1085,139 743,139 743,1307 619,1307 C 535,1262 436,1231 283,1210 L 283,1102 575,1102 575,139 199,139 199,0 Z"/>
<glyph unicode=")" horiz-adv-x="583" d="M 342,-360 C 627,-139 803,174 803,569 803,965 627,1278 342,1499 L 250,1413 C 524,1182 651,913 651,569 651,225 524,-43 250,-274 L 342,-360 Z"/>
<glyph unicode="(" horiz-adv-x="557" d="M 887,-360 L 979,-274 C 705,-43 578,225 578,569 578,913 705,1182 979,1413 L 887,1499 C 602,1278 426,965 426,569 426,174 602,-139 887,-360 Z"/>
+ <glyph unicode=" " horiz-adv-x="1217"/>
</font>
</defs>
<defs class="TextShapeIndex">
@@ -200,10 +188,10 @@
</g>
<g class="com.sun.star.drawing.ConnectorShape">
<g id="id6">
- <rect class="BoundingBox" stroke="none" fill="none" x="4490" y="5512" width="2918" height="2519"/>
+ <rect class="BoundingBox" stroke="none" fill="none" x="4807" y="5512" width="2307" height="2519"/>
<path fill="none" stroke="rgb(102,102,102)" stroke-width="106" stroke-linejoin="bevel" d="M 5972,5565 L 5972,6208 5972,7372"/>
<path fill="rgb(102,102,102)" stroke="none" d="M 5972,8030 L 6202,7342 5743,7342 5972,8030 Z"/>
- <text class="TextShape"><tspan class="TextParagraph" font-family="Liberation Sans, sans-serif" font-size="635px" font-weight="400"><tspan class="TextPosition" x="4638" y="6771"><tspan fill="rgb(0,0,0)" stroke="none"> </tspan><tspan font-family="FreeMono, monospace" font-size="494px" fill="rgb(0,0,0)" stroke="none">(2)</tspan></tspan></tspan><tspan class="TextParagraph" font-family="FreeMono, monospace" font-size="494px" font-weight="400"><tspan class="TextPosition" x="4490" y="7304"><tspan fill="rgb(0,0,0)" stroke="none"> </tspan><tspan fill="rgb(0,0,0)" stroke="none">call</tspan></tspan></tspan></text>
+ <text class="TextShape"><tspan class="TextParagraph" font-family="Liberation Sans, sans-serif" font-size="635px" font-weight="400"><tspan class="TextPosition" x="5000" y="6773"><tspan fill="rgb(0,0,0)" stroke="none"> </tspan><tspan font-family="Source Code Pro" font-size="388px" fill="rgb(0,0,0)" stroke="none">(2)</tspan></tspan></tspan><tspan class="TextParagraph" font-family="Source Code Pro" font-size="388px" font-weight="400"><tspan class="TextPosition" x="4808" y="7293"><tspan fill="rgb(0,0,0)" stroke="none"> </tspan><tspan fill="rgb(0,0,0)" stroke="none">call</tspan></tspan></tspan></text>
</g>
</g>
<g class="com.sun.star.drawing.CustomShape">
@@ -244,10 +232,10 @@
</g>
<g class="com.sun.star.drawing.ConnectorShape">
<g id="id9">
- <rect class="BoundingBox" stroke="none" fill="none" x="8527" y="3757" width="4107" height="1348"/>
+ <rect class="BoundingBox" stroke="none" fill="none" x="8527" y="3757" width="4107" height="1332"/>
<path fill="none" stroke="rgb(102,102,102)" stroke-width="106" stroke-linejoin="bevel" d="M 8580,3987 L 9223,3987 11975,3987"/>
<path fill="rgb(102,102,102)" stroke="none" d="M 12633,3987 L 11945,3758 11945,4217 12633,3987 Z"/>
- <text class="TextShape"><tspan class="TextParagraph" font-family="FreeMono, monospace" font-size="494px" font-weight="400"><tspan class="TextPosition" x="10162" y="4601"><tspan fill="rgb(0,0,0)" stroke="none">(1)</tspan></tspan></tspan><tspan class="TextParagraph" font-family="FreeMono, monospace" font-size="494px" font-weight="400"><tspan class="TextPosition" x="8977" y="5096"><tspan fill="rgb(0,0,0)" stroke="none"> </tspan><tspan fill="rgb(0,0,0)" stroke="none">instrument</tspan></tspan></tspan></text>
+ <text class="TextShape"><tspan class="TextParagraph" font-family="Source Code Pro" font-size="388px" font-weight="400"><tspan class="TextPosition" x="10257" y="4592"><tspan fill="rgb(0,0,0)" stroke="none">(1)</tspan></tspan></tspan><tspan class="TextParagraph" font-family="Source Code Pro" font-size="388px" font-weight="400"><tspan class="TextPosition" x="9326" y="5083"><tspan fill="rgb(0,0,0)" stroke="none"> </tspan><tspan fill="rgb(0,0,0)" stroke="none">instrument</tspan></tspan></tspan></text>
</g>
</g>
<g class="com.sun.star.drawing.ConnectorShape">
@@ -287,9 +275,10 @@
</g>
<g class="com.sun.star.drawing.ConnectorShape">
<g id="id12">
- <rect class="BoundingBox" stroke="none" fill="none" x="15135" y="5565" width="461" height="1251"/>
+ <rect class="BoundingBox" stroke="none" fill="none" x="12062" y="5565" width="6656" height="1251"/>
<path fill="none" stroke="rgb(102,102,102)" stroke-width="106" stroke-linejoin="bevel" d="M 15368,6762 L 15368,6261 15355,6222"/>
<path fill="rgb(102,102,102)" stroke="none" d="M 15350,5565 L 15135,6258 15594,6248 15350,5565 Z"/>
+ <text class="TextShape"><tspan class="TextParagraph" font-family="Source Code Pro" font-size="388px" font-weight="400"><tspan class="TextPosition" x="11983" y="6303"><tspan fill="rgb(0,0,0)" stroke="none">(3) linker resolves symbol to</tspan></tspan></tspan></text>
</g>
</g>
</g>
diff --git a/slides.md b/slides.md
index c9676da..6f87b08 100644
--- a/slides.md
+++ b/slides.md
@@ -761,22 +761,20 @@ We implement in the the mock function called:
## Linker function wrapping
-Linker renames the original function of
+Linker makes
read_proc_uptime()
-to
+available under the symbol
__real_read_proc_uptime()
note:
-The linker appends `__real` infront of our function name. It renames
+The linker will do two things:
- read_proc_uptime()
-
-to
+First:
+Linker makes `read_proc_uptime()` available under the symbol `__real_read_proc_uptime()`
- __real_read_proc_uptime()
<!-- .slide: class="tetris-two center" -->
@@ -784,20 +782,20 @@ to
## Linker function wrapping
-A symbol
+The symbol
read_proc_uptime()
-will be created pointing to
+will be resolved to
__wrap_read_proc_uptime
note:
-A function
+A the symbol
read_proc_uptime()
-will be created pointing to
+will be resolved to
__wrap_read_proc_uptime
@@ -822,7 +820,7 @@ in our mock function if needed!
---
-## Smybol binding order!
+## Symbol binding order!
Symbols are searched and bound by the linker in the follow order:
@@ -830,6 +828,8 @@ Symbols are searched and bound by the linker in the follow order:
2. Preloaded libraries
3. Libraries in linking order
+Check also `-wrap` resolving in '`man ld`'
+
note:
SUPER IMPORTANT - The binding order of symbols!
@@ -850,7 +850,8 @@ With GNU ld.so ..
See '`man ld.so`'
note:
-- You can debug symbol binding of the linker
+- You can debug symbol binding of the dynamic linker, which can be useful to
+ debug issues.
- Use LD_DEBUG=symbols
- Read the manpage for more information
@@ -957,7 +958,6 @@ note:
Check the uptime example in the cmocka source code.
- Use gdb to step through the test.
-- Run uptime and test_uptime with `LD_DEBUG=symbols`
<!-- .slide: class="tetris-three center" -->