Git Product home page Git Product logo

Comments (3)

huaicheng avatar huaicheng commented on July 30, 2024 1

Hi,

You might want to check code under hw/block/femu/ftl/. The ideal place to add the counter you need is ssd_advance_status(), which is called every time a NAND level I/O needs to be triggered.

from femu.

WaterccL avatar WaterccL commented on July 30, 2024

The struct ssdstate consists of written_page number.

     /* SSD Util */
    double ssd_util;
    int64_t written_page_nb;

    /* Mapping table */
    int64_t *mapping_table;

If you want to print such information, you may need to modify the source code and recompile it.

from femu.

theanoli avatar theanoli commented on July 30, 2024

It seems the ssdstate struct isn't around anymore (and I can't find a page write counter elsewhere). If I wanted to track the number of page writes, would it be best to put the counter in the NANDFlashState struct, and then increment the counter in the nand_blk_write_ function (here)?

from femu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.