On 2011-02-18, Dmitry V. Levin <[email protected]> wrote:
> On Fri, Feb 18, 2011 at 05:25:30PM +0000, Grant Edwards wrote:
> [...]
>> > I agree that the fd's returned from open() and creat() should be
>> > checked for a match.
>>
>> However, I now see that checking the file descriptors returned by a
>> system call is problematic. When the check is done in
>> trace_syscall_exiting(), the syscall may have already been ignored
>> (not printed) by trace_syscall_entering(). Deciding to print just the
>> return value of the syscall isn't very useful.
>
> The decision to print syscall may be changed, and syscall decoder could
> be called in "entering mode", but it's tricky and I'd like to avoid it,
> at least at this stage.
I thought about that, and it sounds like something that would be
regretted later.
--
Grant Edwards grant.b.edwards Yow! My BIOLOGICAL ALARM
at CLOCK just went off ... It
gmail.com has noiseless DOZE FUNCTION
and full kitchen!!
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel