summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace-4.7/0028-Enhance-quotactl-decoding.patch
blob: b12bbf80b123eeaa0ac471bdb0fb3ee08b51721f (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
Upstream-Status: Backport

From 7943966f6cd137e44f27d56aaf21b023fb1fae63 Mon Sep 17 00:00:00 2001
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Fri, 26 Oct 2012 23:43:13 +0000
Subject: [PATCH 28/31] Enhance quotactl decoding

* quota.c (sys_quotactl): Decode 2nd syscall argument using printpath.
* pathtrace.c (pathtrace_match): Add quotactl support.
* linux/*/syscallent.h: Add TF flag to quotactl entry.
---
 linux/aarch64/syscallent.h    |  2 +-
 linux/alpha/syscallent.h      |  2 +-
 linux/arm/syscallent.h        |  2 +-
 linux/avr32/syscallent.h      |  2 +-
 linux/bfin/syscallent.h       |  2 +-
 linux/hppa/syscallent.h       |  2 +-
 linux/i386/syscallent.h       |  2 +-
 linux/ia64/syscallent.h       |  2 +-
 linux/m68k/syscallent.h       |  2 +-
 linux/microblaze/syscallent.h |  2 +-
 linux/mips/syscallent.h       | 16 ++++++++--------
 linux/powerpc/syscallent.h    |  2 +-
 linux/s390/syscallent.h       |  2 +-
 linux/s390x/syscallent.h      |  2 +-
 linux/sh/syscallent.h         |  2 +-
 linux/sh64/syscallent.h       |  2 +-
 linux/sparc/syscallent.h      |  2 +-
 linux/tile/syscallent.h       |  2 +-
 linux/x32/syscallent.h        |  2 +-
 linux/x86_64/syscallent.h     |  2 +-
 pathtrace.c                   |  6 ++++++
 quota.c                       |  2 +-
 22 files changed, 34 insertions(+), 28 deletions(-)

diff --git a/linux/aarch64/syscallent.h b/linux/aarch64/syscallent.h
index eeda429..b712c9f 100644
--- a/linux/aarch64/syscallent.h
+++ b/linux/aarch64/syscallent.h
@@ -58,7 +58,7 @@
 	{ 1,	TD,	sys_close,			"close"				}, /*   57 */
 	{ 0,	0,	sys_vhangup,			"vhangup"			}, /*   58 */
 	{ 2,	TD,	sys_pipe2,			"pipe2"				}, /*   59 */
-	{ 4,	0,	sys_quotactl,			"quotactl"			}, /*   60 */
+	{ 4,	TF,	sys_quotactl,			"quotactl"			}, /*   60 */
 	{ 3,	TD,	sys_getdents64,			"getdents64"			}, /*   61 */
 	{ 3,	TD,	sys_lseek,			"lseek"				}, /*   62 */
 	{ 3,	TD,	sys_read,			"read"				}, /*   63 */
diff --git a/linux/alpha/syscallent.h b/linux/alpha/syscallent.h
index aa76a43..dde7017 100644
--- a/linux/alpha/syscallent.h
+++ b/linux/alpha/syscallent.h
@@ -174,7 +174,7 @@
 	{ 2,	0,	sys_setrlimit,		"setrlimit"		}, /* 145 */
 	{ 5,	0,	printargs,		"osf_old_killpg"	}, /* 146, not implemented */
 	{ 0,	0,	sys_setsid,		"setsid"		}, /* 147 */
-	{ 4,	0,	sys_quotactl,		"quotactl"		}, /* 148 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"		}, /* 148 */
 	{ 5,	0,	printargs,		"osf_oldquota"		}, /* 149, not implemented */
 	{ 3,	TN,	sys_getsockname,	"getsockname"		}, /* 150 */
 	{ 5,	0,	NULL,			NULL			}, /* 151 */
diff --git a/linux/arm/syscallent.h b/linux/arm/syscallent.h
index 9b8da02..123b910 100644
--- a/linux/arm/syscallent.h
+++ b/linux/arm/syscallent.h
@@ -157,7 +157,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 132 */
 	{ 1,	0,	sys_fchdir,		"fchdir"	}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 134 */
diff --git a/linux/avr32/syscallent.h b/linux/avr32/syscallent.h
index 6076fca..b215cc1 100644
--- a/linux/avr32/syscallent.h
+++ b/linux/avr32/syscallent.h
@@ -142,7 +142,7 @@
 	{ 0,	TP,	sys_vfork,		"vfork"		}, /* 114 */
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 115 */
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 116 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 117 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 117 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 118 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 119 */
 	{ 3,	0,	sys_sysfs,		"sysfs"		}, /* 120 */
diff --git a/linux/bfin/syscallent.h b/linux/bfin/syscallent.h
index 7a9e618..05194fb 100644
--- a/linux/bfin/syscallent.h
+++ b/linux/bfin/syscallent.h
@@ -157,7 +157,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 128 */
 	{ 1,	0,	sys_delete_module,	"delete_module"	}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"	}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 132 */
 	{ 1,	TD,	sys_fchdir,		"fchdir"	}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 134 */
diff --git a/linux/hppa/syscallent.h b/linux/hppa/syscallent.h
index f21d0c3..dc12299 100644
--- a/linux/hppa/syscallent.h
+++ b/linux/hppa/syscallent.h
@@ -133,7 +133,7 @@
 	{ 4,	0,	sys_init_module,	"init_module"		}, /* 128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"		}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"	}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"		}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"		}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"		}, /* 132 */
 	{ 1,	TF,	sys_fchdir,		"fchdir"		}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"		}, /* 134 */
diff --git a/linux/i386/syscallent.h b/linux/i386/syscallent.h
index dd76244..1b7feb5 100644
--- a/linux/i386/syscallent.h
+++ b/linux/i386/syscallent.h
@@ -157,7 +157,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 132 */
 	{ 1,	TD,	sys_fchdir,		"fchdir"	}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 134 */
diff --git a/linux/ia64/syscallent.h b/linux/ia64/syscallent.h
index bbdfc36..8e130ad 100644
--- a/linux/ia64/syscallent.h
+++ b/linux/ia64/syscallent.h
@@ -925,7 +925,7 @@
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 1134 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 1135 */
 	{ 5,	0,	sys_query_module,	"query_module"	}, /* 1136 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 1137 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 1137 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 1138 */
 	{ 3,	0,	sys_sysfs,		"sysfs"		}, /* 1139 */
 	{ 1,	0,	sys_personality,	"personality"	}, /* 1140 */
diff --git a/linux/m68k/syscallent.h b/linux/m68k/syscallent.h
index f95cf8d..184f01c 100644
--- a/linux/m68k/syscallent.h
+++ b/linux/m68k/syscallent.h
@@ -157,7 +157,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 132 */
 	{ 1,	0,	sys_fchdir,		"fchdir"	}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 134 */
diff --git a/linux/microblaze/syscallent.h b/linux/microblaze/syscallent.h
index 51c5e6c..c5a52fa 100644
--- a/linux/microblaze/syscallent.h
+++ b/linux/microblaze/syscallent.h
@@ -157,7 +157,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 132 */
 	{ 1,	0,	sys_fchdir,		"fchdir"	}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 134 */
diff --git a/linux/mips/syscallent.h b/linux/mips/syscallent.h
index 4c72763..df206ec 100644
--- a/linux/mips/syscallent.h
+++ b/linux/mips/syscallent.h
@@ -1141,7 +1141,7 @@
 	{ 0,	TM,	printargs,		"sysv_madvise"	}, /* 1138 */
 	{ 0,	0,	printargs,		"sysv_pagelock"	}, /* 1139 */
 	{ 0,	0,	printargs,		"sysv_getpagesize"	}, /* 1140 */
-	{ 0,	0,	printargs,		"sysv_quotactl"	}, /* 1141 */
+	{ 0,	TF,	printargs,		"sysv_quotactl"	}, /* 1141 */
 	{ 0,	0,	printargs,		"sysv_libdetach"	}, /* 1142 */
 	{ 0,	0,	printargs,		"sysv_BSDgetpgrp"	}, /* 1143 */
 	{ 0,	0,	printargs,		"sysv_BSDsetpgrp"	}, /* 1144 */
@@ -2168,7 +2168,7 @@
 	{ 0,	0,	printargs,		"bsd43_getdomainname"	}, /* 2165 */
 	{ 0,	0,	printargs,		"bsd43_setdomainname"	}, /* 2166 */
 	{ 0,	0,	printargs,		"bsd43_pcfs_mount"	}, /* 2167 */
-	{ 0,	0,	printargs,		"bsd43_quotactl"	}, /* 2168 */
+	{ 0,	TF,	printargs,		"bsd43_quotactl"	}, /* 2168 */
 	{ 0,	0,	printargs,		"bsd43_oldexportfs"	}, /* 2169 */
 	{ 0,	0,	printargs,		"bsd43_smount"	}, /* 2170 */
 	{ 0,	0,	printargs,		"bsd43_mipshwconf"	}, /* 2171 */
@@ -4133,7 +4133,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 4128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 4129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 4130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 4131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 4131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 4132 */
 	{ 1,	TF,	sys_fchdir,		"fchdir"	}, /* 4133 */
 	{ 2,	0,	sys_bdflush,		"bdflush"	}, /* 4134 */
@@ -4481,7 +4481,7 @@
 	{ 0,	0,	printargs,		"o32_init_module"	}, /* 4128 */
 	{ 0,	0,	printargs,		"o32_delete_module"	}, /* 4129 */
 	{ 0,	0,	printargs,		"o32_get_kernel_syms"}, /* 4130 */
-	{ 0,	0,	printargs,		"o32_quotactl"	}, /* 4131 */
+	{ 0,	TF,	printargs,		"o32_quotactl"	}, /* 4131 */
 	{ 0,	0,	printargs,		"o32_getpgid"	}, /* 4132 */
 	{ 0,	0,	printargs,		"o32_fchdir"	}, /* 4133 */
 	{ 0,	0,	printargs,		"o32_bdflush"	}, /* 4134 */
@@ -5525,7 +5525,7 @@
 	{ 1,	0,	sys_delete_module,	"delete_module"	}, /* 5169 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 5170 */
 	{ 5,	0,	sys_query_module,	"query_module"	}, /* 5171 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 5172 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 5172 */
 	{ 3,	0,	sys_nfsservctl,		"nfsservctl"	}, /* 5173 */
 	{ 5,	TN,	printargs,		"getpmsg"	}, /* 5174 */
 	{ 5,	TN,	printargs,		"putpmsg"	}, /* 5175 */
@@ -5832,7 +5832,7 @@
 	{ 0,	0,	printargs,		"n64_delete_module"	}, /* 5169 */
 	{ 0,	0,	printargs,		"n64_get_kernel_syms"	}, /* 5170 */
 	{ 0,	0,	printargs,		"n64_query_module"	}, /* 5171 */
-	{ 0,	0,	printargs,		"n64_quotactl"		}, /* 5172 */
+	{ 0,	TF,	printargs,		"n64_quotactl"		}, /* 5172 */
 	{ 0,	0,	printargs,		"n64_nfsservctl"	}, /* 5173 */
 	{ 0,	0,	printargs,		"n64_getpmsg"		}, /* 5174 */
 	{ 0,	0,	printargs,		"n64_putpmsg"		}, /* 5175 */
@@ -6836,7 +6836,7 @@
 	{ 1,	0,	sys_delete_module,	"delete_module"	}, /* 6169 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 6170 */
 	{ 5,	0,	sys_query_module,	"query_module"	}, /* 6171 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 6172 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 6172 */
 	{ 3,	0,	sys_nfsservctl,		"nfsservctl"	}, /* 6173 */
 	{ 5,	TN,	printargs,		"getpmsg"	}, /* 6174 */
 	{ 5,	TN,	printargs,		"putpmsg"	}, /* 6175 */
@@ -7149,7 +7149,7 @@
 	{ 0,	0,	printargs,		"n32_delete_module"	}, /* 6169 */
 	{ 0,	0,	printargs,		"n32_get_kernel_syms"	}, /* 6170 */
 	{ 0,	0,	printargs,		"n32_query_module"	}, /* 6171 */
-	{ 0,	0,	printargs,		"n32_quotactl"		}, /* 6172 */
+	{ 0,	TF,	printargs,		"n32_quotactl"		}, /* 6172 */
 	{ 0,	0,	printargs,		"n32_nfsservctl"	}, /* 6173 */
 	{ 0,	0,	printargs,		"n32_getpmsg"		}, /* 6174 */
 	{ 0,	0,	printargs,		"n32_putpmsg"		}, /* 6175 */
diff --git a/linux/powerpc/syscallent.h b/linux/powerpc/syscallent.h
index 3228f97..e61946e 100644
--- a/linux/powerpc/syscallent.h
+++ b/linux/powerpc/syscallent.h
@@ -157,7 +157,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"		}, /* 128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"		}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"	}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"		}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"		}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"		}, /* 132 */
 	{ 1,	TF,	sys_fchdir,		"fchdir"		}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"		}, /* 134 */
