On 04/09/2019 08:06, Chris Johns wrote:
+void LTTNGClient::WriteIRQHandlerExit(PerCPUContext* pcpu, const ClientItem& item) { + pcpu->content_size += kEventIRQHandlerExitBits; + pcpu->packet_size += kEventIRQHandlerExitBits; + + EventIRQHandlerExit& ih = pcpu->irq_handler_exit; + ih.header.ns = item.ns; + ih.irq = static_cast<int32_t>(item.data); + fwrite(&ih, sizeof(ih), 1, pcpu->event_stream);https://en.cppreference.com/w/cpp/io :)
I had a look a this, it seems the error reporting capabilities of <fstream> are quite bad (nothing like strerror(errno)). A C++ alternative would be:
https://www.boost.org/doc/libs/1_70_0/libs/filesystem/doc/index.htm -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
