From: Steven Rostedt <srostedt@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] ftrace_stress_test: check if tracing_enabled is supported
Date: Thu, 04 Feb 2016 11:23:08 -0500 [thread overview]
Message-ID: <1454602988.1195.56.camel@fedora> (raw)
In-Reply-To: <20160204151100.GA15075@rei.suse.cz>
On Thu, 2016-02-04 at 16:11 +0100, Cyril Hrubis wrote:
> Also looking at the stress test all it does is writing to various files
> (in several background loops) that store tracing parameters. Is that
> even reasonable test? I guess that it can find out race conditions
> between functions that handle the write for the options...
I don't use the LTP tests for ftrace, so I wouldn't know.
>
> And it uses the tracing_on file as well. So we can just skip starting
> the loop writes to the ftrace_enabled file if it's not present.
>
ftrace_enabled is completely different. It disables function tracing
capabilities (and should be avoided
if /sys/kernel/debug/tracing/options/function-trace is present. As that
will only disable function hooks for tracing,
where /proc/sys/kernel/ftrace_enabled disables *all* hooks (including
those for live kernel patching). Which I need to make a patch to prevent
that :-/
-- Steve
next prev parent reply other threads:[~2016-02-04 16:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-24 5:22 [LTP] [PATCH] ftrace_stress_test: check if tracing_enabled is supported Chuyu Hu
2016-02-04 14:28 ` Cyril Hrubis
2016-02-04 15:06 ` Steven Rostedt
2016-02-04 15:11 ` Cyril Hrubis
2016-02-04 16:23 ` Steven Rostedt [this message]
2016-02-05 6:09 ` Chunyu Hu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1454602988.1195.56.camel@fedora \
--to=srostedt@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.