diff --git a/linux/s390/syscallent.h b/linux/s390/syscallent.h
index 1ce0fe2..94f4d25 100644
--- a/linux/s390/syscallent.h
+++ b/linux/s390/syscallent.h
@@ -159,7 +159,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 132 */
 	{ 1,	TD,	sys_fchdir,		"fchdir"	}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 134 */
diff --git a/linux/s390x/syscallent.h b/linux/s390x/syscallent.h
index 7fa8ff5..ebf35d4 100644
--- a/linux/s390x/syscallent.h
+++ b/linux/s390x/syscallent.h
@@ -158,7 +158,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 132 */
 	{ 1,	TD,	sys_fchdir,		"fchdir"	}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 134 */
diff --git a/linux/sh/syscallent.h b/linux/sh/syscallent.h
index d9228b4..1546ff6 100644
--- a/linux/sh/syscallent.h
+++ b/linux/sh/syscallent.h
@@ -159,7 +159,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 132 */
 	{ 1,	TD,	sys_fchdir,		"fchdir"	}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 134 */
diff --git a/linux/sh64/syscallent.h b/linux/sh64/syscallent.h
index 39c13e0..4e20c47 100644
--- a/linux/sh64/syscallent.h
+++ b/linux/sh64/syscallent.h
@@ -157,7 +157,7 @@
 	{ 3,	0,	sys_init_module,	"init_module"	}, /* 128 */
 	{ 2,	0,	sys_delete_module,	"delete_module"	}, /* 129 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"}, /* 130 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	}, /* 131 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	}, /* 131 */
 	{ 1,	0,	sys_getpgid,		"getpgid"	}, /* 132 */
 	{ 1,	TD,	sys_fchdir,		"fchdir"	}, /* 133 */
 	{ 0,	0,	sys_bdflush,		"bdflush"	}, /* 134 */
