login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
28
Re: [PATCH] ftrace: fix current_tracer error return
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Frédéric Weisbecker
Subject:
Re: [PATCH] ftrace: fix current_tracer error return
Date: Tuesday, October 28, 2008 - 8:35 am
2008/10/28 Steven Rostedt <rostedt@goodmis.org>:
quoted text
> > The commit (in linux-tip) c2931e05ec5965597cbfb79ad332d4a29aeceb23 > ( ftrace: return an error when setting a nonexistent tracer ) > added useful code that would error when a bad tracer was written into > the current_tracer file. > > But this had a bug if the amount written was more than the amount read by > that code. The first iteration would set the tracer correctly, but since > it did not consume the rest of what was written (usually whitespace), the > userspace utility would continue to write what was not consumed. This > second iteration would fail to find a tracer and return -EINVAL. Funny > thing is that the tracer would have already been set. > > This patch just consumes all the data that is written to the file. > > > Signed-off-by: Steven Rostedt <srostedt@redhat.com>
An that corrects the bug when I failed to assign the sched_switch tracer. Thanks Steven! Tested-by: Frederic Weisbecker <fweisbec@gmail.com> --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Ftrace doesn't work anymore on latest tip
, Frédéric Weisbecker
, (Mon Oct 27, 4:18 pm)
Re: Ftrace doesn't work anymore on latest tip
, Steven Rostedt
, (Mon Oct 27, 4:36 pm)
Re: Ftrace doesn't work anymore on latest tip
, Frédéric Weisbecker
, (Mon Oct 27, 4:44 pm)
Re: Ftrace doesn't work anymore on latest tip
, Frédéric Weisbecker
, (Tue Oct 28, 2:02 am)
Re: Ftrace doesn't work anymore on latest tip
, Steven Rostedt
, (Tue Oct 28, 7:23 am)
[PATCH] ftrace: fix current_tracer error return
, Steven Rostedt
, (Tue Oct 28, 7:44 am)
Re: [PATCH] ftrace: fix current_tracer error return
, Frédéric Weisbecker
, (Tue Oct 28, 8:35 am)
Re: [PATCH] ftrace: fix current_tracer error return
, Steven Rostedt
, (Tue Oct 28, 8:41 am)
Re: [PATCH] ftrace: fix current_tracer error return
, Frédéric Weisbecker
, (Tue Oct 28, 11:15 am)
Re: [PATCH] ftrace: fix current_tracer error return
, Steven Rostedt
, (Tue Oct 28, 11:32 am)
Re: [PATCH] ftrace: fix current_tracer error return
, Frédéric Weisbecker
, (Tue Oct 28, 5:34 pm)
Re: [PATCH] ftrace: fix current_tracer error return
, Steven Rostedt
, (Tue Oct 28, 5:55 pm)
Re: [PATCH] ftrace: fix current_tracer error return
, Frédéric Weisbecker
, (Tue Oct 28, 6:09 pm)
Re: [PATCH] ftrace: fix current_tracer error return
, Steven Rostedt
, (Tue Oct 28, 6:11 pm)
Re: [PATCH] ftrace: fix current_tracer error return
, Ingo Molnar
, (Wed Oct 29, 1:35 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #16136] Linux 2.6.34 causes system lockup on Compaq Presario 2200 Laptop
Joerg Roedel
Re: [patch] dma-debug: off by one issue
Tetsuo Handa
Re: [AppArmor #7 0/13] AppArmor security module
Pekka Enberg
Re: BUG in free_block (tainted)
Jakub Narebski
Re: [PATCH] gitweb: Fix shortlog only showing HEAD revision.
git
:
Christian Stimming
git-gui: Fix broken revert confirmation.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
linux-netdev
:
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Amit Kumar Salecha
[PATCH NEXT 10/10] qlcnic: add cksum flag
Patrick McHardy
Re: [PATCH RESEND 1/3] netfilter: xtables: inclusion of xt_condition
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
ath9k: Added get_survey callback in order to get channel noise
Linux Kernel Mailing List
ALSA: snd-usb-caiaq: Do not expose hardware input mode 0 of A4DJ
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
V4L/DVB (9041): Add support YUAN High-Tech STK7700D (1164:1f08)
openbsd-misc
:
Conor
Re: RFID Reader
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Stuart Henderson
Re: SquidGuard problem
Henning Brauer
Re: 3ware hardware raid support?
Ryan McBride
Re: Packets Per Second Limit?
Colocation donated by:
Syndicate