functions folder in trace_stat folder of ftrace












0















I am learning ftrace, I read from the following link that I can enable function profiling using the 'function_profile_enabled' file.



mount -t tracefs nodev /sys/kernel/tracing
cd /sys/kernel/tracing
echo 1 > function_profile_enabled
echo "function" > current_tracer


https://www.kernel.org/doc/html/v4.18/trace/ftrace.html



The above link tells that the information is present in trace_stats/function (function0, function1..)



$ ls trace_stat/function*
trace_stat/function0 trace_stat/function15 trace_stat/function21 trace_stat/function28 trace_stat/function6
trace_stat/function1 trace_stat/function16 trace_stat/function22 trace_stat/function29 trace_stat/function7
trace_stat/function10 trace_stat/function17 trace_stat/function23 trace_stat/function3 trace_stat/function8
trace_stat/function11 trace_stat/function18 trace_stat/function24 trace_stat/function30 trace_stat/function9
trace_stat/function12 trace_stat/function19 trace_stat/function25 trace_stat/function31
trace_stat/function13 trace_stat/function2 trace_stat/function26 trace_stat/function4
trace_stat/function14 trace_stat/function20 trace_stat/function27 trace_stat/function5
root tracing


I only have 4 cores on my Ubuntu VM



$ grep -c ^processor /proc/cpuinfo     
4


Can anyone explain me the actual significance of this file function<> in trace_stat folder
functions folder in trace_stat folder










share|improve this question



























    0















    I am learning ftrace, I read from the following link that I can enable function profiling using the 'function_profile_enabled' file.



    mount -t tracefs nodev /sys/kernel/tracing
    cd /sys/kernel/tracing
    echo 1 > function_profile_enabled
    echo "function" > current_tracer


    https://www.kernel.org/doc/html/v4.18/trace/ftrace.html



    The above link tells that the information is present in trace_stats/function (function0, function1..)



    $ ls trace_stat/function*
    trace_stat/function0 trace_stat/function15 trace_stat/function21 trace_stat/function28 trace_stat/function6
    trace_stat/function1 trace_stat/function16 trace_stat/function22 trace_stat/function29 trace_stat/function7
    trace_stat/function10 trace_stat/function17 trace_stat/function23 trace_stat/function3 trace_stat/function8
    trace_stat/function11 trace_stat/function18 trace_stat/function24 trace_stat/function30 trace_stat/function9
    trace_stat/function12 trace_stat/function19 trace_stat/function25 trace_stat/function31
    trace_stat/function13 trace_stat/function2 trace_stat/function26 trace_stat/function4
    trace_stat/function14 trace_stat/function20 trace_stat/function27 trace_stat/function5
    root tracing


    I only have 4 cores on my Ubuntu VM



    $ grep -c ^processor /proc/cpuinfo     
    4


    Can anyone explain me the actual significance of this file function<> in trace_stat folder
    functions folder in trace_stat folder










    share|improve this question

























      0












      0








      0








      I am learning ftrace, I read from the following link that I can enable function profiling using the 'function_profile_enabled' file.



      mount -t tracefs nodev /sys/kernel/tracing
      cd /sys/kernel/tracing
      echo 1 > function_profile_enabled
      echo "function" > current_tracer


      https://www.kernel.org/doc/html/v4.18/trace/ftrace.html



      The above link tells that the information is present in trace_stats/function (function0, function1..)



      $ ls trace_stat/function*
      trace_stat/function0 trace_stat/function15 trace_stat/function21 trace_stat/function28 trace_stat/function6
      trace_stat/function1 trace_stat/function16 trace_stat/function22 trace_stat/function29 trace_stat/function7
      trace_stat/function10 trace_stat/function17 trace_stat/function23 trace_stat/function3 trace_stat/function8
      trace_stat/function11 trace_stat/function18 trace_stat/function24 trace_stat/function30 trace_stat/function9
      trace_stat/function12 trace_stat/function19 trace_stat/function25 trace_stat/function31
      trace_stat/function13 trace_stat/function2 trace_stat/function26 trace_stat/function4
      trace_stat/function14 trace_stat/function20 trace_stat/function27 trace_stat/function5
      root tracing


      I only have 4 cores on my Ubuntu VM



      $ grep -c ^processor /proc/cpuinfo     
      4


      Can anyone explain me the actual significance of this file function<> in trace_stat folder
      functions folder in trace_stat folder










      share|improve this question














      I am learning ftrace, I read from the following link that I can enable function profiling using the 'function_profile_enabled' file.



      mount -t tracefs nodev /sys/kernel/tracing
      cd /sys/kernel/tracing
      echo 1 > function_profile_enabled
      echo "function" > current_tracer


      https://www.kernel.org/doc/html/v4.18/trace/ftrace.html



      The above link tells that the information is present in trace_stats/function (function0, function1..)



      $ ls trace_stat/function*
      trace_stat/function0 trace_stat/function15 trace_stat/function21 trace_stat/function28 trace_stat/function6
      trace_stat/function1 trace_stat/function16 trace_stat/function22 trace_stat/function29 trace_stat/function7
      trace_stat/function10 trace_stat/function17 trace_stat/function23 trace_stat/function3 trace_stat/function8
      trace_stat/function11 trace_stat/function18 trace_stat/function24 trace_stat/function30 trace_stat/function9
      trace_stat/function12 trace_stat/function19 trace_stat/function25 trace_stat/function31
      trace_stat/function13 trace_stat/function2 trace_stat/function26 trace_stat/function4
      trace_stat/function14 trace_stat/function20 trace_stat/function27 trace_stat/function5
      root tracing


      I only have 4 cores on my Ubuntu VM



      $ grep -c ^processor /proc/cpuinfo     
      4


      Can anyone explain me the actual significance of this file function<> in trace_stat folder
      functions folder in trace_stat folder







      linux linux-kernel debugging profiling ftrace






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 26 at 9:08









      md.jamalmd.jamal

      1114




      1114






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496839%2ffunctions-folder-in-trace-stat-folder-of-ftrace%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496839%2ffunctions-folder-in-trace-stat-folder-of-ftrace%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to make a Squid Proxy server?

          Is this a new Fibonacci Identity?

          19世紀