summaryrefslogtreecommitdiffstats
path: root/runtime/ChangeLog
blob: bdf6e56d08788ad75a069282eb2f39ec64cc0f35 (plain)
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
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
2008-05-16  David Smith  <dsmith@redhat.com>

	PR 6499.
	* task_finder.c (stap_register_task_finder_target): Added error
	check.
	(__stp_utrace_task_finder_report_clone): Ditto.
	(stap_utrace_detach_ops): Uses do_each_thread/while_each_thread
	instead of for_each_process (which only iterated among process
	group leaders instead of all threads).
	(stap_start_task_finder): Ditto.

2008-05-08  David Smith  <dsmith@redhat.com>

	PR 6500.
	* task_finder.c (__stp_utrace_task_finder_report_exec): Moved
	attach logic to __stp_utrace_attach_match_filename().
	(__stp_utrace_attach_match_filename): New function.
	(__stp_utrace_task_finder_report_clone): Calls
	__stp_utrace_attach_match_filename() to attach to newly cloned
	threads.

2008-05-06  Masami Hiramatsu  <mhiramat@redhat.com>

	PR 5648
	* print_old.c (stp_print_flush): Fix unaligned access warning on
	ia64.
	* print_new.c (stp_print_flush): Ditto.

2008-05-06  Masami Hiramatsu  <mhiramat@redhat.com>

	PR 5648
	* vsprintf.c (_stp_vsnprintf): Fix memcpy's endianess issue.

2008-05-05  Frank Ch. Eigler  <fche@elastic.org>

	PR 6481.
	* time.c (__stp_time_timer_callback): Reenable irq's before
	mod_timer.

2008-05-05  David Smith  <dsmith@redhat.com>

	* task_finder.c (stap_utrace_detach_ops): Make sure we ignore
	/sbin/init.
	(__stp_utrace_attach): Added function to handle details of
	attaching a utrace engine.
	(__stp_utrace_task_finder_report_clone): Calls
	__stp_utrace_attach.
	(__stp_utrace_task_finder_report_exec): Ditto.
	(stap_start_task_finder): Ditto.

2008-04-30  Masami Hiramatsu  <mhiramat@redhat.com>

	PR 5648
	From Shaohua Li <shaohua.li@intel.com>
	* vsprintf.c (_stp_vsnprintf): Fix unaligned access warning on ia64.

2008-04-29  David Smith  <dsmith@redhat.com>

	* task_finder.c: Made more robust by ensuring that all utrace
	attaches have a corresponding utrace detach.

2008-04-28  Frank Ch. Eigler  <fche@elastic.org>

	* runtime.h (TEST_MODE): Remove.

2008-04-25  David Smith  <dsmith@redhat.com>

	From Srinivasa <srinivasa@in.ibm.com>
	* task_finder.c (__stp_get_mm_path): Fixed kernel 2.6.25 change.

2008-04-24  David Smith  <dsmith@redhat.com>

	* task_finder.c (__stp_get_mm_path): Made kernel 2.6.25 changes.

2008-04-16  David Smith  <dsmith@redhat.com>

	* task_finder.c (__stp_get_mm_path): Made kernel 2.6.18 changes.

2008-04-15  David Smith  <dsmith@redhat.com>

	PR 5961 (partial)
	* task_finder.c (stap_start_task_finder): When an interesting
	thread is found that is already running, make sure to set up
	thread death notification.

2008-04-15  hunt  <hunt@redhat.com>
	* print.c (_stp_pbuf_full): Delete. 
	
2008-04-15  hunt  <hunt@redhat.com>	
	* stack-x86_64.c (_stp_stack_print_fallback): Add levels.
	(__stp_stack_print): Count levels properly.

2008-04-15  Martin Hunt  <hunt@redhat.com>

	Finish support for limits on backtrace depth.
	* runtime.h (MAXTRACE): Default to 20.
	* stack.c (_stp_stack_print): Call __stp_stack_print
	with levels set properly.
	* sym.c (_stp_func_print): Return a value indicating 
	if something was printed.

	Support for i386 and x86_64 on 2.6.25 kernel
	* unwind/i386.h: Support unified registers on 2.6.25.
	Remove unused frame stuff, including STACK_*.
	* stack-i386.c (__stp_stack_print): Support unified
	registers on 2.6.25.
	* regs.h (REG_FP): Define for i386.

2008-04-15  Frank Ch. Eigler  <fche@elastic.org>

	PR 6410.
	* unwind.c, unwind.h: Make body conditional in STP_USE_DWARF_UNWINDER.
	* stack-x86_64.c (__stp_stack_print): Tolerate !unwinder.

2008-04-15  Frank Ch. Eigler  <fche@elastic.org>

	PR 6405
	* autoconf-module-nsections.c: New file.

2008-04-15  Frank Ch. Eigler  <fche@elastic.org>

	* unwind/i386.h (STACK_BOTTOM, STACK_TOP): Comment out these
	unused definitions, for they collide with some kernels
	(2.6.25-0.121.rc5.git4 rawhide).

2008-04-13  Frank Ch. Eigler  <fche@elastic.org>

	* print.c (_stp_pbuf_full): New function to note full print buffer.
	* stack-{i386,x86_64}.c: Use it in all stack-searching loops, to
	impose another limit against unbounded iteration.

2008-03-31  Martin Hunt  <hunt@redhat.com>

	* runtime.h (STP_USE_DWARF_UNWINDER): Define.

2008-04-04  Masami Hiramatsu <mhiramat@redhat.com>

	PR 6028
	* loc2c-runtime.h (fetch_register): Call ia64_fetch_register with
	the address of c->unwaddr.
	* regs-ia64.c (ia64_fetch_register): Don't unwind stack if it has
	already unwound stack in same probe.

2008-03-30  Martin Hunt  <hunt@redhat.com>

	* runtime.h (STP_USE_FRAME_POINTER): Define when frame pointers
	are available in the kernel and can be used.
	* stack-arm.c: Use STP_USE_FRAME_POINTER.
	* stack-i386.c: Ditto.
	* unwind/i386.h: Ditto.
	* unwind/x86_64.h: Ditto.

2008-04-04  David Smith  <dsmith@redhat.com>

	PR 5961 (partial)
	* task_finder.c: New file.

2008-03-28  Martin Hunt  <hunt@redhat.com>

	* copy.c (_stp_read_address): New function. Safely read 
	kernel or userspace.

2008-03-26  Martin Hunt  <hunt@redhat.com>
	    Fixes to get i386 working.
	* unwind.c (unwind): Fix types in debug print.
	* stack-i386.c (_stp_stack_print_fallback): New function.
	(__stp_stack_print): Call _stp_stack_print_fallback() if unwinder
	appears to fail.

2008-03-25  Martin Hunt  <hunt@redhat.com>

	* unwind.c (unwind): Return a positive number to indicate
	that unwinding is done.