diff --git a/linux/sparc/syscallent.h b/linux/sparc/syscallent.h
index d6b518a..fe3a940 100644
--- a/linux/sparc/syscallent.h
+++ b/linux/sparc/syscallent.h
@@ -163,7 +163,7 @@
 	{ 2,	0,	printargs,	"getdomainname" },	/* 162 */
 	{ 2,	0,	sys_setdomainname,"setdomainname" },	/* 163 */
 	{ 5,	0,	printargs,	"utrap_install" },	/* 164 */
-	{ 4,	0,	sys_quotactl,	"quotactl" },		/* 165 */
+	{ 4,	TF,	sys_quotactl,	"quotactl" },		/* 165 */
 	{ 1,	0,	sys_set_tid_address,"set_tid_address" },	/* 166 */
 	{ 5,	TF,	sys_mount,	"mount" },		/* 167 */
 	{ 2,	0,	sys_ustat,	"ustat" },		/* 168 */
diff --git a/linux/tile/syscallent.h b/linux/tile/syscallent.h
index 89205e3..3bf59ae 100644
--- a/linux/tile/syscallent.h
+++ b/linux/tile/syscallent.h
@@ -131,7 +131,7 @@
 	{ 3,	TS,	sys_sigprocmask,	"sigprocmask" }, /* 130 */
 	{ 3,	0,	sys_init_module,	"init_module" }, /* 131 */
 	{ 1,	0,	sys_delete_module,	"delete_module" }, /* 132 */
