[PATCH] Add support for Xtensa

Dmitry V. Levin ldv at altlinux.org
Sun Mar 31 01:44:11 UTC 2013


On Mon, Mar 25, 2013 at 10:29:05AM -0700, Chris Zankel wrote:
> On 03/22/2013 06:12 PM, Dmitry V. Levin wrote:
> > On Fri, Mar 22, 2013 at 05:09:23PM -0700, Chris Zankel wrote:
> >> It would be great if you could apply the attached patch to add support
> >> for the Xtensa architecture. Xtensa was added to the kernel a long time
> >> ago, and we have kept local patches for strace for a long time, but it
> >> would be easier to support it in the mainline repository.
> > [...]
> >> diff --git a/linux/xtensa/syscallent.h b/linux/xtensa/syscallent.h
> >> new file mode 100644
> >> index 0000000..2ef4fd8
> >> --- /dev/null
> >> +++ b/linux/xtensa/syscallent.h
> >> @@ -0,0 +1,434 @@
> >> +	{ 0,	0,	printargs,		"spill"		}, /* 0 */
> >> +	{ 0,	0,	printargs,		"xtensa"	}, /* 1 */
> >> +	{ MA,	0,	printargs,		"SYS_2"		}, /* 2 */
> >> +	{ MA,	0,	printargs,		"SYS_3"		}, /* 3 */
> >> +	{ MA,	0,	printargs,		"SYS_4"		}, /* 4 */
> >> +	{ MA,	0,	printargs,		"SYS_5"		}, /* 5 */
> >> +	{ MA,	0,	printargs,		"SYS_6"		}, /* 6 */
> >> +	{ MA,	0,	printargs,		"SYS_7"		}, /* 7 */
> > In this and other similar places, please collapse blocks of undefined
> > syscall entries using "[N1 ... N2] = {}" notation.
> In this patch, I removed the trailing unused entries and change the
> above and one other location to the [N1...N2] = {} notation.

I took the liberty of converting remaining single undefined syscall
entries to [N] = {} notation as well.

Thanks,


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20130331/eb009691/attachment.bin>


More information about the Strace-devel mailing list