On Fri, Sep 30, 2016 at 09:57:43PM +0300, Jarkko Sakkinen wrote: > On Wed, Sep 28, 2016 at 04:34:37AM -0400, Nayna Jain wrote: > > Currently, the securityfs pseudo files for obtaining the firmware > > event log are created whether the event log properties exist or not. > > This patch creates ascii and bios measurements pseudo files > > only if read_log() is successful. > > > > Suggested-by: Jason Gunthorpe <jguntho...@obsidianresearch.com> > > Signed-off-by: Nayna Jain <na...@linux.vnet.ibm.com> > > I'm not going to accept this commit as this increases permanent memory > consumption of the subsystem.
How much memory is this? The patch set is supposed to change things so the permanent log is used for all the accessor functions which avoids re-parsing every time the log file sysfs is opened. Since the log never changes this is an overall saner approach to handling the sysfs files. IIRC this was also a simple way to solve some ref counting bugs in the current code. Since this is just referencing reserved system memory, could the memcpy and allocation just be eliminated? Or is there too much transformation? > You don't need to read the log in order check if it is there. I disagree, a full parse is necessary, so it does need to be read. We could throw it away and read it again and again at every use.. Jason ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ tpmdd-devel mailing list tpmdd-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tpmdd-devel