Hi Stan,
Thanks a bunch , I could generate interrupts with the help of workaround
sent by you ( There's a
typo in the commands u sent, "cat" should be replaced with "echo").
Thanks
-arun
Wang, Stanley wrote:
> Hi, Arun
> It is a little bit complex to use irq interceptor :(
> The ficl doesn't support irq interceptor right now. Hence you must
> the fault set by hands. Following is a simple example, you can learn
> how to use it by read fi_irq.c. (Kevin will add irq interceptor support
> ASAP.)
> example:
> add fault set
> $ cat "add $irq_num $dev_name $spurious_hertz $delay_hertz $delay_time" > /sys/fi/interceptors/irq/ctl
> del fault set
> $ cat "del" > /sys/fi/interceptors/irq/ctl
> Hope it clarifies.
> Stan
>
> -----Original Message-----
> From: arun [mailto:ar...@np...]
> Sent: 2003-04-16 13:51
> To: Wang, Stanley
> Cc: SourceforgeFI mail list (E-mail); Gao, Kevin
> Subject: IRQ interceptor
>
> Hi Stanley/Kevin,
> The fith_utility/ficl_cmd.c doesnt seems to handle IRQ
> interceptor. It only handle the "Trigger"
> and for the rest errors are popped up.
> I tried the below which was from the fith_manual from CVS
> directory (might be old and obselete)
>
> irq.fsml:
> <?xml version="1.0" encoding="UTF-8" ?>
> <!-- $Id: fith.texi,v 1.12 2002/06/03 07:45:22 stanley Exp $ -->
> <!-- irq is the interrupt vector you want to intercept -->
>
> <!-- devname is the device's name that be used in request_irq() -->
>
> <!-- spurious_hertz="10" means one spurious IRQ is generated -->
> <!-- per 10 timer clicks -->
> <!-- delay_hertz="10" means delay one IRQ per 10 times -->
> <!-- delay_time="3" means the IRQ will be delayed 3 timer clicks -->
> <fake_irq irq="4"
> modname=”fith_dummy”
> devname="dummy"
> spurious_hertz="10"
> delay_hertz="10"
> delay_time="3"
> />
>
> [root@xcast1hclt-ntl test]# ficl -i irq1.fsml
> Inserting irq1.fsml into fi_dm...
> Document of the wrong type, FSML Namespace not found!
> Can not parser out faultset from this file.
>
>
> But this fsml file could be inserted using ficl command.
>
> I guess the IRQ interceptor should be given inside the TRIGGER
> tag... I tried
> that, but in vain (The ficl_cmd.c handles only the parameters for
> the PF interceptor)
>
> I tried to "bk pull" to get the latest "fith tool", but there was
> no updation.... I just
> want to clarify whether there is a workaround for this or I should
> update the ficl_cmd.c to
> handle the IRQ interceptor parsing... Please pass on any document
> (if available) about
> this...
>
> Thanks
> -arun
>
|