-	{ 4,	0,	sys_quotactl,		"quotactl" }, /* 133 */
+	{ 4,	TF,	sys_quotactl,		"quotactl" }, /* 133 */
 	{ 1,	0,	sys_getpgid,		"getpgid" }, /* 134 */
 	{ 1,	TD,	sys_fchdir,		"fchdir" }, /* 135 */
 	{ 0,	0,	sys_bdflush,		"bdflush" }, /* 136 */
diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h
index 924164e..cfe546c 100644
--- a/linux/x32/syscallent.h
+++ b/linux/x32/syscallent.h
@@ -177,7 +177,7 @@
 	{ 2,	0,	sys_delete_module,	"delete_module"	},  /* 176 */
 	{ 1,	0,	printargs,		"64:get_kernel_syms"	},  /* 177 */
 	{ 5,	0,	printargs,		"64:query_module"	},  /* 178 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	},  /* 179 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	},  /* 179 */
 	{ 3,	0,	printargs,		"64:nfsservctl"	},  /* 180 */
 	{ 5,	0,	sys_getpmsg,		"getpmsg"	}, /* 181 */
 	{ 5,	0,	sys_putpmsg,		"putpmsg"	}, /* 182 */
diff --git a/linux/x86_64/syscallent.h b/linux/x86_64/syscallent.h
index 2ce663f..f98cd37 100644
--- a/linux/x86_64/syscallent.h
+++ b/linux/x86_64/syscallent.h
@@ -177,7 +177,7 @@
 	{ 2,	0,	sys_delete_module,	"delete_module"	},  /* 176 */
 	{ 1,	0,	sys_get_kernel_syms,	"get_kernel_syms"},  /* 177 */
 	{ 5,	0,	sys_query_module,	"query_module"	},  /* 178 */
