Implemented -e trace=%clock option

Rishi Bhatt bhatt.rishi062 at gmail.com
Tue Mar 14 10:16:53 UTC 2017


    run_prog ./$i > /dev/null
    run_strace -a$w -e trace=%clock,setitimer ./clock_nanosleep > "$EXP"
    match_diff "$LOG" "$EXP"

On Tue, Mar 14, 2017 at 3:45 PM, Rishi Bhatt <bhatt.rishi062 at gmail.com>
wrote:

> Well i got it so i have done something like this:
>
> run_prog ./$i > /dev/null
>     run_strace -a$w -e trace=%clock,setitimer ./$i > "$EXP"
>     match_diff "$LOG" "$EXP"
>
> On Tue, Mar 14, 2017 at 8:04 AM, Dmitry V. Levin <ldv at altlinux.org> wrote:
>
>> On Mon, Mar 13, 2017 at 11:20:30PM +0530, Rishi Bhatt wrote:
>> > Hey does $STRACE in init.sh is doing this:strace -e trace=%clock
>> > ./clock_nanosleep > /dev/null
>> >
>> > So  my problem here is the output in .tmp file is correct but the .exp
>> has
>> > the print statements from ./clock_nanosleep so for matching .exp and
>> .tmp
>> > files i have to filter setitimer string from .exp file?
>> >
>> > (< setitimer(ITIMER_REAL, {it_interval={tv_sec=0, tv_usec=222222},
>> > it_value={tv_sec=0, tv_usec=111111}}, NULL) = 0)
>> >
>> > Also please give me some idea about if i want to implement a test case,
>> i
>> > am confuse in ,what should be the output and from whom i have to compare
>> > it?  Or what should be my basic approach to implement test cases.
>> >
>> > Sorry if this thing is too easy but well i am not just getting the crux
>> of
>> > it.
>>
>> Looks like you don't understand the fact that you are trying to reuse a
>> part of clock_nanosleep.test for your new test, and you don't understand
>> that it doesn't work as easily as with other clock_* tests you are trying
>> to reuse because for some obscure reason clock_nanosleep.test doesn't
>> limit itself with testing of clock_nanosleep decoder.
>>
>>
>> --
>> ldv
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Strace-devel mailing list
>> Strace-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/strace-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170314/aa40b165/attachment.html>


More information about the Strace-devel mailing list