Big thanks Corey for help. I've applied this patch and I don't see this issue any more. When can I expect to see this patch to be submitted to openIPMI master branch?
Regards, Roman. -----Original Message----- From: Corey Minyard [mailto:[email protected]] On Behalf Of Corey Minyard Sent: Tuesday, February 7, 2017 8:15 PM To: Korynkevych, RomanX <[email protected]>; [email protected] Subject: Re: [Openipmi-developer] Doubled events received from SEL I modified the simulator to be able to reproduce this, which took some time, but here's the patch to fix the issue. Sorry, it was a silly mistake. You won't need the option stuff with this change. -corey On 01/24/2017 11:30 AM, Korynkevych, RomanX wrote: > > Hi Guys, > > I'm writing application which uses OpenIPMI v2.0.22 library SEL > mechanism similar to eventd.c sample application. I register threshold > and discrete event handlers for available sensors for domain called > mydomain2. When I generate event using ipmitool I'm receive event > successfully but it comes twice and all the data is the same > (duplicated). After investigation it looks like event is invoked from > different MCs. I'm seeing that OpenIPMI lib handler > (handle_sel_data()) is called for MC names "mydomain2(0.20)" and > "mydomain2(6.20)". In my event handler I'm calling > ipmi_sensor_get_mc() and ipmi_mc_get_name() to understand which MC the > sensor belongs to and it returns "mydomain2(0.20)". Also I added event > handler for SMI interface and when the event arrives there are no > doubled events observed. > > Does anybody has seen this issue? Is this behavior expected? What is > the reason I'm receiving events twice? > > Regards, > > Roman. > > -------------------------------------------------------------- > Intel Research and Development Ireland Limited Registered in Ireland > Registered Office: Collinstown Industrial Park, Leixlip, County > Kildare Registered Number: 308263 > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or distribution > by others is strictly prohibited. If you are not the intended > recipient, please contact the sender and delete all copies. > > > > ---------------------------------------------------------------------- > -------- Check out the vibrant tech community on one of the world's > most engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > _______________________________________________ > Openipmi-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openipmi-developer ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Openipmi-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openipmi-developer