-	{ 4,	0,	sys_quotactl,		"quotactl"	},  /* 179 */
+	{ 4,	TF,	sys_quotactl,		"quotactl"	},  /* 179 */
 	{ 3,	0,	sys_nfsservctl,		"nfsservctl"	},  /* 180 */
 	{ 5,	0,	sys_getpmsg,		"getpmsg"	}, /* 181 */
 	{ 5,	0,	sys_putpmsg,		"putpmsg"	}, /* 182 */
diff --git a/pathtrace.c b/pathtrace.c
index c000c83..12e47e9 100644
--- a/pathtrace.c
+++ b/pathtrace.c
@@ -213,6 +213,12 @@ pathtrace_match(struct tcb *tcp)
 			upathmatch(tcp, tcp->u_arg[1]);
 	}
 
+	if (s->sys_func == sys_quotactl)
+	{
+		/* x, path */
+		return upathmatch(tcp, tcp->u_arg[1]);
+	}
+
 	if (s->sys_func == sys_renameat ||
 	    s->sys_func == sys_linkat)
 	{
diff --git a/quota.c b/quota.c
index a1fd92d..780abf9 100644
--- a/quota.c
+++ b/quota.c
@@ -617,7 +617,7 @@ sys_quotactl(struct tcb *tcp)
 		tprints("|");
 		printxval(quotatypes, type, "???QUOTA");
 		tprints(", ");
-		printstr(tcp, tcp->u_arg[1], -1);
+		printpath(tcp, tcp->u_arg[1]);
 		tprints(", ");
 		switch (cmd) {
 			case Q_V1_QUOTAON:
-- 
1.8.0