summaryrefslogtreecommitdiffstats
path: root/tapset/ppc64/syscalls.stp
blob: 0a9d70f63b82a5907c6739b52ed9238599f6c064 (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

# compat_sys_nanosleep ________________________________________
#
# asmlinkage long compat_sys_nanosleep(struct compat_timespec __user *rqtp,
#			struct compat_timespec __user *rmtp)
#
probe syscall.compat_sys_nanosleep = kernel.function("compat_sys_nanosleep") {
	name = "compat_sys_nanosleep"
	rqtp_uaddr = $rqtp
	rmtp_uaddr = $rmtp
	argstr = sprintf("[0x%p], [0x%p]", rqtp_uaddr, rmtp_uaddr)
}
probe syscall.compat_sys_nanosleep.return =
	kernel.function("compat_sys_nanosleep").return {
	name = "compat_sys_nanosleep"
	retstr = returnstr(1)
}
# compat_sys_getitimer ________________________________________
#
# asmlinkage long compat_sys_getitimer(int which,
#			struct compat_itimerval __user *it)
#
probe syscall.compat_sys_getitimer = kernel.function("compat_sys_getitimer") {
	name = "compat_sys_getitimer"
	which = $which
	value_uaddr = $it
	argstr = sprintf("%s, [0x%p]", _itimer_which_str(which), value_uaddr)
}
probe syscall.compat_sys_getitimer.return =
	kernel.function("compat_sys_getitimer").return {
	name = "compat_sys_getitimer"
	retstr = returnstr(1)
}
# compat_sys_setitimer ________________________________________
#
# asmlinkage long compat_sys_setitimer(int which,
#			struct compat_itimerval __user *in,
#			struct compat_itimerval __user *out)
#
probe syscall.compat_sys_setitimer = kernel.function("compat_sys_setitimer") {
	name = "compat_sys_setitimer"
	which = $which
	value_uaddr = $in
	ovalue_uaddr = $out
	argstr = sprintf("%s, %s, 0x%p", _itimer_which_str($which),
			_struct_itimerval_u($in), $out)
}
probe syscall.compat_sys_setitimer.return =
	kernel.function("compat_sys_setitimer").return {
	name = "compat_sys_setitimer"
	retstr = returnstr(1)
}
# compat_sys_times ________________________________________
#
# asmlinkage long compat_sys_times(struct compat_tms __user *tbuf)
#
probe syscall.compat_sys_times = kernel.function("compat_sys_times") {
	name = "compat_sys_times"
	buf_uaddr = $tbuf
	argstr = sprintf("[0x%p]", buf_uaddr)
}
probe syscall.compat_sys_times.return =
	kernel.function("compat_sys_times").return {
	name = "compat_sys_times"
	retstr = returnstr(1)
}
# compat_sys_sigpending ________________________________________
#
# asmlinkage long compat_sys_sigpending(compat_old_sigset_t __user *set)
#
probe syscall.compat_sys_sigpending = kernel.function("compat_sys_sigpending") {
	name = "compat_sys_sigpending"
	set_uaddr = $set
	argstr = sprintf("[0x%p]", set_uaddr)
}
probe syscall.compat_sys_sigpending.return =
	kernel.function("compat_sys_sigpending").return {
	name = "compat_sys_sigpending"
	retstr = returnstr(1)
}
# compat_sys_sigprocmask ________________________________________
#
# asmlinkage long compat_sys_sigprocmask(int how,
#			compat_old_sigset_t __user *set,
#			compat_old_sigset_t __user *oset)
#
probe syscall.compat_sys_sigprocmask = kernel.function("compat_sys_sigprocmask") {
	name = "compat_sys_sigprocmask"
	how  = $how
	set_uaddr = $set
	oldset_uaddr = $oset
	argstr = sprintf("%s, [0x%p], [0x%p]", _sigprocmask_how_str($how),
			set_uaddr, oldset_uaddr)
}
probe syscall.compat_sys_sigprocmask.return =
	kernel.function("compat_sys_sigprocmask").return {
	name = "compat_sys_sigprocmask"
	retstr = returnstr(1)
}
# compat_sys_futex ________________________________________
#
# asmlinkage long compat_sys_futex(u32 __user *uaddr, int op, int val,
#		struct compat_timespec __user *utime, u32 __user *uaddr2,
#		int val3)
#
probe syscall.compat_sys_futex = kernel.function("compat_sys_futex") {
	name = "compat_sys_futex"
	futex_uaddr = $uaddr
	op = $op
	val = $val
	utime_uaddr = $utime
	uaddr2_uaddr = $uaddr2
	val3 = $val3
	argstr = sprintf("0x%p, %s, %d, %s", $uaddr, _futex_op_str($op),
				$val, _struct_timespec_u($utime))
}
probe syscall.compat_sys_futex.return =
	kernel.function("compat_sys_futex").return {
	name = "compat_sys_futex"
	retstr = returnstr(1)
}
# compat_sys_setrlimit ________________________________________
#
# asmlinkage long compat_sys_setrlimit(unsigned int resource,
#			struct compat_rlimit __user *rlim)
#
probe syscall.compat_sys_setrlimit = kernel.function("compat_sys_setrlimit") {
	name = "compat_sys_setrlimit"
	resource = $resource
	rlim_uaddr = $rlim
	argstr = sprintf("%s, %s", _rlimit_resource_str($resource),
				_struct_rlimit_u($rlim))
}
probe syscall.compat_sys_setrlimit.return =
	kernel.function("compat_sys_setrlimit").return {
	name = "compat_sys_setrlimit"
	retstr = returnstr(1)
}
# compat_sys_old_getrlimit ________________________________________
#
# asmlinkage long compat_sys_old_getrlimit(unsigned int resource,
#			struct compat_rlimit __user *rlim)
#
probe syscall.compat_sys_old_getrlimit =
	kernel.function("compat_sys_old_getrlimit") {
	name = "compat_sys_old_getrlimit"
	resource = $resource
	rlim_uaddr = $rlim
	argstr = sprintf("%s, %s", _rlimit_resource_str($resource),
				_struct_rlimit_u($rlim))
}
probe syscall.compat_sys_old_getrlimit.return =
	kernel.function("compat_sys_old_getrlimit").return {
	name = "compat_sys_old_getrlimit"
	retstr = returnstr(1)
}
# compat_sys_getrlimit ________________________________________
#
# asmlinkage long compat_sys_getrlimit (unsigned int resource,
#			struct compat_rlimit __user *rlim)
#
probe syscall.compat_sys_getrlimit = kernel.function("compat_sys_getrlimit") {
	name = "compat_sys_getrlimit"
	resource = $resource
	rlim_uaddr = $rlim
	argstr = sprintf("%s, %s", _rlimit_resource_str($resource),
				_struct_rlimit_u($rlim))
}
probe syscall.compat_sys_getrlimit.return =
	kernel.function("compat_sys_getrlimit").return {
	name = "compat_sys_getrlimit"
	retstr = returnstr(1)
}
# compat_sys_getrusage ________________________________________
#
# asmlinkage long compat_sys_getrusage(int who, struct compat_rusage __user *ru)
#
probe syscall.compat_sys_getrusage = kernel.function("compat_sys_getrusage") {
	name = "compat_sys_getrusage"
	who = $who
	usage_uaddr = $ru
	argstr = sprintf("%s, [0x%p]",_rusage_who_str($who), usage_uaddr)
}
probe syscall.compat_sys_getrusage.return =
	kernel.function("compat_sys_getrusage").return {
	name = "compat_sys_getrusage"
	retstr = returnstr(1)
}
# compat_sys_wait4 ________________________________________
#
# long compat_sys_wait4(compat_pid_t pid, compat_uint_t __user *stat_addr,
#			int options, struct compat_rusage __user *ru)
#
probe syscall.compat_sys_wait4 = kernel.function("compat_sys_wait4") {
	name = "compat_sys_wait4"
	pid = $pid
	status_uaddr = $stat_addr
	options = $options
	rusage_uaddr = $ru
	argstr = sprintf("%d, [0x%p], %s, [0x%p]", $pid, status_uaddr,
			_wait4_opt_str($options), rusage_uaddr)
}
probe syscall.compat_sys_wait4.return =
	kernel.function("compat_sys_wait4").return {
	name = "compat_sys_wait4"
	retstr = returnstr(1)
}
# compat_sys_sched_setaffinity ________________________________________
#
# asmlinkage long compat_sys_sched_setaffinity(compat_pid_t pid,
#			unsigned int len,
#			compat_ulong_t __user *user_mask_ptr)
#
probe syscall.compat_sys_sched_setaffinity = kernel.function("compat_sys_sched_setaffinity") {
	name = "compat_sys_sched_setaffinity"
	pid = $pid
	len = $len
	mask_uaddr = $user_mask_ptr
	argstr = sprintf("%d, %d, [0x%p]", pid, len, mask_uaddr)
}
probe syscall.compat_sys_sched_setaffinity.return =
	kernel.function("compat_sys_sched_setaffinity").return {
	name = "compat_sys_sched_setaffinity"
	retstr = returnstr(1)
}
# compat_sys_sched_getaffinity ________________________________________
#
# asmlinkage long compat_sys_sched_getaffinity(compat_pid_t pid,
#			unsigned int len,
#			compat_ulong_t __user *user_mask_ptr)
#
probe syscall.compat_sys_sched_getaffinity = kernel.function("compat_sys_sched_getaffinity") {
	name = "compat_sys_sched_getaffinity"
	pid = $pid
	len = $len
	mask_uaddr = $user_mask_ptr
	argstr = sprintf("%d, %d, [0x%p]", pid, len, mask_uaddr)
}
probe syscall.compat_sys_sched_getaffinity.return =
	kernel.function("compat_sys_sched_getaffinity").return {
	name = "compat_sys_sched_getaffinity"
	retstr = returnstr(1)
}
# compat_sys_utime ________________________________________
#
# asmlinkage long compat_sys_utime(char __user *filename,
#			struct compat_utimbuf __user *t)
#
probe syscall.compat_sys_utime = kernel.function("compat_sys_utime") {
	name = "compat_sys_utime"
	filename = user_string($filename)
	buf_uaddr = $t
	argstr = sprintf("%s, [0x%p]", filename, buf_uaddr)
}
probe syscall.compat_sys_utime.return =
	kernel.function("compat_sys_utime").return {
	name = "compat_sys_utime"
	retstr = returnstr(1)
}
# compat_sys_utimes ________________________________________
#
# asmlinkage long compat_sys_utimes(char __user *filename,
#			struct compat_timeval __user *t)
#
probe syscall.compat_sys_utimes = kernel.function("compat_sys_utimes") {
	name = "compat_sys_utimes"
	filename = user_string($filename)
	tvp_uaddr = $t
	argstr = sprintf("%s, %s", filename, _struct_timeval_u(tvp_uaddr))
}
probe syscall.compat_sys_utimes.return =
	kernel.function("compat_sys_utimes").return {
	name = "compat_sys_utimes"
	retstr = returnstr(1)
}
# compat_sys_newstat ________________________________________
#
# asmlinkage long compat_sys_newstat(char __user * filename,
#			struct compat_stat __user *statbuf)
#
probe syscall.compat_sys_newstat = kernel.function("compat_sys_newstat") {
	name = "compat_sys_newstat"
	file_name = user_string($filename)
	buf_uaddr = $statbuf
	argstr = sprintf("\"%s\", [0x%p]", file_name, buf_uaddr)
}
probe syscall.compat_sys_newstat.return =
	kernel.function("compat_sys_newstat").return {
	name = "compat_sys_newstat"
	retstr = returnstr(1)
}
# compat_sys_newlstat ________________________________________
#
# asmlinkage long compat_sys_newlstat(char __user * filename,
#		struct compat_stat __user *statbuf)
#
probe syscall.compat_sys_newlstat = kernel.function("compat_sys_newlstat") {
	name = "compat_sys_newlstat"
	file_name = user_string($filename)
	buf_uaddr = $statbuf
	argstr = sprintf("\"%s\", [0x%p]", file_name, buf_uaddr)
}
probe syscall.compat_sys_newlstat.return =
	kernel.function("compat_sys_newlstat").return {
	name = "compat_sys_newlstat"
	retstr = returnstr(1)
}
# compat_sys_newfstat ________________________________________
#
# asmlinkage long compat_sys_newfstat(unsigned int fd,
# 			 struct compat_stat __user * statbuf)
#
probe syscall.compat_sys_newfstat = kernel.function("compat_sys_newfstat") {
	name = "compat_sys_newfstat"
	filedes = $fd
	buf_uaddr = $statbuf
	argstr = sprintf("%d, [0x%p]", filedes, buf_uaddr)
}
probe syscall.compat_sys_newfstat.return =
	kernel.function("compat_sys_newfstat").return {
	name = "compat_sys_newfstat"
	retstr = returnstr(1)
}
# compat_sys_statfs ________________________________________
#
# asmlinkage long compat_sys_statfs(const char __user *path,
#		struct compat_statfs __user *buf)
#
probe syscall.compat_sys_statfs = kernel.function("compat_sys_statfs") {
	name = "compat_sys_statfs"
	path = user_string($path)
	buf_uaddr = $buf
	argstr = sprintf("%s, [0x%p]", path, buf_uaddr)
}
probe syscall.compat_sys_statfs.return =
	kernel.function("compat_sys_statfs").return {
	name = "compat_sys_statfs"
	retstr = returnstr(1)
}
# compat_sys_fstatfs ________________________________________
#
# asmlinkage long compat_sys_fstatfs(unsigned int fd,
#		struct compat_statfs __user *buf)
#
probe syscall.compat_sys_fstatfs = kernel.function("compat_sys_fstatfs") {
	name = "compat_sys_fstatfs"
	fd = $fd
	buf_uaddr = $buf
	argstr = sprintf("%d, [0x%p]", fd, buf_uaddr)
}
probe syscall.compat_sys_fstatfs.return =
	kernel.function("compat_sys_fstatfs").return {
	name = "compat_sys_fstatfs"
	retstr = returnstr(1)
}
# compat_sys_ioctl ________________________________________
#
# asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd,
#			unsigned long arg)
#
probe syscall.compat_sys_ioctl = kernel.function("compat_sys_ioctl") {
	name = "compat_sys_ioctl"
	d = $fd
	request = cmd
	arg = $arg
	argstr = sprintf("%d, %d, [0x%p]", fd, request, arg)
}
probe syscall.compat_sys_ioctl.return =
	kernel.function("compat_sys_ioctl").return {
	name = "compat_sys_ioctl"
	retstr = returnstr(1)
}
# compat_sys_fcntl64 ________________________________________
#
# asmlinkage long compat_sys_fcntl64(unsigned int fd, unsigned int cmd,
#			unsigned long arg)
#
probe syscall.compat_sys_fcntl64 = kernel.function("compat_sys_fcntl64") {
	name = "compat_sys_fcntl64"
	fd = $fd
	cmd = $cmd
	arg = $arg
	argstr = sprintf("%d, %s, [0x%p]", fd, _fcntl_cmd_str($cmd), arg)
}
probe syscall.compat_sys_fcntl64.return =
	kernel.function("compat_sys_fcntl64").return {
	name = "compat_sys_fcntl64"
	retstr = returnstr(1)
}
# compat_sys_fcntl ________________________________________
#
# asmlinkage long compat_sys_fcntl(unsigned int fd, unsigned int cmd,
#			unsigned long arg)
#
probe syscall.compat_sys_fcntl = kernel.function("compat_sys_fcntl") {
	name = "compat_sys_fcntl"
	fd = $fd
	cmd = $cmd
	arg = $arg
	argstr = sprintf("%d, %s, 0x%p", fd, _fcntl_cmd_str($cmd), arg)
}
probe syscall.compat_sys_fcntl.return =
	kernel.function("compat_sys_fcntl").return {
	name = "compat_sys_fcntl"
	retstr = returnstr(1)
}
# compat_sys_io_setup ________________________________________
#
# asmlinkage long compat_sys_io_setup(unsigned nr_reqs, u32 __user *ctx32p)
#
probe syscall.compat_sys_io_setup = kernel.function("compat_sys_io_setup") {
	name = "compat_sys_io_setup"
	maxevents = $nr_reqs
	ctxp_uaddr = $ctx32p
	argstr = sprintf("%d, [0x%p]", maxevents, ctxp_uaddr)
}
probe syscall.compat_sys_io_setup.return =
	kernel.function("compat_sys_io_setup").return {
	name = "compat_sys_io_setup"
	retstr = returnstr(1)
}
# compat_sys_io_getevents ________________________________________
#
# asmlinkage long compat_sys_io_getevents(aio_context_t ctx_id,
#				unsigned long min_nr,
#				unsigned long nr,
#				struct io_event __user *events,
#				struct compat_timespec __user *timeout)
#
probe syscall.compat_sys_io_getevents = kernel.function("compat_sys_io_getevents") {
	name = "compat_sys_io_getevents"
	ctx_id = $ctx_id
	min_nr = $min_nr
	nr = $nr
	events_uaddr = $events
	timeout_uaddr = $timeout
	argstr = sprintf("%d, %d, %d, [0x%p],[0x%p]", ctx_id, min_nr, nr,
				events_uaddr, timeout_uaddr)
}
probe syscall.compat_sys_io_getevents.return =
	kernel.function("compat_sys_io_getevents").return {
	name = "compat_sys_io_getevents"
	retstr = returnstr(1)
}
# compat_sys_io_submit ________________________________________
#
# asmlinkage long compat_sys_io_submit(aio_context_t ctx_id, int nr,
#				u32 __user *iocb)
#
probe syscall.compat_sys_io_submit = kernel.function("compat_sys_io_submit") {
	name = "compat_sys_io_submit"
	ctx_id = $ctx_id
	nr = $nr
	iocbpp_uaddr = iocb
	argstr = sprintf("%d, %d, [0x%p]", ctx_id, nr, iocbpp_uaddr)
}
probe syscall.compat_sys_io_submit.return =
	kernel.function("compat_sys_io_submit").return {
	name = "compat_sys_io_submit"
	retstr = returnstr(1)
}
# compat_sys_mount ________________________________________
#
# asmlinkage long compat_sys_mount(char __user * dev_name,
#			char __user * dir_name,
#			char __user * type,
#			unsigned long flags,
#			void __user * data)
#
probe syscall.compat_sys_mount = kernel.function("compat_sys_mount") {
	name = "compat_sys_mount"
	source = user_string($dev_name)
	target = user_string($dir_name)
	filesystemtype = user_string($type)
	mountflags = $flags
	data_uaddr = $data
	argstr = sprintf("\"%s\", \"%s\", \"%s\", %s, [0x%p]", source,
			target, filesystemtype, _mountflags_str($flags),
			data_uaddr)
}
probe syscall.compat_sys_mount.return =
	kernel.function("compat_sys_mount").return {
	name = "compat_sys_mount"
	retstr = returnstr(1)
}
# compat_sys_getdents ________________________________________
#
# asmlinkage long compat_sys_getdents(unsigned int fd,
#				struct compat_linux_dirent __user *dirent,
#				unsigned int count)
#
probe syscall.compat_sys_getdents = kernel.function("compat_sys_getdents") {
	name = "compat_sys_getdentso"
	fd = $fd
	dirent_uaddr = $dirent
	count = $count
	argstr = sprintf("%d, [0x%p], %d", fd, dirp_uaddr, count)
}
probe syscall.compat_sys_getdents.return =
	kernel.function("compat_sys_getdents").return {
	name = "compat_sys_getdents"
	retstr = returnstr(1)
}
# compat_sys_getdents64 ________________________________________
#
# asmlinkage long compat_sys_getdents64(unsigned int fd,
#				struct linux_dirent64 __user * dirent,
#				unsigned int count)
#
probe syscall.compat_sys_getdents64 = kernel.function("compat_sys_getdents64") {
	name = "compat_sys_getdents64"
	fd = $fd
	dirent_uaddr = $dirent
	count = $count
	argstr = sprintf("%d, [0x%p], %d", fd, dirp_uaddr, count)
}
probe syscall.compat_sys_getdents64.return =
	kernel.function("compat_sys_getdents64").return {
	name = "compat_sys_getdents64"
	retstr = returnstr(1)
}
# compat_sys_readv ________________________________________
#
# asmlinkage ssize_t compat_sys_readv(unsigned long fd,
#				const struct compat_iovec __user *vec,
#				unsigned long vlen)
#
probe syscall.compat_sys_readv = kernel.function("compat_sys_readv") {
	name = "compat_sys_readv"
/* FIXME: RHEL4 U3 ppc64 can't resolve $fd */
#	fd = $fd
	vector_uaddr = $vec
	count = $vlen
	argstr = sprintf("unknown fd, [0x%p], 0x%p", vector_uaddr, count)
}
probe syscall.compat_sys_readv.return =
	kernel.function("compat_sys_readv").return {
	name = "compat_sys_readv"
	retstr = returnstr(1)
}
# compat_sys_writev ________________________________________
#
# asmlinkage ssize_t compat_sys_writev(unsigned long fd,
#				const struct compat_iovec __user *vec,
#				unsigned long vlen)
#
probe syscall.compat_sys_writev = kernel.function("compat_sys_writev") {
	name = "compat_sys_writev"
/* FIXME: RHEL4 U3 can't resolve $fd */
#	fd = $fd
	vector_uaddr = $vec
	count = $vlen
	argstr = sprintf("unknown fd, [0x%p], %d", vector_uaddr, $vlen)
}
probe syscall.compat_sys_writev.return =
	kernel.function("compat_sys_writev").return {
	name = "compat_sys_writev"
	retstr = returnstr(1)
}
# compat_sys_select ________________________________________
#
# asmlinkage long compat_sys_select(int n, compat_ulong_t __user *inp,
#			compat_ulong_t __user *outp,
#			compat_ulong_t __user *exp,
#			struct compat_timeval __user *tvp)
#
probe syscall.compat_sys_select = kernel.function("compat_sys_select") {
	name = "compat_sys_select"
	n = $n
	readfds_uaddr = $inp
	writefds_uaddr = $outp
	exceptfds_uaddr = $exp
	timeout_uaddr = $tvp
	argstr = sprintf("%d, %s, %s, %s, %s", n,
			_fd_set_u(readfds_uaddr),
			_fd_set_u(writefds_uaddr),
			_fd_set_u(exceptfds_uaddr),
			_struct_timeval_u(timeout_uaddr))

}
probe syscall.compat_sys_select.return =
	kernel.function("compat_sys_select").return {
	name = "compat_sys_select"
	retstr = returnstr(1)
}
# compat_sys_nfsservctl ________________________________________
#
# asmlinkage long compat_sys_nfsservctl(int cmd,
#				struct compat_nfsctl_arg __user *arg,
#				union compat_nfsctl_res __user *res)
#
probe syscall.compat_sys_nfsservctl = kernel.function("compat_sys_nfsservctl") {
	name = "compat_sys_nfsservctl"
	cmd = $cmd
	argp_uaddr = $arg
	resp_uaddr = $res
	argstr = sprintf("0x%p, [0x%p], [0x%p]", cmd, argp_uaddr, resp_uaddr)
}
probe syscall.compat_sys_nfsservctl.return =
	kernel.function("compat_sys_nfsservctl").return {
	name = "compat_sys_nfsservctl"
	retstr = returnstr(1)
}
# compat_sys_semctl ________________________________________
#
# long compat_sys_semctl(int first, int second, int third, void __user *uptr)
#
probe syscall.compat_sys_semctl = kernel.function("compat_sys_semctl") {
	name = "compat_sys_semctl"
	semid = $first
	semnum = $second
	cmd = $third
#	arg_uaddr = $uptr
	argstr = sprintf("%d, %d, %s", semid, semnum, _semctl_cmd(cmd))
}
probe syscall.compat_sys_semctl.return =
	kernel.function("compat_sys_semctl").return {
	name = "compat_sys_semctl"
	retstr = returnstr(1)
}
# compat_sys_msgsnd ________________________________________
#
# long compat_sys_msgsnd(int first, int second, int third, void __user *uptr)
#
probe syscall.compat_sys_msgsnd = kernel.function("compat_sys_msgsnd") {
	name = "compat_sys_msgsnd"
	first = $first
	second = $second
	third = $third
	uptr_uaddr = $uptr
	argstr = sprintf("%d, %d, %d, [0x%p]", first, second, third,
				uptr_uaddr)
}
probe syscall.compat_sys_msgsnd.return =
	kernel.function("compat_sys_msgsnd").return {
	name = "compat_sys_msgsnd"
	retstr = returnstr(1)
}
# compat_sys_msgrcv ________________________________________
#
# long compat_sys_msgrcv(int first, int second, int msgtyp, int third,
#			int version, void __user *uptr)
#
probe syscall.compat_sys_msgrcv = kernel.function("compat_sys_msgrcv") {
	name = "compat_sys_msgrcv"
	first = $first
	second = $second
	third = $third
	uptr_uaddr = $uptr
	argstr = sprintf("%d, %d, %d, [0x%p]", first, second, third,
				uptr_uaddr)
}
probe syscall.compat_sys_msgrcv.return =
	kernel.function("compat_sys_msgrcv").return {
	name = "compat_sys_msgrcv"
	retstr = returnstr(1)
}
# compat_sys_msgctl ________________________________________
#
# long compat_sys_msgctl(int first, int second, void __user *uptr)
#
probe syscall.compat_sys_msgctl = kernel.function("compat_sys_msgctl") {
	name = "compat_sys_msgctl"
	first = $first
	second = $second
	uptr_uaddr = $uptr
	argstr = sprintf("%d, %d, [0x%p]", first, second, uptr_uaddr)
}
probe syscall.compat_sys_msgctl.return =
	kernel.function("compat_sys_msgctl").return {
	name = "compat_sys_msgctl"
	retstr = returnstr(1)
}
# compat_sys_shmat ________________________________________
#
# long compat_sys_shmat(int first, int second, compat_uptr_t third,
#			int version, void __user *uptr)
#
probe syscall.compat_sys_shmat = kernel.function("compat_sys_shmat") {
	name = "compat_sys_shmat"
	first = $first
	second = $second
	third = $third
	uptr_uaddr = $uptr
	argstr = sprintf("%d, %d, %d, [0x%p]", first, second, third,
				uptr_uaddr)
}
probe syscall.compat_sys_shmat.return =
	kernel.function("compat_sys_shmat").return {
	name = "compat_sys_shmat"
	retstr = returnstr(1)
}
# compat_sys_shmctl ________________________________________
#
# long compat_sys_shmctl(int first, int second, void __user *uptr)
#
probe syscall.compat_sys_shmctl = kernel.function("compat_sys_shmctl") {
	name = "compat_sys_shmctl"
	first = $first
	second = $second
	uptr_uaddr = $uptr
	argstr = sprintf("%d, %d, [0x%p]", first, second, uptr_uaddr)
}
probe syscall.compat_sys_shmctl.return =
	kernel.function("compat_sys_shmctl").return {
	name = "compat_sys_shmctl"
	retstr = returnstr(1)
}
# compat_sys_semtimedop ________________________________________
#
# long compat_sys_semtimedop(int semid, struct sembuf __user *tsems,
#		unsigned nsops, const struct compat_timespec __user *timeout)
#
probe syscall.compat_sys_semtimedop = kernel.function("compat_sys_semtimedop") {
	name = "compat_sys_semtimedop"
	semid = $semid
	sops_uaddr = tsems
	nsops = $nsops
	timeout_uaddr = $timeout
	argstr = sprintf("%d, [0x%p], %d, %s", semid, sops_uaddr, nsops,
			_struct_timespec_u(timeout_uaddr))
}
probe syscall.compat_sys_semtimedop.return =
	kernel.function("compat_sys_semtimedop").return {
	name = "compat_sys_semtimedop"
	retstr = returnstr(1)
}
# compat_sys_mq_open ________________________________________
#
# asmlinkage long compat_sys_mq_open(const char __user *u_name,
#			int oflag, compat_mode_t mode,
#			struct compat_mq_attr __user *u_attr)
#
probe syscall.compat_sys_mq_open = kernel.function("compat_sys_mq_open") {
	name = "compat_sys_mq_open"
	name_uaddr = $u_name
	name_str = user_string($u_name)
	oflag = $oflag
	mode = $mode
	u_attr_uaddr = $u_attr
	argstr = sprintf("\"%s\", %d, %d, [0x%p]", name_str, oflag, mode,
				u_attr_uaddr) 
}
probe syscall.compat_sys_mq_open.return =
	kernel.function("compat_sys_mq_open").return {
	name = "compat_sys_mq_open"
	retstr = returnstr(1)
}
# compat_sys_mq_timedsend ________________________________________
#
# asmlinkage long compat_sys_mq_timedsend(mqd_t mqdes,
#			const char __user *u_msg_ptr,
#			size_t msg_len, unsigned int msg_prio,
#			const struct compat_timespec __user *u_abs_timeout)
#
probe syscall.compat_sys_mq_timedsend = kernel.function("compat_sys_mq_timedsend") {
	name = "compat_sys_mq_timedsend"
	mqdes = $mqdes
	msg_ptr_uaddr = $u_msg_ptr
	msg_len = $msg_len
	msg_prio = $msg_prio
	abs_timeout_uaddr = $u_abs_timeout
	argstr = "FIXME"
}
probe syscall.compat_sys_mq_timedsend.return =
	kernel.function("compat_sys_mq_timedsend").return {
	name = "compat_sys_mq_timedsend"
	retstr = returnstr(1)
}
# compat_sys_mq_timedreceive ________________________________________
#
# asmlinkage ssize_t compat_sys_mq_timedreceive(mqd_t mqdes,
#			char __user *u_msg_ptr,
#			size_t msg_len, unsigned int __user *u_msg_prio,
#			const struct compat_timespec __user *u_abs_timeout)
#
probe syscall.compat_sys_mq_timedreceive = kernel.function("compat_sys_mq_timedreceive") {
	name = "compat_sys_mq_timedreceive"
	mqdes = $mqdes
	msg_ptr_uaddr = $u_msg_ptr
	msg_len = $msg_len
	msg_prio_uaddr = $u_msg_prio
	abs_timout_uaddr = $u_abs_timeout
	argstr = "FIXME"
}
probe syscall.compat_sys_mq_timedreceive.return =
	kernel.function("compat_sys_mq_timedreceive").return {
	name = "compat_sys_mq_timedreceive"
	retstr = returnstr(1)
}
# compat_sys_mq_notify ________________________________________
#
# asmlinkage long compat_sys_mq_notify(mqd_t mqdes,
#			const struct compat_sigevent __user *u_notification)
#
probe syscall.compat_sys_mq_notify = kernel.function("compat_sys_mq_notify") {
	name = "compat_sys_mq_notify"
	mqdes = $mqdes
	notification_uaddr = $u_notification
	argstr = sprintf("%d, [0x%p]", mqdes, notification_uaddr)
}
probe syscall.compat_sys_mq_notify.return =
	kernel.function("compat_sys_mq_notify").return {
	name = "compat_sys_mq_notify"
	retstr = returnstr(1)
}
# compat_sys_mq_getsetattr ________________________________________
#
# asmlinkage long compat_sys_mq_getsetattr(mqd_t mqdes,
#			const struct compat_mq_attr __user *u_mqstat,
#			struct compat_mq_attr __user *u_omqstat)
#
probe syscall.compat_sys_mq_getsetattr =
	kernel.function("compat_sys_mq_getsetattr") {
	name = "compat_sys_mq_getsetattr"
	mqdes = $mqdes
	u_mqstat_uaddr = $u_mqstat
	u_omqstat_uaddr = $u_omqstat
	argstr = sprintf("%d, [0x%p], [0x%p]", mqdes, u_mqstat_uaddr,
				u_omqstat_uaddr)
}
probe syscall.compat_sys_mq_getsetattr.return =
	kernel.function("compat_sys_mq_getsetattr").return {
	name = "compat_sys_mq_getsetattr"
	retstr = returnstr(1)
}
# compat_sys_keyctl ________________________________________
#
# asmlinkage long compat_sys_keyctl(u32 option,
#			u32 arg2, u32 arg3, u32 arg4, u32 arg5)
#
/* FIXME 
probe syscall.compat_sys_keyctl = kernel.function("compat_sys_keyctl") {
	name = "compat_sys_keyctl"
	option = $option
	arg2 = $arg2
	arg3 = $arg3
	arg4 = $arg4
	arg5 = $arg5
	argstr = sprintf("%d, %d, %d, %d, %d", option, arg2, arg3,
				arg4, arg5)
}
probe syscall.compat_sys_keyctl.return =
	kernel.function("compat_sys_keyctl").return {
	name = "compat_sys_keyctl"
	retstr = returnstr(1)
}
*/
# compat_sys_setsockopt ________________________________________
#
# asmlinkage long compat_sys_setsockopt(int fd, int level, int optname,
#			char __user *optval, int optlen)
#
probe syscall.compat_sys_setsockopt = kernel.function("compat_sys_setsockopt") {
	name = "compat_sys_setsockopt"
	fd = $fd
	level = $level
	level_str = _sockopt_level_str($level)
	optname = $optname
	optname_str = _sockopt_optname_str($optname)
	optval_uaddr = $optval
	optlen = $optlen
	argstr = sprintf("%d, %s, %s, [0x%p], %d", $fd, level_str,
				optname_str, optval_uaddr, $optlen)
}
probe syscall.compat_sys_setsockopt.return =
	kernel.function("compat_sys_setsockopt").return {
	name = "compat_sys_setsockopt"
	retstr = returnstr(1)
}
# compat_sys_getsockopt ________________________________________
#
# asmlinkage long compat_sys_getsockopt(int fd, int level, int optname,
#			char __user *optval, int __user *optlen)
#
probe syscall.compat_sys_getsockopt = kernel.function("compat_sys_getsockopt") {
	name = "compat_sys_getsockopt"
	s = $fd
	level = $level
	level_str = _sockopt_level_str($level)
	optname = $optname
	optname_str = _sockopt_optname_str($optname)
	optval_uaddr = $optval
	/* FIXME */
	optlen_uaddr = $optlen
	argstr = sprintf("%d, %s, %s, [0x%p], [0x%p]", s, level_str,
			optname_str, optval_uaddr, optlen_uaddr)
}
probe syscall.compat_sys_getsockopt.return =
	kernel.function("compat_sys_getsockopt").return {
	name = "compat_sys_getsockopt"
	retstr = returnstr(1)
}
# compat_sys_sendmsg ________________________________________
#
# asmlinkage long compat_sys_sendmsg(int fd,
#				struct compat_msghdr __user *msg,
#				unsigned flags)
#
probe syscall.compat_sys_sendmsg = kernel.function("compat_sys_sendmsg") {
	name = "compat_sys_sendmsg"
	s = $fd
	msg_uaddr = $msg
	flags = $flags
	argstr = sprintf("%d, [0x%p], %s", s, msg_uaddr,
				_send_flags_str($flags))
}
probe syscall.compat_sys_sendmsg.return =
	kernel.function("compat_sys_sendmsg").return {
	name = "compat_sys_sendmsg"
	retstr = returnstr(1)
}
# compat_sys_recvmsg ________________________________________
#
# asmlinkage long compat_sys_recvmsg(int fd,
#				struct compat_msghdr __user *msg,
#				unsigned int flags)
#
probe syscall.compat_sys_recvmsg = kernel.function("compat_sys_recvmsg") {
	name = "compat_sys_recvmsg"
	s = $fd
	msg_uaddr = $msg
	flags = $flags
	argstr = sprintf("%d, [0x%p], %s", s, msg_uaddr,
				_send_flags_str($flags))
}
probe syscall.compat_sys_recvmsg.return =
	kernel.function("compat_sys_recvmsg").return {
	name = "compat_sys_recvmsg"
	retstr = returnstr(1)
}
# compat_sys_socketcall ________________________________________
#
# asmlinkage long compat_sys_socketcall(int call, u32 __user *args)
#
probe syscall.compat_sys_socketcall = kernel.function("compat_sys_socketcall") {
	name = "compat_sys_socketcall"
	call = $call
	args_uaddr = $args
	argstr = sprintf("%d, [0x%p]", call, args_uaddr)
}
probe syscall.compat_sys_socketcall.return =
	kernel.function("compat_sys_socketcall").return {
	name = "compat_sys_socketcall"
	retstr = returnstr(1)
}

#
# These system calls are removed in kernel version > 2.6.9-34????
#

%( kernel_vr <= "2.6.9-34" %?
# acct _______________________________________________________
# long sys_acct(const char __user *name)

probe syscall.acct = kernel.function("sys_acct") {
	name = "acct"
        filename = user_string($name)
	argstr = filename
}
probe syscall.acct.return = kernel.function("sys_acct").return {
	name = "acct"
	retstr = returnstr(1)
}

# add_key ____________________________________________________
# long sys_add_key(const char __user *_type,
#             const char __user *_description,
#             const void __user *_payload,
#             size_t plen,
#             key_serial_t ringid)
probe syscall.add_key = kernel.function("sys_add_key") {
	name = "add_key"
	type_uaddr = $_type
	description_auddr = $_description
	payload_uaddr = $_payload
	plen = $plen
	ringid = $ringid
	argstr = "add_key"
}
probe syscall.add_key.return = kernel.function("sys_add_key").return {
	name = "add_key"
	retstr = returnstr(1)
}

# quotactl ___________________________________________________
#
# asmlinkage long
# sys_quotactl(unsigned int cmd,
#		  const char __user *special,
#		  qid_t id,
#		  void __user *addr)
#
probe syscall.quotactl = kernel.function("sys_quotactl") {
	name = "quotactl"
	cmd = $cmd
	cmd_str = _quotactl_cmd_str($cmd)
	special_str = user_string($special)
	id = $id
	addr_uaddr = $addr
	argstr = sprintf("%s, %s, 0x%p, [0x%p]", cmd_str, special_str,
				id, addr_uaddr)
}
probe syscall.quotactl.return = kernel.function("sys_quotactl").return {
	name = "quotactl"
	retstr = returnstr(1)
}
# request_key ________________________________________________
#
# asmlinkage long
# sys_request_key(const char __user *_type,
#		     const char __user *_description,
#		     const char __user *_callout_info,
#		     key_serial_t destringid)
#
probe syscall.request_key = kernel.function("sys_request_key") {
	name = "request_key"
	type_uaddr = $_type
	description_uaddr = $_description
	callout_info_uaddr = $_callout_info
	destringid = $destringid
	argstr = sprintf("[0x%p], [0x%p], [0x%p], 0x%p", type_uaddr,
			description_uaddr, callout_info_uaddr, destringid)
}
probe syscall.request_key.return = kernel.function("sys_request_key").return {
	name = "request_key"
	retstr = returnstr(1)
}

# sys32_execve ________________________________________
#
# long sys32_execve(unsigned long a0, unsigned long a1, unsigned long a2,
#                  unsigned long a3, unsigned long a4, unsigned long a5,
#                  struct pt_regs *regs)
#
probe syscall.sys32_execve = kernel.function("sys32_execve") {
	name = "sys32_execve"
	filename = user_string($a0)
	args = __get_argv($a1) 
	argstr = sprintf("%s %s", filename, args)
}
probe syscall.sys32_execve.return =
	kernel.function("sys32_execve").return {
	name = "sys32_execve"
	retstr = returnstr(1)
}

# sys32_time ________________________________________
#
# asmlinkage long sys32_time(compat_time_t __user * tloc)
# 
probe syscall.sys32_time = kernel.function("sys32_time") {
	name = "sys32_time"
	/* FIXME */
	t_uaddr = $tloc
	argstr = sprintf("[0x%p]", t_uaddr)
}
probe syscall.sys32_time.return = kernel.function("sys32_time").return {
	name = "sys32_time"
	retstr = returnstr(1)
}

# ppc64_sys32_stime ________________________________________
#
# long ppc64_sys32_stime(int __user * tptr)
#
probe syscall.ppc64_sys32_stime = kernel.function("ppc64_sys32_stime") {
	name = "ppc64_sys32_stime"
	/* FIXME */
	t_uaddr = $tptr
	argstr = sprintf("[0x%p]", t_uaddr)
}
probe syscall.ppc64_sys32_stime.return =
	kernel.function("ppc64_sys32_stime").return {
	name = "ppc64_sys32_stime"
	retstr = returnstr(1)
}

# sys32_ptrace ________________________________________
#
# int sys32_ptrace(long request, long pid, unsigned long addr,
#		unsigned long data)
#
probe syscall.sys32_ptrace = kernel.function("sys32_ptrace") {
	name = "sys32_ptrace"
	request = $request
	pid = $pid
	addr = $addr
	data = $data
	argstr = sprintf("0x%p, 0x%p, 0x%p, 0x%p", request, pid,
				addr, data)
}
probe syscall.sys32_ptrace.return = kernel.function("sys32_ptrace").return {
	name = "sys32_ptrace"
	retstr = returnstr(1)
}
# sys32_pause ________________________________________
#
# asmlinkage long sys32_pause(void)
#
probe syscall.sys32_pause = kernel.function("sys32_pause") {
	name = "sys32_pause"
	argstr = ""
}
probe syscall.sys32_pause.return = kernel.function("sys32_pause").return {
	name = "sys32_pause"
	retstr = returnstr(1)
}
# sys32_olduname ________________________________________
#
# asmlinkage int sys32_olduname(struct oldold_utsname __user * name)
#
probe syscall.sys32_olduname = kernel.function("sys32_olduname") {
	name = "sys32_olduname"
	name_uaddr = $name
	argstr = sprintf("[0x%p]", name_uaddr)
}
probe syscall.sys32_olduname.return = kernel.function("sys32_olduname").return {
	name = "sys32_olduname"
	retstr = returnstr(1)
}
# sys32_sigaction ________________________________________
#
# long sys32_sigaction(int sig, struct old_sigaction32 __user *act,
#		struct old_sigaction32 __user *oact)
#
probe syscall.sys32_sigaction = kernel.function("sys32_sigaction") {
	name = "sys32_sigaction"
	sig = $sig
	act_uaddr = $act
	oact_uaddr = $oact
	argstr = sprintf("%s, [0x%p], [0x%p]", _signal_name($sig),
			act_uaddr, oact_uaddr)
}
probe syscall.sys32_sigaction.return =
	kernel.function("sys32_sigaction").return {
	name = "sys32_sigaction"
	retstr = returnstr(1)
}
# sys32_sigsuspend ________________________________________
#
# long sys32_sigsuspend(old_sigset_t mask, int p2, int p3, int p4, int p6,
#			int p7, struct pt_regs *regs)
#
probe syscall.sys32_sigsuspend = kernel.function("sys32_sigsuspend") {
	name = "sys32_sigsuspend"
	mask = $mask
	argstr = sprintf("0x%p", mask)
}
probe syscall.sys32_sigsuspend.return =
	kernel.function("sys32_sigsuspend").return {
	name = "sys32_sigsuspend"
	retstr = returnstr(1)
}
# sys32_gettimeofday ________________________________________
#
# asmlinkage long sys32_gettimeofday(struct compat_timeval __user *tv,
#		struct timezone __user *tz)
#
probe syscall.sys32_gettimeofday = kernel.function("sys32_gettimeofday") {
	name = "sys32_gettimeofday"
	tv_uaddr = $tv
	tz_uaddr = $tz
	argstr = sprintf("[0x%p], [0x%p]", tv_uaddr, tz_uaddr)
}
probe syscall.sys32_gettimeofday.return =
	kernel.function("sys32_gettimeofday").return {
	name = "sys32_gettimeofday"
	retstr = returnstr(1)
}
# sys32_settimeofday ________________________________________
#
# asmlinkage long sys32_settimeofday(struct compat_timeval __user *tv,
#		struct timezone __user *tz)
#
probe syscall.sys32_settimeofday = kernel.function("sys32_settimeofday") {
	name = "sys32_settimeofday"
	tv_uaddr = $tv
	tz_uaddr = $tz
	argstr = sprintf("[0x%p], [0x%p]", tv_uaddr, tz_uaddr)
}
probe syscall.sys32_settimeofday.return =
	kernel.function("sys32_settimeofday").return {
	name = "sys32_settimeofday"
	retstr = returnstr(1)
}
# sys32_sysinfo ________________________________________
#
# asmlinkage long sys32_sysinfo(struct sysinfo32 __user *info)
#
probe syscall.sys32_sysinfo = kernel.function("sys32_sysinfo") {
	name = "sys32_sysinfo"
	info_uaddr = $info
	argstr = sprintf("[0x%p]", info_uaddr)
}
probe syscall.sys32_sysinfo.return =
	kernel.function("sys32_sysinfo").return {
	name = "sys32_sysinfo"
	retstr = returnstr(1)
}
# sys32_ipc ________________________________________
#
# long sys32_ipc(u32 call, u32 first, u32 second, u32 third,
#			compat_uptr_t ptr, u32 fifth)
#
probe syscall.sys32_ipc = kernel.function("sys32_ipc") {
	name = "sys32_ipc"
	call = $call
	first = $first
	second = $second
	third = $third
	ptr_uaddr = $ptr
	fifth = $fifth
	argstr = sprintf("%d, %d, %d, %d, [0x%p], %d", call, first, second,
				third, ptr_uaddr, fifth) 
}
probe syscall.sys32_ipc.return = kernel.function("sys32_ipc").return {
	name = "sys32_ipc"
	retstr = returnstr(1)
}
# sys32_sigreturn ________________________________________
#
# long sys32_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
#			struct pt_regs *regs)
#
probe syscall.sys32_sigreturn = kernel.function("sys32_sigreturn") {
	name = "sys32_sigreturn"
	r3 = $r3
	r4 = $r4
	r5 = $r5
	r6 = $r6
	r7 = $r7
	r8 = $r8
	argstr = sprintf("0x%p, 0x%p, 0x%p, 0x%p, 0x%p, 0x%p",
				 r3, r4, r5, r6, r7, r8)
}
probe syscall.sys32_sigreturn.return =
	kernel.function("sys32_sigreturn").return {
	name = "sys32_sigreturn"
	retstr = returnstr(1)
}
# sys32_adjtimex ________________________________________
#
# asmlinkage long sys32_adjtimex(struct timex32 __user *utp)
#
probe syscall.sys32_adjtimex = kernel.function("sys32_adjtimex") {
	name = "sys32_adjtimex"
	buf_uaddr = $utp
	argstr = sprintf("[0x%p]", buf_uaddr)
}
probe syscall.sys32_adjtimex.return = kernel.function("sys32_adjtimex").return {
	name = "sys32_adjtimex"
	retstr = returnstr(1)
}
# sys32_getdents ________________________________________
#
# asmlinkage long sys32_getdents(unsigned int fd,
#			struct linux_dirent32 __user *dirent,
#			unsigned int count)
#
probe syscall.sys32_getdents = kernel.function("sys32_getdents") {
	name = "sys32_getdents"
	fd = $fd
	dirp_uaddr = $dirent
	count = $count
	argstr = sprintf("%d, [0x%p], %d", fd, dirp_uaddr, count)
}
probe syscall.sys32_getdents.return =
	kernel.function("sys32_getdents").return {
	name = "sys32_getdents"
	retstr = returnstr(1)
}
# sys32_sysctl ________________________________________
#
# asmlinkage long sys32_sysctl(struct __sysctl_args32 __user *args)
#
probe syscall.sys32_sysctl = kernel.function("sys32_sysctl") {
	name = "sys32_sysctl"
	args_uaddr = $args
	argstr = sprintf("[0x%p]", args_uaddr)
}
probe syscall.sys32_sysctl.return =
	kernel.function("sys32_sysctl").return {
	name = "sys32_sysctl"
	retstr = returnstr(1)
}
# sys32_sched_setparam ________________________________________
#
# asmlinkage long sys32_sched_setparam(u32 pid,
#		struct sched_param __user *param)
#
probe syscall.sys32_sched_setparam = kernel.function("sys32_sched_setparam") {
	name = "sys32_sched_setparam"
	pid = $pid
	param_uaddr = $param
	argstr = sprintf("%d, [0x%p]", pid, param_uaddr)
}
probe syscall.sys32_sched_setparam.return =
	kernel.function("sys32_sched_setparam").return {
	name = "sys32_sched_setparam"
	retstr = returnstr(1)
}

# sys32_sched_rr_get_interval ________________________________________
#
# asmlinkage long sys32_sched_rr_get_interval(u32 pid,
#		struct compat_timespec __user *interval)
#
probe syscall.sys32_sched_rr_get_interval = kernel.function("sys32_sched_rr_get_interval") {
	name = "sys32_sched_rr_get_interval"
	pid = $pid
	interval_uaddr = $interval
	argstr = sprintf("%d, [0x%p]", pid, interval_uaddr)  
}
probe syscall.sys32_sched_rr_get_interval.return =
	kernel.function("sys32_sched_rr_get_interval").return {
	name = "sys32_sched_rr_get_interval"
	retstr = returnstr(1)
}
# sys32_rt_sigreturn ________________________________________
#
# long sys32_rt_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
#			struct pt_regs *regs)
#
#
probe syscall.sys32_rt_sigreturn = kernel.function("sys32_rt_sigreturn") {
	name = "sys32_rt_sigreturn"
	r3 = $r3
	r4 = $r4
	r5 = $r5
	r6 = $r6
	r7 = $r7
	r8 = $r8
	argstr = sprintf("0x%p, 0x%p, 0x%p, 0x%p, 0x%p, 0x%p",
				r3, r4, r5, r6, r7, r8)
}
probe syscall.sys32_rt_sigreturn.return =
	kernel.function("sys32_rt_sigreturn").return {
	name = "sys32_rt_sigreturn"
	retstr = returnstr(1)
}
# sys32_rt_sigaction ________________________________________
#
# long sys32_rt_sigaction(int sig, const struct sigaction32 __user *act,
#		struct sigaction32 __user *oact, size_t sigsetsize)
#
probe syscall.sys32_rt_sigaction = kernel.function("sys32_rt_sigaction") {
	name = "sys32_rt_sigaction"
	sig = $sig
	act_uaddr = $act
	oact_uaddr = $oact
	sigsetsize = $sigsetsize
	argstr = sprintf("%s, [0x%p], [0x%p], 0x%p", _signal_name($sig),
				act_uaddr, oact_uaddr, sigsetsize)
}
probe syscall.sys32_rt_sigaction.return =
	kernel.function("sys32_rt_sigaction").return {
	name = "sys32_rt_sigaction"
	retstr = returnstr(1)
}
# sys32_rt_sigprocmask ________________________________________
#
# long sys32_rt_sigprocmask(u32 how, compat_sigset_t __user *set,
#		compat_sigset_t __user *oset, size_t sigsetsize)
#
probe syscall.sys32_rt_sigprocmask = kernel.function("sys32_rt_sigprocmask") {
	name = "sys32_rt_sigprocmask"
	how = $how
	how_str = _sigprocmask_how_str($how)
	set_uaddr = $set
	oset_uaddr = $oset
	sigsetsize = $sigsetsize
	argstr = sprintf("%s, [0x%p], [0x%p], 0x%p", how_str, set_uaddr,
				oset_uaddr, sigsetsize)
}
probe syscall.sys32_rt_sigprocmask.return =
	kernel.function("sys32_rt_sigprocmask").return {
	name = "sys32_rt_sigprocmask"
	retstr = returnstr(1)
}
# sys32_rt_sigpending ________________________________________
#
# long sys32_rt_sigpending(compat_sigset_t __user *set,
#			compat_size_t sigsetsize)
#
probe syscall.sys32_rt_sigpending = kernel.function("sys32_rt_sigpending") {
	name = "sys32_rt_sigpending"
	set_uaddr = $set
	sigsetsize = $sigsetsize
	argstr = sprintf("[0x%p], %d", set_uaddr, $sigsetsize)
}
probe syscall.sys32_rt_sigpending.return =
	kernel.function("sys32_rt_sigpending").return {
	name = "sys32_rt_sigpending"
	retstr = returnstr(1)
}
# sys32_rt_sigtimedwait ________________________________________
#
# long sys32_rt_sigtimedwait(compat_sigset_t __user *uthese,
#			compat_siginfo_t __user *uinfo,
#			struct compat_timespec __user *uts,
#			compat_size_t sigsetsize)
#
probe syscall.sys32_rt_sigtimedwait = kernel.function("sys32_rt_sigtimedwait") {
	name = "sys32_rt_sigtimedwait"
	uthese_uaddr = $uthese
	uinfo_uaddr = $uinfo
	uts_uaddr = $uts
	sigsetsize = $sigsetsize
	argstr = sprintf("[0x%p], [0x%p], [0x%p], 0x%p", uthese_uaddr,
			uinfo_uaddr, uts_uaddr, sigsetsize)
}
probe syscall.sys32_rt_sigtimedwait.return =
	kernel.function("sys32_rt_sigtimedwait").return {
	name = "sys32_rt_sigtimedwait"
	retstr = returnstr(1)
}
# sys32_rt_sigqueueinfo ________________________________________
#
# long sys32_rt_sigqueueinfo(u32 pid, u32 sig, compat_siginfo_t __user *uinfo)
#
probe syscall.sys32_rt_sigqueueinfo = kernel.function("sys32_rt_sigqueueinfo") {
	name = "sys32_rt_sigqueueinfo"
	pid = $pid
	sig = $sig
	uinfo_uaddr = $uinfo
	argstr = sprintf("0x%p, %s, [0x%p]", pid, _signal_name($sig),
				uinfo_uaddr)
}
probe syscall.sys32_rt_sigqueueinfo.return =
	kernel.function("sys32_rt_sigqueueinfo").return {
	name = "sys32_rt_sigqueueinfo"
	retstr = returnstr(1)
}
# sys32_sigaltstack ________________________________________
#
# int sys32_sigaltstack(u32 __new, u32 __old, int r5,
#			int r6, int r7, int r8, struct pt_regs *regs)
#
probe syscall.sys32_sigaltstack = kernel.function("sys32_sigaltstack") {
	name = "sys32_sigaltstack"
	argstr = "FIXME"
}
probe syscall.sys32_sigaltstack.return =
	kernel.function("sys32_sigaltstack").return {
	name = "sys32_sigaltstack"
	retstr = returnstr(1)
}
# sys32_sendfile64 ________________________________________
#
# asmlinkage int sys32_sendfile64(int out_fd, int in_fd,
#		compat_loff_t __user *offset, s32 count)
#
probe syscall.sys32_sendfile64 = kernel.function("sys32_sendfile64") {
	name = "sys32_sendfile64"
	out_fd = $out_fd
	in_fd = $in_fd
	offset_uaddr = $offset
	count = $count
	argstr = sprintf("%d, %d, [0x%p], %d", $out_fd, $in_fd, offset_uaddr,
				$count)
}
probe syscall.sys32_sendfile64.return =
	kernel.function("sys32_sendfile64").return {
	name = "sys32_sendfile64"
	retstr = returnstr(1)
}
# ppc32_timer_create ________________________________________
#
# long ppc32_timer_create(clockid_t clock,
#			struct compat_sigevent __user *ev32,
#			timer_t __user *timer_id)
#
probe syscall.ppc32_timer_create = kernel.function("ppc32_timer_create") {
	name = "ppc32_timer_create"
	which_clock = $clock
	timer_event_spec = $ev32
	created_timer_id = $timer_id
	argstr = sprintf("%d, [0x%p], [0x%p]", which_clock, timer_event_spec,
				created_timer_id)
}
probe syscall.ppc32_timer_create.return =
	kernel.function("ppc32_timer_create").return {
	name = "ppc32_timer_create"
	retstr = returnstr(1)
}
# compat_timer_settime ________________________________________
#
# long compat_timer_settime(timer_t timer_id, int flags,
#			struct compat_itimerspec __user *new,
#			struct compat_itimerspec __user *old)
#
probe syscall.compat_timer_settime = kernel.function("compat_timer_settime") {
	name = "compat_timer_settime"
	timer_id = $timer_id
	flags = $flags
	new_setting_uaddr = $new
	old_setting_uaddr = $old
	argstr = sprintf("%d, %d, [0x%p], [0x%p]", timer_id, flags,
				new_setting_uaddr, old_setting_uaddr)
}
probe syscall.compat_timer_settime.return =
	kernel.function("compat_timer_settime").return {
	name = "compat_timer_settime"
	retstr = returnstr(1)
}
# compat_timer_gettime ________________________________________
#
# long compat_timer_gettime(timer_t timer_id,
#		struct compat_itimerspec __user *setting)
#
probe syscall.compat_timer_gettime = kernel.function("compat_timer_gettime") {
	name = "compat_timer_gettime"
	timer_id = $timer_id
	setting_uaddr = $setting
	argstr = sprintf("%d, [0x%p]", timer_id, setting_uaddr)
}
probe syscall.compat_timer_gettime.return =
	kernel.function("compat_timer_gettime").return {
	name = "compat_timer_gettime"
	retstr = returnstr(1)
}
# compat_clock_settime ________________________________________
#
# long compat_clock_settime(clockid_t which_clock,
#			struct compat_timespec __user *tp)
#
probe syscall.compat_clock_settime = kernel.function("compat_clock_settime") {
	name = "compat_clock_settime"
	which_clock = $which_clock
	tp_uaddr = $tp
	argstr = sprintf("%d, [0x%p]", which_clock, tp_uaddr)
}
probe syscall.compat_clock_settime.return =
	kernel.function("compat_clock_settime").return {
	name = "compat_clock_settime"
	retstr = returnstr(1)
}
# compat_clock_gettime ________________________________________
#
# long compat_clock_gettime(clockid_t which_clock,
#			struct compat_timespec __user *tp)
#
probe syscall.compat_clock_gettime = kernel.function("compat_clock_gettime") {
	name = "compat_clock_gettime"
	which_clock = $which_clock
	tp_uaddr = $tp
	argstr = sprintf("%d, [0x%p]", which_clock, tp_uaddr)
}
probe syscall.compat_clock_gettime.return =
	kernel.function("compat_clock_gettime").return {
	name = "compat_clock_gettime"
	retstr = returnstr(1)
}
# compat_clock_getres ________________________________________
#
# long compat_clock_getres(clockid_t which_clock,
#			struct compat_timespec __user *tp)
#
probe syscall.compat_clock_getres = kernel.function("compat_clock_getres") {
	name = "compat_clock_getres"
	which_clock = $which_clock
	tp_uaddr = $tp
	argstr = sprintf("%d, [0x%p]", which_clock, tp_uaddr)
}
probe syscall.compat_clock_getres.return =
	kernel.function("compat_clock_getres").return {
	name = "compat_clock_getres"
	retstr = returnstr(1)
}
# compat_clock_nanosleep ________________________________________
#
# long compat_clock_nanosleep(clockid_t which_clock, int flags,
#			struct compat_timespec __user *rqtp,
#			struct compat_timespec __user *rmtp)
#
probe syscall.compat_clock_nanosleep = kernel.function("compat_clock_nanosleep") {
	name = "compat_clock_nanosleep"
	clock_id = $which_clock
	clock_id_str = _get_wc_str($which_clock)
	flags = $flags
	flag_str = "TIMER_ABSTIME"
	rqtp_uaddr = $rqtp
	rmtp_uaddr = $rmtp
	argstr = sprintf("%s, %s, [0x%p], [0x%p]", clock_id_str,
				flag_str, rqtp_uaddr, rmtp_uaddr)
}
probe syscall.compat_clock_nanosleep.return =
	kernel.function("compat_clock_nanosleep").return {
	name = "compat_clock_nanosleep"
	retstr = returnstr(1)
}
# sys32_swapcontext ________________________________________
#
# long sys32_swapcontext(struct ucontext32 __user *old_ctx,
#			struct ucontext32 __user *new_ctx,
#			int ctx_size, int r6, int r7, int r8,
#			struct pt_regs *regs)
#
probe syscall.sys32_swapcontext = kernel.function("sys32_swapcontext") {
	name = "sys32_swapcontext"
	old_ctx_uaddr = $old_ctx
	new_ctx_uaddr = $new_ctx
	r5 = $ctx_size
	r6 = $r6
	r7 = $r7
	r8 = $r8
	regs = $regs
	argstr = sprintf("[0x%p], [0x%p], %d, %d, %d, %d, [0x%p]",
			old_ctx_uaddr, new_ctx_uaddr, r5, r6, r7, r8, regs)
}
probe syscall.sys32_swapcontext.return =
	kernel.function("sys32_swapcontext").return {
	name = "sys32_swapcontext"
	retstr = returnstr(1)
}
# sys32_utimes ________________________________________
#
# asmlinkage long sys32_utimes(char __user *filename,
#			struct compat_timeval __user *tvs)
#
probe syscall.sys32_utimes = kernel.function("sys32_utimes") {
	name = "sys32_utimes"
	filename_uaddr = $filename
	filename = user_string($filename)
	tvp_uaddr = $tvs
	argstr = sprintf("%s, [0x%p]", filename, tvp_uaddr)
}
probe syscall.sys32_utimes.return = kernel.function("sys32_utimes").return {
	name = "sys32_utimes"
	retstr = returnstr(1)
}
# compat_statfs64 ________________________________________
#
# asmlinkage long compat_statfs64(const char __user *path, compat_size_t sz,
#		struct compat_statfs64 __user *buf)
#
probe syscall.compat_statfs64 = kernel.function("compat_statfs64") {
	name = "compat_statfs64"
	path_uaddr = $path
	path = user_string($path)
	sz = $sz
	buf_uaddr = $buf
	argstr = sprintf("%s, %d, [0x%p]", path, sz, buf_uaddr)
}
probe syscall.compat_statfs64.return =
	kernel.function("compat_statfs64").return {
	name = "compat_statfs64"
	retstr = returnstr(1)
}
# compat_fstatfs64 ________________________________________
#
# asmlinkage long compat_fstatfs64(unsigned int fd, compat_size_t sz,
#		struct compat_statfs64 __user *buf)
#
probe syscall.compat_fstatfs64 = kernel.function("compat_fstatfs64") {
	name = "compat_fstatfs64"
	fd = $fd
	sz = $sz
	buf_uaddr = $buf
	argstr = sprintf("%d, %d, [0x%p]", fd, sz, buf_uaddr)
}
probe syscall.compat_fstatfs64.return =
	kernel.function("compat_fstatfs64").return {
	name = "compat_fstatfs64"
	retstr = returnstr(1)
}
# compat_mbind ________________________________________
#
# asmlinkage long compat_mbind(compat_ulong_t start, compat_ulong_t len,
#			compat_ulong_t mode, compat_ulong_t __user *nmask,
#			compat_ulong_t maxnode, compat_ulong_t flags)
#
probe syscall.compat_mbind = kernel.function("compat_mbind") {
	name = "compat_mbind"
	start_uaddr = $start
	len = $len
	policy = $mode
	nodemask_uaddr = $nmask
	maxnode = $maxnode
	flags = $flags
	argstr = sprintf("[0x%p], %d, %d, [0x%p], %d, %d", start_uaddr, len,
			policy, nodemask_uaddr, maxnode, flags)
}
probe syscall.compat_mbind.return = kernel.function("compat_mbind").return {
	name = "compat_mbind"
	retstr = returnstr(1)
}
# compat_get_mempolicy ________________________________________
#
# asmlinkage long compat_get_mempolicy(int __user *policy,
#				compat_ulong_t __user *nmask,
#				compat_ulong_t maxnode,
#				compat_ulong_t addr, compat_ulong_t flags)
#
probe syscall.compat_get_mempolicy = kernel.function("compat_get_mempolicy") {
	name = "compat_get_mempolicy"
	policy_uaddr = $policy
	nmask_uaddr = $nmask
	maxnode = $maxnode
	addr = $addr
	flags = $flags
	argstr = sprintf("[0x%p], [0x%p], %d, %d", policy_uaddr, nmask_uaddr,
				maxnode, addr)
}
probe syscall.compat_get_mempolicy.return =
	kernel.function("compat_get_mempolicy").return {
	name = "compat_get_mempolicy"
	retstr = returnstr(1)
}
# compat_set_mempolicy ________________________________________
#
# asmlinkage long compat_set_mempolicy(int mode, compat_ulong_t __user *nmask,
#				compat_ulong_t maxnode)
#
probe syscall.compat_set_mempolicy = kernel.function("compat_set_mempolicy") {
	name = "compat_set_mempolicy"
	policy = $mode
	nodemask_uaddr = $nmask
	maxnode = $maxnode
	argstr = sprintf("%d, [0x%p], %d", policy, nodemask_uaddr, maxnode)
}
probe syscall.compat_set_mempolicy.return =
	kernel.function("compat_set_mempolicy").return {
	name = "compat_set_mempolicy"
	retstr = returnstr(1)
}
# ppc64_sys_stime ________________________________________
#
# long ppc64_sys_stime(long __user * tptr)
#
probe syscall.ppc64_sys_stime = kernel.function("ppc64_sys_stime") {
	name = "ppc64_sys_stime"
	/* FIXME */
	t_uaddr = $tptr
	argstr = sprintf("[0x%p]", t_uaddr)
}
probe syscall.ppc64_sys_stime.return =
	kernel.function("ppc64_sys_stime").return {
	name = "ppc64_sys_stime"
	retstr = returnstr(1)
}
# ppc64_newuname ________________________________________
#
# asmlinkage int ppc64_newuname(struct new_utsname __user * name)
#
probe syscall.ppc64_newuname = kernel.function("ppc64_newuname") {
	name = "ppc64_newuname"
	name_uaddr = $name
	argstr = sprintf("[0x%p]", name_uaddr)
}
probe syscall.ppc64_newuname.return = kernel.function("ppc64_newuname").return {
	name = "ppc64_newuname"
	retstr = returnstr(1)
}
%)
#
# 

# old32_readdir ________________________________________
#
# asmlinkage int old32_readdir(unsigned int fd,
#	struct old_linux_dirent32 __user *dirent,
#	unsigned int count)
#
probe syscall.old32_readdir = kernel.function("old32_readdir") {
	name = "old32_readdir"
	fd = $fd
	dirp_uaddr = $dirent
	count = $count
	argstr = sprintf("%d, [0x%p], %d", fd, dirp_uaddr, count)
}
probe syscall.old32_readdir.return =
	kernel.function("old32_readdir").return {
	name = "old32_readdir"
	retstr = returnstr(1)
}
# sys64_time ________________________________________
#
# time_t sys64_time(time_t __user * tloc)
#
probe syscall.sys64_time = kernel.function("sys64_time") {
	name = "sys64_time"
	/* FIXME */
	t_uaddr = $tloc
	argstr = sprintf("[0x%p]", t_uaddr)
}
probe syscall.sys64_time.return = kernel.function("sys64_time").return {
	name = "sys64_time"
	retstr = returnstr(1)
}
# ppc64_personality ________________________________________
#
# long ppc64_personality(unsigned long personality)
#
probe syscall.ppc64_personality = kernel.function("ppc64_personality") {
	name = "ppc64_personality"
	persona = $personality
	argstr = string($personality)
}
probe syscall.ppc64_personality.return =
	kernel.function("ppc64_personality").return {
	name = "ppc64_personality"
	retstr = returnstr(1)
}
# ppc_rtas ________________________________________
#
# asmlinkage int ppc_rtas(struct rtas_args __user *uargs)
#
probe syscall.ppc_rtas = kernel.function("ppc_rtas") {
	name = "ppc_rtas"
	uargs_uaddr = $uargs
	argstr = sprintf("[0x%p]", uargs_uaddr)
}
probe syscall.ppc_rtas.return = kernel.function("ppc_rtas").return {
	name = "ppc_rtas"
	retstr = returnstr(1)
}