TRACE_ENTRY() / TRACE_EXIT*() statements are now filtered from the output
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sun, 25 Oct 2009 13:26:49 +0000 (13:26 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sun, 25 Oct 2009 13:26:49 +0000 (13:26 +0000)
when option -u has been specified.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1276 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scripts/generate-kernel-patch

index b183a3a..1ee0441 100755 (executable)
@@ -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 <bart.vanassche@gmail.com>
+# Copyright (C) 2008-2009 Bart Van Assche <bart.vanassche@gmail.com>
 #
 # 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}