From 9b1c4bd63997e8f653a3b6a06e6add5caa194aba Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 25 Oct 2009 13:26:49 +0000 Subject: [PATCH] TRACE_ENTRY() / TRACE_EXIT*() statements are now filtered from the output when option -u has been specified. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1276 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index b183a3a45..1ee0441a1 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -5,7 +5,7 @@ # Script for converting the SCST source tree as it exists in the Subversion # repository to a Linux kernel patch. # -# Copyright (C) 2008 Bart Van Assche +# Copyright (C) 2008-2009 Bart Van Assche # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -105,7 +105,12 @@ function specialize_patch { ${specialize_patch_options} \ -v kernel_version="${kernel_version}" \ -v SCSI_EXEC_REQ_FIFO_DEFINED="${scsi_exec_req_fifo_defined}" \ - -v SCST_IO_CONTEXT="${scst_io_context}" + -v SCST_IO_CONTEXT="${scst_io_context}" \ + | if [ "${generating_upstream_patch}" = "true" ]; then + scripts/filter-trace-entry-exit + else + cat + fi } # Read a patch from stdin, specialize it for kernel version ${kernel_version}