2008-04-01  Frank Ch. Eigler  <fche@elastic.org>

	* lket/*: Belatedly remove retired LKET code.

2008-03-17  Eugene Teo  <eteo@redhat.com>

	PR 5947
	* autoconf-tsc-khz.c: Remove "&& defined(__i386__)" to make the test
	more pessimistic.

2008-03-14  Masami Hiramatsu <mhiramat@redhat.com>

	PR 3542
	* autoconf-unregister-kprobes.c : New file.

2008-03-10  Dave Brolley  <brolley@redhat.com>

	PR5189
	* vsprintf.c (_stp_vsnprintf): Arguments for dynamic width and precision
	are of type 'int' again.
	* loc2c-runtime.h (deref_string): Copy the data only if dst is not NULL.
	(deref_buffer): New macro.

2008-02-27  Martin Hunt  <hunt@redhat.com>

	* sym.h (_stp_module): Add text_size, lock, and unwind data
	pointer.	
	* sym.c (_stp_find_module_by_addr): New function.
	(_stp_kallsyms_lookup): Call _stp_find_module_by_addr().
	(_stp_get_unwind_info): New.
	
	* runtime.h: Move debug macros to debug.h. Include it.
	* debug.h: New file.
	* map.c: Update debug calls.
	* map-gen.c: Update debug calls.
	* pmap-gen.c: Update debug calls.
	
	* mempool.c: New file. 
	
2008-02-27  Dave Brolley  <brolley@redhat.com>

	PR5189
	* vsprintf.c (_stp_vsnprintf): Extract arguments of type int64_t for
	dynamic width and precision. Implement width and precision correctly for
	the %b format specifier. Implement the %m specifier.

2008-02-06  Masami Hiramatsu <mhiramat@redhat.com>

	* stack-ia64.c (__stp_show_stack_sym): Skip printing symbol if (ip ==
	REG_IP(regs)).

2008-01-29  Martin Hunt  <hunt@redhat.com>

	* io.c (_stp_vlog): Use get_cpu() instead
	of smp_processor_id() because this function can get 
	called with interrupts enabled.

2008-01-29  Martin Hunt  <hunt@redhat.com>	

	* alloc.c (struct _stp_malloc_type): Remove
	redundant field.

2008-01-28  Martin Hunt  <hunt@redhat.com>

	* alloc.c: Use DEFINE_SPINLOCK.
	* counter.c: Ditto.
	* pmap-gen.c: Ditto.
	* print_new.c: Ditto.
	* stat.c: Ditto.
	
2008-01-27  Frank Ch. Eigler  <fche@elastic.org>

	* stack-i386.c (__stp_stack_print): Correct #elif->#else typo.

2008-01-14  Martin Hunt  <hunt@redhat.com>

	* print.c (_stp_print_kernel_info): New function.
	(all):  Call stp memory functions.

	* alloc.c: Rewrite to track allocated memory if 
	DEBUG_MEM is defined.
	* counter.c, map.c, stat.c, time.c: Call stp
	memory functions.
	
2007-11-14  Zhaolei  <zhaolei@cn.fujitsu.com>

	From Cai Fei <caifei@cn.fujitsu.com>
	* regs-ia64.c (ia64_fetch_register): Fix the bug of fetching
	register 12 on IA64.

2007-11-12  Martin Hunt  <hunt@redhat.com>

	* print.c (_stp_print): Rewrite to eliminate the strlen()
	call and save a bit of time.

2007-11-09  Masami Hiramatsu  <mhiramat@redhat.com>

	PR3858
	* print.c: Add -DRELAY_HOST=<hostname> and -DRELAY_GUEST=<hostname>
	options support.
	(_stp_print_flush): Disable irqs if -DRELAY_* option is specified.
	* print_old.c: Export stp_print_flush to other modules if the
	-DRELAY_HOST option is specified.
	* print_new.c: Ditto.

2007-10-25  Mike Mason <mmlnx@us.ibm.com>

	* stat-common.c: Allow histogram bucket elision to be turned off
	with -DHIST_ELISION=<negative #>.  Also cleaned up looping code
	to prevent unnecessary interation over non-existent buckets.

2007-10-17  Masami Hiramatsu <mhiramat@redhat.com>

	* autoconf-tsc-khz.c: Not to be compiled if the kernel version is
	younger than 2.6.23 on i386.

2007-10-17  Martin Hunt  <hunt@redhat.com>
	PR5000
	* vsprintf.c: Remove _stp_endian.

2007-10-15  Masami Hiramatsu <mhiramat@redhat.com>

	* autoconf-tsc-khz.c: Fix a bug to be configured correctly.

2007-10-09  Martin Hunt  <hunt@redhat.com>

	* user/*: Removed obsolete userspace test files.

2007-10-02  Frank Ch. Eigler  <fche@elastic.org>

	PR 5041
	From <michael.gruener@linux.vnet.ibm.com>:
	* loc2c-runtime.h (store_register): Add value as macro parameter where
	missing.

2007-09-24  Masami Hiramatsu  <mhiramat@redhat.com>

	PR 3916
	* time.c (stp_time_t): Rename cpufreq to freq.
	(__stp_get_freq): Rename from __stp_estimate_cpufreq. Use tsc_khz or
	cpu_khz if it is available. Use itc_freq on ia64.
	(__stp_ktime_get_real_ts): New function to get current kernel time.
	(__stp_time_timer_callback): Call __stp_ktime_get_real_ts to get
	base time.
	(__stp_init_time): Ditto.
	(__stp_constant_freq): New function to check the processor has
	constant frequency timestamp counter.
	(_stp_kill_time): Don't use the cpufreq notifier if the processor has
	constant frequency timestamp counter.
	(_stp_init_time): Ditto.
	* autoconf-ktime-get-real.c : New file.
	* autoconf-constant-tsc.c: Ditto.
	* autoconf-tsc-khz.c: Ditto.

2007-09-22  Frank Ch. Eigler  <fche@elastic.org>

	PR 5057.
	* stat-common.c (_stp_stat_print_histogram): Elide consecutive
	zero rows beyond 2*STAT_ELISION+1.
	(STAT_ELISION): New parameter, default 2.

2007-09-21  Martin Hunt  <hunt@redhat.com>
	PR 5024
	* stat-common.c (_stp_stat_print_histogram): Change
	overflow and underflow handling for linear histograms.
	(__stp_stat_add): For linear histograms, use under
	and over buckets.

2007-09-19  Martin Hunt  <hunt@redhat.com>
	PR 5042
	* procfs.c (_stp_rmdir_proc_module): Warn if removal of
	/proc/systemtap/module is deferred. Do not defer removal of
	/proc/systemtap.
	(_stp_mkdir_proc_module): Call path_release(). Set ownership of
	/proc/systemtap/module to force deletion to be deferred.
	(_stp_create_procfs): Set owner of all path components.

2007-09-14  Martin Hunt  <hunt@redhat.com>

	* procfs.c (_stp_create_procfs): Be sure that directories in the path
	are really directories and not files.

2007-09-13  David Smith  <dsmith@redhat.com>

	* procfs.c (_stp_procfs_dir_lookup): Added 'const' qualifier to
	'dir' parameter.
	(_stp_create_procfs): Added 'const' qualifier to 'path'
	parameter.  Removed debug prints.
	(_stp_close_procfs): Removed debug prints.

2007-09-12  Martin Hunt  <hunt@redhat.com>

	* map-stat.c (_stp_map_new_hstat_log): Set buckets to 
	HIST_LOG_BUCKETS.
	(_stp_pmap_new_hstat_log): Ditto.
	(_stp_map_new_hstat_linear): Call _stp_stat_calc_buckets().
	(_stp_pmap_new_hstat_linear): Ditto.

	* stat.h (STP_MAX_BUCKETS): Define..
	(HIST_LOG_BUCKETS): Define.

	* stat.c (_stp_stat_init): Call _stp_stat_calc_buckets().

	* stat-common.c (_stp_stat_calc_buckets): New function. Common
	bucket calculation and error reporting code.
	(_stp_bucket_to_val): New function.
	(_stp_val_to_bucket): Renamed and now handles negative numbers.
	(_stp_stat_print_histogram): Handle negative values in log histograms.
	(__stp_stat_add): Cleanup..

	* map-gen.c (_stp_map_new): Remove buckets param for HIST_LOG.
	* pmap-gen.c (_stp_pmap_new): Ditto.
	
2007-09-10  Martin Hunt  <hunt@redhat.com>

	* procfs.c: New file. Common runtime procfs functions.

2007-08-20  Martin Hunt  <hunt@redhat.com>

	* stack.c (_stp_kta): Removed.

2007-08-20  Masami Hiramatsu <mhiramat@redhat.com>

	* stack-x86_64.c: Fix backtrace to use the value of stack register
	instead of its address.

2007-08-17  Martin Hunt  <hunt@redhat.com>

	* bench2/bench.rb: Send HUP to stapio, instead of staprun.

2007-08-10  Josh Stone  <joshua.i.stone@intel.com>

	PR 4593
	* loc2c-runtime.h (deref, store_deref): Set an error message with
	the pointer value and name into last_error, since it's hard to
	determine the details once you've already jumped to deref_fault.

2007-07-09  Martin Hunt  <hunt@redhat.com>

	* sym.h (STP_MAX_MODULES): Raise limit to 256.

2007-07-06  Martin Hunt  <hunt@redhat.com>

	* stat-common.c (__stp_stat_add): Fix calculations
	for linear histogram buckets.

	* stat.c (_stp_stat_init): Check for interval too
	small.

2007-07-05  Eugene Teo  <eteo@redhat.com>

	* regs.c (_stp_print_regs): #ifdef CONFIG_CPU_CP15 instead.

2007-07-02  Martin Hunt  <hunt@redhat.com>

	* sym.c (_stp_kallsyms_lookup): Improve heuristic
	for determining when a pointer is in a function.
	(_stp_func_print): New function.	
	* stack-i386.c, stack-x86_64.c: Remove obsolete
	unwind code. Use _stp_func_print().
	
2007-06-22  Frank Ch. Eigler  <fche@elastic.org>

	* string.c (_stp_text_str): Fix handling of embedded
	" and \ characters.

2007-06-21  David Smith  <dsmith@redhat.com>

	* lket/b2a/Makefile.in: Regenerated with automake 1.10.

2007-06-15  Martin Hunt  <hunt@redhat.com>
	From Quentin Barnes.
	* loc2c-runtime.h: Latest arm marcos.
	* stack-arm.c (__stp_stack_print): Add a cast.
	* regs.c (_stp_ret_addr): Define for arm.

2007-06-07  Martin Hunt  <hunt@redhat.com>
	PR 4075 fix from Ananth Mavinakayanahalli 
	* string.h (_stp_get_user): Define.
	* string.c (_stp_text_str): Use _stp_get_user().

2007-05-30  Martin Hunt  <hunt@redhat.com>

	Patch from Quentin Barnes.
	* arith.c: Add arm support for 64-bit division.
	* copy.c: Enable arm support.
	* loc2c-runtime.h: Ditto.
	* regs.[ch]: Ditto.
	* stack.c: Include stack-arm.c.
	* stack-arm.c: New file.
	* time.c (_stp_gettimeofday_ns):  hack
	for arm. See PR 4569.

2007-05-29  Frank Ch. Eigler  <fche@elastic.org>

	PR 4458
	* print_new.c (_stp_print_flush): Use interrupt-disabling
	spinlock variants.

2007-05-29  Frank Ch. Eigler  <fche@redhat.com>

	PR 2224
	* map.h (NEED_MAP_LOCKS): New config macro, defaults to 0.
	(MAP_GET_CPU, MAP_PUT_CPU): Wrappers, default to ~no-op.
	* map.c (_stp_pmap_clear,agg): Use them.
	* pmap-gen.c (_stp_pmap_new,set,add,get_cpu,get,del): Ditto.
	
2007-05-15  Martin Hunt  <hunt@redhat.com>

	* vsprintf.c: Add comment about %p.
	* regs.c, stack*.c, sym.c: Fix %p calls.

2007-04-27  Martin Hunt  <hunt@redhat.com>

	* runtime.h: Improve check for debugfs in kernel.

2007-04-27  Frank Ch. Eigler  <fche@elastic.org>

	* autoconf-inode-private.c: New file from hunt.

2007-04-04  Sébastien Dugué  <sebastien.dugue@bull.net>

	* runtime/lket/b2a/lket_b2a.c: Fix percpu files parsing
	for percpu_header transport changes.

2007-04-05  Martin Hunt  <hunt@redhat.com>

	* bench2/var_bench, var.st, const.st: New test.
	
2007-04-05  Martin Hunt  <hunt@redhat.com>	

	* bench2/bench.rb (Stapbench::run): Check result code
	of "killall staprun". If it is nonzero, something happened to
	staprun. Print an error.
	(Stapbench::load): Define STP_NO_OVERLOAD.
	* bench2/README: Update.
	* bench2/print_bench: New set of tests.

2007-03-22  Frank Ch. Eigler  <fche@elastic.org>

	* sym.c (_stp_module_relocate): Tolerate empty section string.

2007-03-21  Martin Hunt  <hunt@redhat.com>


	* sym.h: Declare _stp_module_relocate.
	* sym.c (_stp_module_relocate): Add comments, reformat, add
	a way for "last" cached values to be cleared when modules
	are removed.
	(_stp_symbol_print): Simplify and remove static buffer.
	(_stp_symbol_snprint): Ditto.

2007-03-21  Martin Hunt  <hunt@redhat.com>	

	* map.c (_stp_map_init): Fix signed vs unsigned comparison warning.

2007-03-20  Frank Ch. Eigler  <fche@elastic.org>

	PR 4224.
	* sym.c (_stp_module_relocate): Support kernel relocations.

2007-03-19  Frank Ch. Eigler  <fche@elastic.org>

	* autoconf-hrtimer-rel.c: New file.

2007-03-18  Martin Hunt  <hunt@redhat.com>

	* stack.c, string.c, sym.c, transport/symbols.c:
	Fix some signed vs unsigned comparison warnings.

2007-03-14  Martin Hunt  <hunt@redhat.com>	
	* stpd: Remove directory.
	* relayfs: Remove directory.
	
2007-03-14  Martin Hunt  <hunt@redhat.com>	
	* bench2/bench.rb: Updated to work with new transport
	and new itest.c.
	* bench2/Makefile: Updated for new itest.c
	* bench2/itest.c: Rewritten to use multiple threads
	and automatically divide the workload among the threads.

	* print.c (_stp_print_flush): Move to print_new.c and 
	print_old.c.
	* print_new.c: New file containing _stp_print_flush()
	for the new transport.
	* print_old.c: Ditto for old transport.

	* runtime.h (STP_OLD_TRANSPORT): Define
	(errk): Define.
	(MAXSTRINGLEN): Define if not already defined.

	* io.c (_stp_vlog): Use _stp_ctl_write().

2007-03-12  Frank Ch. Eigler  <fche@redhat.com>

	PR 4179.
	Based on patch from Vasily Averin <vvs@sw.ru>:
	* time.c (_stp_init_time): Recover from partial failures.

2007-03-01  David Wilder <dwilder@us.ibm.com>

	* loc2c-runtime.h: rewrote s390x version of __stp_put_asm
	and __stp_put_asm to do single byte writes.

2007-02-27  David Wilder <dwilder@us.ibm.com>

	* loc2c-runtime.h: Added defines for EX_TABLE needed by older
	s390 kernels that do not already have it defined.

2007-02-07  Martin Hunt  <hunt@redhat.com>

	* stack-ppc64.c (__stp_stack_print): Remove an old
	reference to the string length and instead limit backtraces
	to MAXBACKTRACE.
	* stack.c: Define MAXBACKTRACE

2007-02-06  Josh Stone  <joshua.i.stone@intel.com>

	* loc2c-runtime.h (kread): Let it work with const types.

2007-01-31  Martin Hunt  <hunt@redhat.com>

	* string.c (_stp_string_init): Deleted.
	(_stp_sprintf): Deleted.
	(_stp_vsprintf): Deleted.
	(_stp_string_cat_cstr): Deleted.
	(_stp_string_cat_string): Deleted.
	(_stp_string_cat_char): Deleted.
	(_stp_string_ptr): Deleted.
	(_stp_string_cat): Deleted.
	(_stp_snprintf): Moved from vsprintf.c.
	(_stp_vscnprintf): Moved from vsprintf.c.

	* string.h (STP_STRING_SIZE): Deleted.
	(STP_NUM_STRINGS): Deleted.
	Remove all references to type "String".

        * vsprintf.c (_stp_vscnprintf): Moved to string.c.
	(_stp_snprintf): Moved to string.c

	* sym.c (_stp_symbol_sprint): Replaced with
	_stp_symbol_print, which writes to the print buffer.
	(_stp_symbol_sprint_basic): Replaced with
	_stp_symbol_snprint.

	* runtime.h: Include io.c.

	* stat-common.c: Use new _stp_print* functions.
	* stat.c: Ditto.

	* regs.c: Renamed to regs-ia64.c.
	* current.c: Renamed regs.c.
	* regs-ia64.c: New file (renamed from regs.c).

	* stack.c (_stp_stack_sprint): Renamed _stp_stack_print
	and now just prints to the print buffer. Calls
	__stp_stack_print instead of __stp_stack_sprint.
	(_stp_stack_snprint): New function. Calls _stp_stack_print and
	then copies the print buffer into a string.
	(_stp_stack_printj): Deleted.
	(_stp_ustack_sprint): Deleted.
	* stack-*.c: Rewritten to print instead of writing to strings.
	Uses new _stp_print* functions.

	* print.c (_stp_printf): Create new function instead of macro.
	(_stp_print): Ditto.
	(_stp_print_char): New function.

	* map.c: Use _stp_print() and _stp_print_char()
	instead of _stp_print_cstr().

	* io.c (_stp_vlog): Use _stp_print() instead
	of _stp_string_cat_cstr().

	* copy.c (_stp_string_from_user): Deleted.


2007-01-30  Martin Hunt  <hunt@redhat.com>

	* io.c (_stp_vlog): Use dynamic percpu allocations
	instead of very wasteful static allocations.
	* print.c (_stp_print_init): Do percpu allocations
	for io.c.
	(_stp_print_cleanup): Free percpu allocations.

	* string.c (_stp_sprintf): Overflow check needed
	to be >= instead of >.

2007-01-30  Martin Hunt  <hunt@redhat.com>

	* alloc.c (_stp_alloc_percpu):  Don't implement
	our own; just call __alloc_percpu with appropriate args
	for the OS version.
	(_stp_free_percpu): Delete.
	* map.c (_stp_map_init): When calling kmalloc_node, first
	call cpu_to_node() to get the proper node number.
	* stat.c (_stp_stat_del): Call free_percpu()
	instead of _stp_free_percpu().

2007-01-29  Martin Hunt  <hunt@redhat.com>

	* alloc.c (_stp_kmalloc): New function. Call kmalloc
	with the correct flags and track usage.
	(_stp_kzalloc): Ditto.
	* map.c: Use new alloc calls.
	* print.c: Ditto.
	* stat.c: Ditto.
	* time.c: Ditto.

2007-01-25  Roland McGrath  <roland@redhat.com>

	* loc2c-runtime.h (store_deref): Use "Zr" constraint for 64-bit case.

2007-01-22  Josh Stone  <joshua.i.stone@intel.com>

	* loc2c-runtime.h (kread, kwrite): Tweaks to work better with
	reading and writing pointer values.

2007-01-22  Martin Hunt  <hunt@redhat.com>

	* map-gen.c (_stp_map_exists): New. Check for membership only.

2007-01-19  Josh Stone  <joshua.i.stone@intel.com>

	PR 3079
	* loc2c-runtime.h (kread, kwrite): New macros to safely read/write
	values from kernel pointers.  This includes a workaround for 64-bit
	numbers on i386 platforms.

2007-01-10  Martin Hunt  <hunt@redhat.com>

	PR 3708
	* map.c (str_copy): Check for NULL pointers.
	(_new_map_set_int64): Don't check val for 0.
	(_new_map_set_str): Don't check val for NULL.

	* map-gen.c (VAL_IS_ZERO): Removed.
	(_stp_map_del): New.
	(__stp_map_set): Don't check for zero.

	* pmap-gen.c (VAL_IS_ZERO): Removed.
	(_stp_pmap_del): New.
	(__stp_pmap_set): Don't check for zero.

2006-12-20  Martin Hunt  <hunt@redhat.com>

	* runtime.h: Include mm.h.

2006-12-20  Li Guanglei <guanglei@cn.ibm.com>

	* runtime/lket/b2a/lket_b2a.c: bugfix for NULL appname when
	search appNameTree.

2006-12-18  David Smith  <dsmith@redhat.com>

	* lket/b2a/Makefile.in: Regenerated.  This needed to be done since
	lket/b2a/README was removed but lket/b2a/Makefile.in still had a
	reference to it which was causing "make distdir" to fail.

2006-12-18  Frank Ch. Eigler  <fche@elastic.org>

	PR 3079
	* loc2c-runtime.h (deref, store_deref): Fork x86 and x86-64
	variants.  Remove dysfunctional 64-bit ops from x86.

2006-12-15  Frank Ch. Eigler  <fche@elastic.org>

	* print.c (_stp_print_flush): Add a likely() marker to the hot path.

2006-12-13  Frank Ch. Eigler  <fche@elastic.org>

	* regs.h (s390x REG_IP): Parenthesize for warning-free builds.

2006-12-08  Josh Stone  <joshua.i.stone@intel.com>

	* runtime.h (param_set_int64_t, param_get_int64_t,
	param_check_int64_t): New functions to allow taking module parameters
	directly as int64_t values.

2006-12-06  Josh Stone  <joshua.i.stone@intel.com>

	* time.c (stp_timer_reregister): Add a global to control whether the
	gettimeofday timer should restart itself, for clean shutdown.
	(__stp_time_timer_callback): Check the global.
	(_stp_kill_time, _stp_init_time): Set the global.
	(_stp_gettimeofday_ns): Switch to preempt_enable_no_resched.

	* time.c (__stp_time_cpufreq_callback): Use the cpu# from the notifier.
	(_stp_init_time): No need to disable preemption around cpufreq init.

2006-12-04  Martin Hunt  <hunt@redhat.com>

	* bench2/bench.rb: Fixes for the latest runtime
	changes.

2006-11-21  Li Guanglei <guanglei@cn.ibm.com>

	* runtime/lket/b2a/lket_b2a.[ch]: add b2a_error() and change
	the error return codes.

2006-11-19  Li Guanglei <guanglei@cn.ibm.com>

	* runtime/lket/b2a/lket_b2a.[ch]: bugfix for #3536

2006-11-15  Martin Hunt  <hunt@redhat.com>

	* alloc.c (STP_ALLOC_FLAGS): Define.
	Cleanup ifdefs.
	* map.c: Use STP_ALLOC_FLAGS.
	* stat.c: ditto.

2006-11-10  Li Guanglei <guanglei@cn.ibm.com>

	* transport/procfs.c: bugfix of the obsolete buf_info
	and consumed_info.

2006-11-09  Martin Hunt  <hunt@redhat.com>

	* sym.h: Change int to int32_t.

2006-11-09  Li Guanglei <guanglei@cn.ibm.com>

	* runtime/lket/b2a/lket_b2a.[ch]: add options to control
	the output data fields of lket.out

2006-11-02  Martin Hunt  <hunt@redhat.com>

	* sym.c (_stp_module_relocate): New function. Needed by the
	translator to relocate module symbols.
	(_stp_kallsyms_lookup_name): Rewrite to use new symbol structs.
	(_stp_kallsyms_lookup): Ditto.

	* sym.h: Declare the structures and arrays that contain all
	the symbol and module information.

	* io.c (_stp_vlog, _stp_dbug):  Make first parameter const.
	* runtime.h: Update prototype for _stp_dbug.

2006-10-27  Thang Nguyen <thang.p.nguyen@intel.com>

	* runtime/regs.c: patch from Bibo Mao for fixing the return
	value on IA64 (bz #3404).

2006-10-24  Li Guanglei <guanglei@cn.ibm.com>

	* runtime/lket/b2a/lket_b2a.[ch]: be sync with LKET hookid
	rearrangement.

2006-10-23  Li Guanglei <guanglei@cn.ibm.com>

	* runtime/lket/b2a/lket_b2a.c: bugfix of event description
	data insert.

2006-10-12  Martin Hunt  <hunt@redhat.com>

	* stack-ppc64.c (__stp_stack_sprint): Declare sp before _sp.

2006-10-12  Martin Hunt  <hunt@redhat.com>

	* stack.c: Reorganize and split arch-specific functions to
	separate files.
	(_stp_kta): Better checking.
	(_stp_stack_sprint): Better handling of return probes.

	* stack-i386.c: New file. Uses 2.6.18 DWARF unwinder if available.
	* stack-x86_64.c: New file. Uses 2.6.18 DWARF unwinder if available.
	* stack-ppc64.c: New file.
	* stack-ia64.c: New file.

	* sym.c (_stp_kallsyms_lookup_name): New function. Like
	kallsyms_lookup_name() except use our internal lookup table.

2006-10-10  Frank Ch. Eigler  <fche@elastic.org>

	* runtime/lket/b2a/lket_b2a.c: Add several missing #ifdef HAS_MYSQL.

2006-10-10  Li Guanglei <guanglei@cn.ibm.com>

	* runtime/lket/b2a/lket_b2a.c, runtime/lket/b2a/lket_b2a.h:
	clean up the unused database tables and destory GTree on exit.

2006-10-10  Li Guanglei <guanglei@cn.ibm.com>

	* runtime/lket/b2a/Makefile.am: add the checking and optional
	compiling for mysql client library
	* runtime/lket/b2a/Makefile.in: regenerated
	* runtime/lket/b2a/lket_b2a.c, runtime/lket/b2a/lket_b2a.h:
	Adding the support of automatically database creation and
	dumping lket trace into mysql database

2006-10-09  Josh Stone  <joshua.i.stone@intel.com>

	From David Wilder <dwilder@us.ibm.com>
	* time.c (__stp_estimate_cpufreq): Short-circuit on s390.
	(_stp_gettimeofday_ns): Use a fixed formula on s390 to
	convert TOD clocks to nanoseconds.

2006-09-27  Martin Hunt  <hunt@redhat.com>

	* stack.c (_stp_kta): Rewrite. Use the _stap_symbols
	struct instead of calling into the kernel.

	* sym.c (_stp_kallsyms_lookup): Move here from runtime.h

	* runtime.h: Get rid of all the symbol stuff that
	did not belong here.

2006-09-26  David Smith  <dsmith@redhat.com>

	* README: Changed 'stpd' references to 'staprun'.
	* README.doc: Ditto.
	* TODO: Ditto.
	* io.c: Ditto.
	* print.c: Ditto.
	* runtime.h: Ditto.
	* bench2/bench.rb: Ditto.

2006-09-26  Martin Hunt  <hunt@redhat.com>

	* time.c (_stp_init_time): Use dynamic percpu allocations
	instead of evil static allocations.
	(_stp_kill_time): Free percpu allocations and set
	_stp_time to NULL so the timers are only deleted once.

2006-09-26  Martin Hunt  <hunt@redhat.com>

	* io.c (_stp_vlog): Remove ifdef for STP_RELAYFS. Relayfs now
	behaves the same as procfs.

2006-09-22  Martin Hunt  <hunt@redhat.com>

	* print.c: Replace STP_PRINT_BUF_LEN with STP_BUFFER_SIZE.
	* string.c: Ditto.

2006-09-21  Martin Hunt  <hunt@redhat.com>

	PR 3232
	* print.c (_stp_print_init): New. Alloc per-cpu buffers.
	(_stp_print_cleanup): New. Free per-cpu buffers.
	(_stp_print_flush): Use per_cpu_ptr().
	* string.c (_stp_sprintf): Ditto.
	(_stp_vsprintf): Ditto.
	(_stp_string_cat_cstr): Ditto.
	(_stp_string_cat_char): Ditto.

2006-09-20  Josh Stone  <joshua.i.stone@intel.com>

	PR 3233
	* time.c (stp_time_t): Use ns for the base time, and freq is now kHz.
	(__stp_estimate_cpufreq): Compute kHz instead of MHz.
	(__stp_time_timer_callback, __stp_init_time): Compute base in ns.
	(__stp_time_cpufreq_callback): Record kHz instead of MHz.
	(_stp_init_time): Record kHz, and disable preemption to avoid a race
	in the cpufreq notifier.
	(_stp_gettimeofday_ns): Converted from _stp_gettimeofday_us.

	* lket/b2a/lket_b2a.c (main): Correct arguments to fseek.
	(dump_data): Work around a spurious compiler warning.

2006-09-19  Li Guanglei <guanglei@cn.ibm.com>

	* lket/b2a/lket_b2a.c, lket/b2a/lket_b2a.h:
	Be sync with the recent runtime printing changes made by Martin.
	Some clean up work before adding the support of dumping data
	into MySQL
	Bug fix of segment fault when an event is not registered.

2006-09-18  Josh Stone  <joshua.i.stone@intel.com>

	PR 3220
	From Eugeniy Meshcheryakov <eugen@debian.org>:
	* lket/b2a/lket_b2a.c: Check that appNameTree exists before destroying.

2006-09-18  Martin Hunt  <hunt@redhat.com>

	* bench2/bench.rb: Remove the deprecated "-m" option
	to stpd. Also, don't use merge mode for relayfs.
	* bench2/run_binary_print: New test. Compare various ways of
	printing binary data.

2006-09-18  Martin Hunt  <hunt@redhat.com>

	* print.c (_stp_print_flush): Rewrite so one version works for
	relayfs or procfs. Use proper per-cpu functions.
	(_stp_reserve_bytes): New function. Reserve bytes in the output buffer.
	(_stp_print_binary): New function. Write a variable number of
	64-bit values directly into the output buffer.

	* string.c (_stp_sprintf): Rewrite using new per-cpu buffers.
	(_stp_vsprintf): Ditto.
	(_stp_string_cat_cstr): Ditto.
	(_stp_string_cat_char): Ditto.

	* runtime.h: Set defaults for MAXTRYLOCK and TRYLOCKDELAY to make
	runtime tests in bench2 happy.

2006-08-29  Li Guanglei <guanglei@cn.ibm.com>

	From Gui Jian <guijian@cn.ibm.com>
	* lket/b2a/lket_b2a.c, lket/b2a/lket_b2a.h:
	add the support to get_cycles() and sched_clock() timing
	mechanism for LKET.

2006-08-14  Will Cohen  <wcohen@redhat.com>

	PR 3037
	* string.c:
	* print.c: Remove includes for <linux/config.h>.

2006-08-11  David Smith  <dsmith@redhat.com>

	* lket/b2a/.cvsignore:  Added file to let cvs ignore generated
	files.

2006-07-21  Martin Hunt  <hunt@redhat.com>

	* runtime.h: Include compat.h.

2006-07-20  Martin Hunt  <hunt@redhat.com>

	* vsprintf.c (_stp_vsnprintf): %p format fixes.

2006-07-14  Josh Stone  <joshua.i.stone@intel.com>

	PR 2922
	* time.c (_stp_init_time): call cpufreq_get for each cpu from
	a non-atomic context (module init time).
	* time.c (__stp_init_time): remove call to cpufreq_get from IPI.

	* time.c (__stp_time_timer_callback): disable IRQ's to avoid
	perturbations in measurements.
	* time.c (_stp_gettimeofday_us): disable preemption to avoid CPU
	swaps while we're computing the time.

2006-07-12  Martin Hunt  <hunt@redhat.com>

	* runtime.h (for_each_cpu): Define for new kernels
	which no longer define it.

2006-07-11  Martin Hunt  <hunt@redhat.com>

	* string.c (_stp_text_str): Use __get_user().

2006-07-11  Martin Hunt  <hunt@redhat.com>

	* string.c (_stp_text_str): Add a parameter to support
	userspace strings too.
	* string.h: (_stp_text_str): Fix proto.

2006-07-11  Li Guanglei <guanglei@cn.ibm.com>

	* lket/b2a/lket_b2a.c: modified to be sync with
	the new addevent.process event hooks

2006-06-29  Li Guanglei <guanglei@cn.ibm.com>

	* lket/b2a/lket_b2a.c, lket/b2a/lket_b2a.h: modified to be
	sync with new _lket_trace()

2006-06-27  Roland McGrath  <roland@redhat.com>

	* loc2c-runtime.h: Add some comments.

2006-06-23  Josh Stone  <joshua.i.stone@intel.com>

	* time.c: Do cpufreq notification only if CONFIG_CPU_FREQ defined.

2006-06-21  Josh Stone  <joshua.i.stone@intel.com>

	PR 2525
	* time.c: Time-estimation with minimal dependency on xtime.

2006-06-16  Roland McGrath  <roland@redhat.com>

	* lket/b2a/Makefile.in: Regenerated with automake-1.9.6-2.

2006-06-09  Li Guanglei <guanglei@cn.ibm.com>

	* lket/b2a/lket_b2a.c, lket/b2a/lket_b2a.h: Rewrite
	according to the latest LKET's tapsets. Make it able
	to read the metainfo wrote by tapsets.

2006-06-02  Li Guanglei <guanglei@cn.ibm.com>

	* lket/b2a/lket_b2a.c: eliminate some compile warnings

2006-06-01  Li Guanglei <guanglei@cn.ibm.com>

	* lket/b2a/lket_b2a.h, lket/b2a/lket_b2a.c: make it able to
	read user added trace data and backtrace

2006-05-30  Martin Hunt  <hunt@redhat.com>

	* string.c (_stp_text_str): New function.
	* string.h (_stp_text_str): Declare.

2006-05-25  Martin Hunt  <hunt@redhat.com>

	* vsprintf.c (_stp_vsnprintf): Change %p to work like
	libc and automatically insert "0x" before the pointer.

2006-05-24  Josh Stone  <joshua.i.stone@intel.com>

	PR 2677
	* sym.c (_stp_symbol_sprint_basic): New function that returns
	just the symbol name, and doesn't bother with String.

2006-05-24  Li Guanglei <guanglei@cn.ibm.com>

	* lket/b2a/Makefile.am, lket/b2a/Makefile.in,
	lket/b2a/README, lket/b2a/lket_b2a.c,
	lket/b2a/lket_b2a.h: a binary to ascii converter used
	to convert LKET's default binary trace data.

2006-05-09  Li Guanglei <guanglei@cn.ibm.com>

	PR 2647
	Patch given by Gui Jian <guij@cn.ibm.com>
	* vsprintf.c: %0s support to print null-terminated string

2006-05-03  Josh Stone  <joshua.i.stone@intel.com>

	* loc2c-runtime.h (deref_string): resolved gcc "warning:
	assignment makes integer from pointer without a cast" when
	using a pointer as the source address.

2006-04-28  Martin Hunt  <hunt@redhat.com>

	* vsprintf.c (_stp_vsnprintf): Fix argument size for %p.

2006-04-17  Martin Hunt  <hunt@redhat.com>

	* vsprintf.c (_stp_vsnprintf): Fix endian
	before writing binary.
	(_stp_endian): New variable to control endianess.

2006-04-11  Tom Zanussi  <zanussi@us.ibm.com>

	* print.c (_stp_print_flush): Change TIMESTAMP_SIZE to
	STP_TIMESTAMP_SIZE to avoid conflicts with Suse kernels.

2006-04-10  Martin Hunt  <hunt@redhat.com>

	* string.c (_stp_string_cat_cstr): No need to copy
	terminating 0.

	* vsprintf.c (_stp_snprintf): New function.

	* stat-common.c (_stp_stat_print_histogram): Write a
	newline at the end of the histogram.

2006-04-09  Martin Hunt  <hunt@redhat.com>

	* print.c (_stp_print_flush): Send 'len" bytes
	instead of 'len+1', which included terminating 0.

	* string.c (_stp_sprintf): Call _stp_vsnprintf()
	instead of vsnprintf().
	(_stp_vsprintf): Ditto.

	* vsprintf.c: New file.

2006-04-05  Will Cohen  <wcohen@redhat.com>

	* string.h (__stp_stdout): Correct initialization.

2006-03-30  Martin Hunt  <hunt@redhat.com>

	* string.c (_stp_string_cat_cstr): Use memcpy() instead of strncpy().

2006-03-26  Martin Hunt  <hunt@redhat.com>

	* bench2/bench.rb (Bench::run): Instead of loading the module
	once and running against different numbers of threads, load
	and unload the module each time. Then keep track of failures
	per thread. Also use the new itest to keep the tests the same
	size regardless of the number of threads.
	(Bench::initialize): Make itest if needed.
	(Bench::load, Stapbench::load): Increase buffer size to 8MB.

	* bench2/itest.c: Change arg to be the number of threads
	instead of the number of millions of calls to make.
	This makes it easy to divide the work among multiple threads
	without making the test run many times longer.

2006-03-09  Martin Hunt  <hunt@redhat.com>

	* bench2: New directory containing a benchmark framework.

2006-02-10  Martin Hunt  <hunt@redhat.com>

	* copy.c (_stp_copy_from_user): Revert previous incorrect change.

2006-02-09  Martin Hunt  <hunt@redhat.com>

	* copy.c (_stp_copy_from_user): If access fails,
	return -1.

2006-01-25  Martin Hunt  <hunt@redhat.com>

	* stat.c (_stp_stat_init): Use _stp_alloc_percpu().
	(_stp_stat_del): New function.

	* alloc.c (_stp_alloc_percpu): New function.
	(_stp_free_percpu): New function.

2006-01-19  Martin Hunt  <hunt@redhat.com>

	* pmap-gen.c (_stp_pmap_get): Fix bug where old data
	from agg map could be returned after element was deleted.

2006-01-16  Josh Stone  <joshua.i.stone@intel.com>

	* stat.c (_stp_stat_clear): add a function that just
	clears a Stat, so we can use delete in the translator.

2006-01-16  Martin Hunt  <hunt@redhat.com>

	* map.c (_stp_pmap_agg): Return NULL when aggregation
	fails.

2006-01-15  Frank Ch. Eigler  <fche@elastic.org>

	* io.c (_stp_exit): Revert.

2006-01-10  Martin Hunt  <hunt@redhat.com>

	* io.c (_stp_exit): set STAP_SESSION_STOPPING.

2006-01-03  Frank Ch. Eigler  <fche@redhat.com>

	* io.c (_stp_softerror): New function.

2005-12-14  Martin Hunt  <hunt@redhat.com>

	* pmap-gen.c (_stp_pmap_new_*): Initialize lock.
	(_stp_pmap_set_*): Lock map while in use.
	(_stp_pmap_add_*): Lock map while in use.
	(_stp_pmap_get_cpu): Ditto.
	(_stp_pmap_get): Lock each per-cpu map.

	* map-gen.c: Define and use NULLRET for a NULL return value.
	* map.c (_stp_pmap_clear): New function.
	(_stp_pmap_agg): Lock each per-cpu map as
	it gets aggregated.

2005-12-13  Martin Hunt  <hunt@redhat.com>

	* map.c (_stp_map_sortn): Set a limit of 30 for n.  Automatically
	call _stp_map_sort() if more is requested.

2005-12-08  Martin Hunt  <hunt@redhat.com>

	* map.c (_new_map_create): Only increment map size if a node
	was moved off the free list.
	(_stp_map_size): New function.
	(_stp_pmap_size): New function.

2005-12-07  Martin Hunt  <hunt@redhat.com>

	PR1923
	* map.h (struct map_root): Remove membuf.
	(struct pmap): Define.
	(PMAP): Declare.

	* map.c (_stp_map_init): Use kmalloc() to allocate individual
	nodes instead of using vmalloc() to allocate one big chunk.
	(_stp_map_new): Use kmalloc.
	(_stp_pmap_new): Use kmalloc. Return a PMAP.
	(__stp_map_del): New function. Free all the nodes in a map.
	(_stp_map_del): Call __stp_map_del() then free map struct.
	(_stp_pmap_del): Takes a PMAP. Calls __stp_map_del() for
	each cpu.
	(_stp_pmap_printn_cpu): Change arg to PMAP.
	(_stp_pmap_agg): Change arg to PMAP.
	(_stp_pmap_get_agg): Change arg to PMAP.

	* map-stat.c (_stp_pmap_new_hstat_linear): Use PMAP
	instead of MAP. Fix allocations.
	(_stp_pmap_new_hstat_log): Ditto.

	* pmap-gen.c Fix all functions to take or return PMAPS
	instead of MAPS.

	* alloc.c: Remove everything except kmalloc_node().
	All runtime code now uses kmalloc() directly.

2005-11-30  Martin Hunt  <hunt@redhat.com>

	* io.c (_stp_exit): To prevent any possible interactions
	with the probed function, just set a flag here.

2005-11-28  Graydon Hoare  <graydon@redhat.com>

	* stat-common.c (_stp_stat_print_histogram): Various formatting
	corrections and aesthetic tweaks.
	(__stp_stat_add): Correction to linear bucket underflow cases.

2005-11-28  Martin Hunt  <hunt@redhat.com>

	* alloc.c (__stp_valloc_percpu): Use same code for up and smp.
	(_stp_per_cpu_ptr): New macro.
	* user/alloc.c: Ditto.
	* map.c: Use _stp_map_cpu_ptr().
	* map-stat.c: Ditto.
	* pmap-gen.c: Ditto.
	* runtime.h: Include alloc.c
	* user/runtime.h: Ditto.

	* map.c (_stp_pmap_del): Use _stp_free_percpu() to
	free pmaps.

	* map-stat.c (_stp_pmap_new_hstat_log): Fix typo. Call
	_stp_pmap_new() instead of _stp_map_new().

2005-11-11  Martin Hunt  <hunt@redhat.com>

	* map.h: Removed old API macros and prototypes.

2005-11-10  Martin Hunt  <hunt@redhat.com>

	* pmap-gen.c (_stp_pmap_get()): New function. Aggregates
	the per-cpu map nodes into an aggregation map node.

	* map.c (_stp_new_agg): Return a struct map_node *.
	(_stp_add_agg): If count is 0  when adding,
	just set the stats.

2005-11-10  Martin Hunt  <hunt@redhat.com>

	* map.c: Doc updates.
	(_stp_new_agg):

	* pmap-gen.c: Change a bunch of generated function names to
	avoid conflicts with maps with the same key and value types.

2005-11-10  Martin Hunt  <hunt@redhat.com>

	* map.c (_stp_cmp): Use _stp_div64().

2005-11-09  Martin Hunt  <hunt@redhat.com>

	* map.h: Remove HSTAT_LOG and HSTAT_LINEAR.
	* map-gen.c: Fix comment.
	* pmap-gen.c: Ditto.

2005-11-09  Martin Hunt  <hunt@redhat.com>

	* map.c (_stp_cmp): Patch to sort on stats.
	(_stp_map_sort): Ditto.
	(_stp_map_sortn): Ditto.

2005-11-09  Martin Hunt  <hunt@redhat.com>

	* map.c: Change order of includes.

2005-11-09  Martin Hunt  <hunt@redhat.com>

	* map.h (struct map_root): Delete fields
	used by old API.

	* map.c: Remove old map API functions.
	* map-stat.c (_stp_map_add_stat): Delete.
	(_stp_pmap_new_hstat_linear): Move here from map.c.
	(_stp_pmap_new_hstat_log): Ditto.

	* list.c: Deleted.
	* map-keys.c: Deleted.
	* map-values.c: Deleted.
	* map-int.c: Deleted.

2005-11-08  Martin Hunt  <hunt@redhat.com>

	* alloc.c (__stp_valloc_percpu): Fix call to vmalloc_node.
	(vmalloc_node): Remove nonworking code.

2005-11-08  Martin Hunt  <hunt@redhat.com>

	* map.c (_stp_map_init): New function. Extracted from _stp_map_new()
	so it can be used in _stp_pmap_new().
	(_stp_map_new): Call _stp_map_init().
	(_stp_pmap_new): New function.
	(_stp_pmap_new_hstat_linear): New function.
	(_stp_pmap_new_hstat_log): New function.
	(_stp_pmap_del): New function.
	(_stp_pmap_printn_cpu): New function.
	(_stp_pmap_printn): New function.
	(_stp_new_agg): New function.
	(_stp_add_agg): New function.
	(_stp_pmap_agg): New function.
	(_new_map_clear_node): New function.

	* map.h (struct map_root): Add Hist struct. Add copy
	and cmp function pointers for pmaps.

	* stat.h: Remove Stat struct. Replace with Hist struct
	that is limited to only histogram params.
	* map-stat.c: Fix up references to histogram params in map_root.
	* stat-common.c: Ditto.
	* stat.c: Ditto.

	* pmap-gen.c: New file. Implements per-cpu maps.

	* map-gen.c: Minor bug fixes. Use new VAL_IS_ZERO() macro.

	* alloc.c (vmalloc_node): For NUMA, provide a vmalloc that
	does node-local allocations.
	(_stp_alloc_cpu): A version of _stp_alloc() that does
	node-local allocations.
	(_stp_valloc): A version of _stp_valloc() that does
	node-local allocations.
	(__stp_valloc_percpu): New function. Like alloc_percpu()
	except uses _stp_valloc().
	(_stp_vfree_percpu): New function. Like free_percpu().

2005-11-04  Martin Hunt  <hunt@redhat.com>

	* runtime.h: #include <linux/version.h>.
	(init_module): Remove old ppc comment.
	ifdef _stp_kta so it only gets set for x86 and x86_64.

2005-10-31  Martin Hunt  <hunt@redhat.com>

	* ALL: Cleanup copyrights.

2005-10-28  Martin Hunt  <hunt@redhat.com>

	* map-gen.c (MAP_GET_VAL): Use the _stp_get_*() functions.
	(_stp_map_set_*): When setting to "", don't create
	node if key not found.
	(_stp_map_get_*): Use new MAP_GET_VAL. Return "" when
	string lookups not found.

	* map.c (_stp_get_int64): Check args and return
	0 on bad args or wrong type.
	(_stp_get_stat): Ditto.
	(_stp_key_get_int64): Ditto.
	(_stp_get_str): Check args and return
	"bad type" on bad args or wrong type.
	(_stp_key_get_str): Ditto.
	(_new_map_set_str): If setting to "", delete node.
	(_new_map_get_*): Delete. Use _stp_get_*().


2005-10-26  Martin Hunt  <hunt@redhat.com>

	* map-gen.c (KEY4CPY): Fix typo.
	(KEYCPY): Add missing semicolon.

2005-10-26  Martin Hunt  <hunt@redhat.com>

	* map-gen.c: New file.

	* map.c (_new_map_create, _new_map_del_node, _new_map_del_node,
	_new_map_set_int64, _new_map_set_str,_new_map_get_int64,
	_new_map_get_str, _new_map_get_stat, _new_map_set_stat):
	New internal functions for the new API.

	* map-int.c (__stp_map_set_int64): Modify to return an
	error code.
	* map-stat.c (_stp_map_add_stat): Ditto.
	* map-str (_stp_map_set_str): Ditto.

	* Doxyfile: Remove predefines NEED_STRING_VALS,
	NEED_STATS, NEED_INT64.
	* map-keys.c: Ditto.
	* list.c (_stp_list_new): Ditto. Also set map->list.
	* map-values.c: Ditto.

2005-10-19  Martin Hunt  <hunt@redhat.com>

	* runtime.h (_stp_kallsyms_lookup_tabled): Only
	compile this for systemtap. Runtime-only examples
	don't need it.

2005-10-19  Tom Zanussi  <zanussi@us.ibm.com>

	* print.c (_stp_print_flush): Switch to binary TIMESTAMP.

2005-10-14  Tom Zanussi  <zanussi@us.ibm.com>

	PR 1455
	* string.c (_stp_sprintf): Restore overwritten NULL byte.
	* print.c: Change STP_PRINT_BUF_LEN to correct size.

2005-10-06  Frank Ch. Eigler  <fche@elastic.org>

	PR 1332.
	* sym.h: New file to declare explicit symbol table struct.
	* runtime.h (_stp_kallsyms_lookup_tabled): Use it if available.
	* sym.c (_stp_symbol_sprint): HAS_LOOKUP mooted.

2005-09-30  Graydon Hoare  <graydon@redhat.com>

	* loc2c-runtime.h (_put_user_asm): Fix bracket-matching.

2005-09-23  Martin Hunt  <hunt@redhat.com>

	* map.c (_stp_map_sortn):  Call _stp_map_sort()
	when n is 0.

2005-09-23  Martin Hunt  <hunt@redhat.com>

	* map.c (_stp_cmp): New comparison function for sorts.
	(_stp_swap): New swap function for bubble sort.
	(_stp_map_sortn): New function.
	(_stp_map_sort): New function.
	(_stp_map_printn): New function.
	(_stp_map_print): Convert to a macro.

2005-09-22  Martin Hunt  <hunt@redhat.com>

	* regs.h: PPC64 version from
	Ananth N Mavinakayanahalli <ananth@in.ibm.com>

	* runtime.h (init_module): Only initialize _stp_kta and
	_stp_kallsyms_lookup on i386 and x86_64. Define HAS_LOOKUP.

	* sym.c (_stp_symbol_sprint): If HAS_LOOKUP is not
	defined, just print address in hex.

	* current.c (_stp_ret_addr): Add ppc64 version.
	(_stp_sprint_regs): PPC64 version from
	Ananth N Mavinakayanahalli <ananth@in.ibm.com>

2005-09-14  Martin Hunt  <hunt@redhat.com>

	* map.c (_stp_map_clear): New function. CLears a map but
	does not free it.

	* copy.c (__stp_strncpy_from_user): Add ppc64 support.
	(_stp_strncpy_from_user): Call access_ok().
	(_stp_string_from_user): Ditto.
	(_stp_copy_from_user): Ditto.

2005-09-12  Martin Hunt  <hunt@redhat.com>

	* io.c (ERR_STRING): Remove ansi codes.
	 (WARN_STRING): Ditto.

2005-09-12  Martin Hunt  <hunt@redhat.com>

	* arith.c (_stp_div64): Check for division by 0 or -1 first.
	This simplifies things and removes the possibility of x86_64
	trying LLONG_MIN/-1 and faulting.
	(_stp_mod64): Ditto.

2005-09-10  Frank Ch. Eigler  <fche@elastic.org>

	* arith.c: Add some comments explaining why the last change works.

2005-09-09  Roland McGrath  <roland@redhat.com>

	* loc2c-runtime.h [__powerpc__] (store_register): Add #undef.

2005-09-09  Martin Hunt  <hunt@redhat.com>

	* stat-common.c (_stp_stat_print_valtype): Use _stp_div64().
	* arith.c (_stp_div64): Check error before writing to it.
	Remove check against 32-bit LONG_MIN and -1. That only
	applies to 64-bit.
	(_stp_mod64): Ditto.

2005-09-08  Martin Hunt  <hunt@redhat.com>

	* arith.c (_stp_div64): Check for overflow.
	(_stp_mod64): Ditto.

2005-09-08  Martin Hunt  <hunt@redhat.com>

	* arith.c (_stp_div64): For 64-bit cpus, just use native
	division. Otherwise call _div64().
	(_stp_mod64): Call _mod64() isf necessary.
	(_div64): 64-bit division for 32-bit cpus.
	(_mod64): 64-bit modulo for 32-bit cpus.

	* map-values.c (_stp_map_entry_exists): Remove unused var.

2005-09-01  Martin Hunt  <hunt@redhat.com>

	* stack.c (_stp_stack_sprint): Add a verbose arg
	to pass along to underlying funcs.

2005-08-31  Martin Hunt  <hunt@redhat.com>

	* runtime.h (init_module): Include full prototype
	info in function cast to satisfy stap.

	* sym.c (_stp_kallsyms_lookup): Moved to runtime.h.
	* stack.c (_stp_kta): Moved to runtime.h.
	* runtime.h (init_module): Initialize _stp_kallsyms_lookup
	and _stp_kta.
	* probes.c (_stp_lookup_name): Replaced by kallsyms_lookup_name().
	* list.c (_stp_copy_argv_from_user): ifdef this function
	NEED_STRING_VALS.

2005-08-30  Roland McGrath  <roland@redhat.com>

	* loc2c-runtime.h (fetch_register, store_register): Rewritten to pass
	REGS to dwarf_register_<N> as a macro argument.
	[__i386__, __x86_64__]: Update dwarf_register_* macros.
	[__i386__] (dwarf_register_4): Define special case for stack pointer.

2005-08-29  Martin Hunt  <hunt@redhat.com>

	* list.c (_stp_copy_argv_from_user): Move to here.
	* copy.c (_stp_copy_argv_from_user): Delete.
	* runtime.h: Always include copy.h.

2005-08-25  Roland McGrath  <roland@redhat.com>

	* loc2c-runtime.h (deref_string): Rewritten using deref.

2005-08-24  Roland McGrath  <roland@redhat.com>

	* loc2c-runtime.h (deref_string): New macro.

2005-08-24  Martin Hunt  <hunt@redhat.com>

	* io.c (_stp_vlog): Send warnings and errors to STP_OOB_DATA.

2005-08-23  Martin Hunt  <hunt@redhat.com>

	* runtime.h: Add a prototype for _stp_dbug().

2005-08-22  Martin Hunt  <hunt@redhat.com>

	* runtime.h (kbug): New dbug macros that calls printk.

2005-08-21  Frank Ch. Eigler  <fche@redhat.com>

	* arith.c (*): Adapt to last_error context variable.

2005-08-19  Frank Ch. Eigler  <fche@elastic.org>

	* arith.c (_stp_random_pm): New function.

2005-08-19  Martin Hunt  <hunt@redhat.com>

	* print.c: Change ifdefs to STP_RELAYFS.
	* runtime.h: Ditto.
	* io.c (_stp_vlog): Call _stp_write instead of
	_stp_ctrl_send.
	* Makefile: Don't build stp-control.
	* README.doc: Update.
	* TODO: Update.

2005-08-12  Graydon Hoare  <graydon@redhat.com>

	* map-values.c (_stp_map_entry_exists): New function.
	* map.h (_stp_map_entry_exists): Declare it.

2005-08-12  Frank Ch. Eigler  <fche@elastic.org>

	* arith.c: New file to contain arithmetic helper functions.
	* builtin_functions.h: Remove, unused.
	* runtime.h: Include it.

2005-08-10  Roland McGrath  <roland@redhat.com>

	* loc2c-runtime.h (store_bitfield): Fix argument use.
	(store_deref): New macro (three flavors).

2005-08-03  Martin Hunt  <hunt@redhat.com>

	* io.c 	(_stp_vlog): Revert previous change for now.
	* print.c (_stp_print_flush): Ditto.

2005-08-03  Tom Zanussi  <trz@us.ibm.com>

	* io.c (_stp_vlog): Remove call to _stp_print_flush().
	* print.c (_stp_print_flush): _stp_warn() on first
	transport failure.

2005-08-01  Martin Hunt  <hunt@redhat.com>

	* io.c (_stp_vlog): Use _stp_pid instead os _stp_tport->pid.
	* print.c (_stp_print_flush): Don't need _stp_tport.
	*runtime.h (probe_start): Just call _stp_transport_init().
	(probe_exit): Just call _stp_transport_close().

2005-07-28  Graydon Hoare  <graydon@redhat.com>

	* loc2c-runtime.h: New file from elfutils CVS.

2005-07-20  Martin Hunt  <hunt@redhat.com>

	* io.c (_stp_vlog): Don't count transport failures for
	these messages.

2005-07-19  Martin Hunt  <hunt@redhat.com>

	* print.c (_stp_print_flush): Check return value and increment
	transport failures.

2005-07-14  Frank Ch. Eigler  <fche@redhat.com>

	* builtin_functions.h (printk): Use explicit format string.

2005-07-11  Graydon Hoare  <graydon@redhat.com>

	* builtin_functions.h: New file.

2005-07-10  Martin Hunt  <hunt@redhat.com>

	* runtime.h (init_module): Fix return value.

2005-07-08  Martin Hunt  <hunt@redhat.com>

	* runtime.h: Move some common pieces of modules into this file.
	Includes MODULE_LICENSE, cleanup_module and init_module.

	* print.c (_stp_print_flush): Rename "t" to "_stp_tport".

	* io.c (_stp_vlog): Ditto.

2005-07-01  Martin Hunt  <hunt@redhat.com>

	* string.c (_stp_string_init): CAll stp_error() on bad
	init.

	* list.c (_stp_list_clear): Call _stp_warn().

	* probes.c: Convert all _stp_log() calls to either stp_warn() or
	dbug().

	* print.c: Comment out dbug()s.

	* stat-common.c: Comment out dbug()s.

	* map.c (_stp_map_new): Call _stp_error() on a bad map type.
	Comment out dbug()s.

	* map-stat.c (_stp_map_new_hstat_log): Call _stp_warn().
	(_stp_map_new_hstat_linear): Ditto.

	* map-int.c: Comment out dbug()s.

	* map-str.c: Comment out dbug()s.

	* map-keys.c: Use _stp_warn().  Comment out dbug()s.

	* alloc.c (_stp_alloc): Call _stp_error().
	(_stp_valloc): Ditto.

	* io.c (_stp_warn): New function.
	(_stp_exit): New function.
	(_stp_error): New function.
	(_stp_dbug): New function.

	* runtime.h (dbug): Call _stp_dbug() if	DEBUG is defined.

2005-06-29  Martin Hunt  <hunt@redhat.com>

	* map-values.c (_stp_map_add_int64): Fix docs.
	* map-str.c: Fix some docs
	* map.c: Ditto.
	* map.doc: Ditto.

	* current.c (_stp_ret_addr_r): New function.
	(_stp_probe_addr): New function.
	(_stp_probe_addr_r): New function.

2005-06-27  Martin Hunt  <hunt@redhat.com>

	* Doxyfile (PREDEFINED): Added USE_RET_PROBES.

	* probes.c (_stp_register_kretprobes): New function.
	(_stp_unregister_kretprobes): New function.

2005-06-20  Tom Zanussi  <zanussi@us.ibm.com>

	* print.c: Made relayfs _stp_print_flush() use sequence counter.

	* runtime.h: Added sequence counter, moved subbuf_size etc to probes.

2005-06-18  Martin Hunt  <hunt@redhat.com>

	* counter.c: New file. Counter aggregations.

	* stat.c: New file. Stat aggregations.

	* stat.h: Header file for stats.

	* map-int.c: New file. Support for int64 values.

	* map-stat.c: New file. Support for stat values.

	* map-str.c: New file. Support for string values.

	* map-values.c: Now just includes the necessary map-*.c files.

	* stat-common.c: New file. Stats stuff common to Stats and maps
	containing stats.

	* Doxyfile: Bumped version to 0.6.

	* README: Renamed README.doc and reorganized.


2005-06-15  Martin Hunt  <hunt@redhat.com>

	* current.c (_stp_ret_addr): Fix computation for i386.

2005-06-14  Martin Hunt  <hunt@redhat.com>

	* README: Removed old docs and replaced with simple build
	instructions.

	* Makefile: New file.

	* probes/build: New file.

2005-06-13  Martin Hunt  <hunt@redhat.com>

	* print.c (next_fmt): Move this func to print.c.

2005-06-02  Martin Hunt  <hunt@redhat.com>

	* string.c (_stp_string_cat_cstr): Be sure result is
	always terminated.

	* print.c (_stp_vprintf): Fix typo.

2005-05-31  Martin Hunt  <hunt@redhat.com>

	* map.c (_stp_map_print): Now takes a format string instead of a name.

	* map.h (foreach): Update macro.

	* string.c (_stp_string_cat_char): New function.  Append a char
	to a string.

	* map-keys.c: Don't forget to undef KEYSYM, ALLKEYS and ALLKEYSD.

2005-05-26  Martin Hunt  <hunt@redhat.com>

	* current.c (_stp_sprint_regs): Implement for i386.

	* sym.c (_stp_symbol_sprint): Check name before trying to
	print it.
	(_stp_symbol_print): Change to macro that calls _stp_symbol_sprint().

2005-05-18  Martin Hunt  <hunt@redhat.com>

	* print.c: All functions except _stp_print_flush() are
	now macros which use _stp_stdout.

	* string.c: Add _stp_stdout support.  Data written to
	_stp_stdout is automatically flushed when the print buffer
	is full.

	* runtime.h: Always include string.c.

2005-05-17  Martin Hunt  <hunt@redhat.com>

	* map.c (needed_space): Use do_div().
	(_stp_map_print_histogram): Ditto.
	(_stp_map_print): Ditto.

	* map-values.c (_stp_map_add_int64_stat): Use do_div() when
	computing histogram bucket.

	* map-keys.c (_stp_map_key): Fix some warnings on 32-bit machines
	by using key_data casts.

2005-03-30  Martin Hunt  <hunt@redhat.com>

	* scbuf.c:  Make functions use per-cpu buffers as documented.
	_stp_scbuf_clear(): Now returns a pointer to the buffer.