git-send-email (Fw: Delivery reports about your email [FAILED(1)])
Looks like at least some mailers don't like the Message-Id's being spit out by the version of git-send-email this person is using.
Just FYI from your friendly vger postmaster. :-)
This is a collection of reports about email delivery process concerning a message you originated.
Some explanations/translations for these reports
can be found at:
http://www.zmailer.org/delivery-report-decoding.html
Generic VGER note: Joining/leaving VGER's lists thru server:
[email protected]
Reporting-MTA: dns; vger.kernel.org
Return-Path: <[email protected]>
Arrival-Date: Wed, 20 Jun 2007 06:36:19 -0400
Local-Spool-ID: S1763440AbXFTKgT
FAILED:
Original Recipient:
rfc822;[email protected] Final Recipient: RFC822;[email protected] Status: 5.0.0 Remote MTA: dns; ke.lynx.sk (85.159.105.18|25|209.132.176.167|35055) Last Attempt Date: Wed, 20 Jun 2007 06:36:35 -0400 X-ZTAID: smtp[23596] Diagnostic Code: smtp; 553 (Message-Id header line format error) Control data: smtp lynx.sk [email protected] 99 Diagnostic texts: <<- MAIL From:<linux-kernel-owner+jan.kromel=40lynx.sk-S1763440AbXFTKgT@vger.kernel.org> BODY=8BITMIME SIZE=23117 ->> 250 2.1.0 <linux-kernel-owner+jan.kromel=40lynx.sk-S1763440AbXFTKgT@vger.kernel.org>... Sender ok <<- RCPT To:<[email protected]> NOTIFY=FAILURE ORCPT=rfc822;[email protected] ->> 250 2.1.5 <[email protected]>... Recipient ok <<- DATA ->> 354 Enter mail, end with "." on a line by itself <<- . ->> 553 5.0.0 Message-Id header line format error
Following is a copy of MESSAGE/DELIVERY-STATUS format section below. It is copied here in case your email client is unable to show it to you. The information here below is in Internet Standard format designed to assist automatic, and accurate presentation and usage of said information. In case you need human assistance from the Postmaster(s) of the system which sent you this report, please include this information in your question!
Virtually Yours,
Automatic Email Delivery Software
Reporting-MTA: dns; vger.kernel.org
Arrival-Date: Wed, 20 Jun 2007 06:36:19 -0400
Local-Spool-ID: S1763440AbXFTKgT
Original-Recipient: rfc822;[email protected]
Final-Recipient: RFC822;[email protected]
Action: failed
Status: 5.0.0
Remote-MTA: dns; ke.lynx.sk (85.159.105.18|25|209.132.176.167|35055)
Last-Attempt-Date: Wed, 20 Jun 2007 06:36:35 -0400
Diagnostic-Code: smtp; 553 (Message-Id header line format error)
Following is copy of the message headers. Original message content may be in subsequent parts of this MESSAGE/DELIVERY-STATUS structure.
Received: ([email protected]) by vger.kernel.org via listexpand
id S1763440AbXFTKgT; Wed, 20 Jun 2007 06:36:19 -0400 Received: ([email protected]) by vger.kernel.org id S1761052AbXFTKfu (ORCPT <rfc822;linux-kernel-outgoing>); Wed, 20 Jun 2007 06:35:50 -0400 Received: from mail.gmx.net ([213.165.64.20]:40751 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758129AbXFTKft (ORCPT <rfc822;[email protected]>); Wed, 20 Jun 2007 06:35:49 -0400
Received: (qmail invoked by alias); 20 Jun 2007 10:35:45 -0000
Received: from i577B9F78.versanet.de (EHLO localhost) [87.123.159.120]
by mail.gmx.net (mp052) with SMTP; 20 Jun 2007 12:35:45 +0200
X-Authenticated: #5039886
X-Provags-ID: V01U2FsdGVkX19FuG9DlANFUAB1y6743T/D78UN2sHlxVX5/236jp
MRleI9FWyt5fy+
From: =?utf-8?q?Bj=C3=B6rn=20Steinbrink?= <[email protected]>
To: [email protected]
Cc: [email protected], [email protected], [email protected],
[email protected], [email protected], [email protected], [email protected], [email protected], =?utf-8?q?Bj=C3=B6rn=20Steinbrink?= <[email protected]>
Subject: [PATCH 2/2] Finish separation of the performance counter allocator from the NMI watchdog
Date: Wed, 20 Jun 2007 12:35:57 +0200
Message-Id: <11823357623688-git-send-email->
X-Mailer: git-send-email 1.5.2.2
In-Reply-To: <11823357591180-git-send-email->
References: <[email protected]>
<11823357571842-git-send-email->
<11823357591180-git-send-email->
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
Sender: [email protected]
Precedence: bulk
X-Mailing-List: [email protected]
Received: ([email protected]) by vger.kernel.org via listexpand=
id S1763440AbXFTKgT; Wed, 20 Jun 2007 06:36:19 -0400 Received: ([email protected]) by vger.kernel.org id S1761052AbX= FTKfu (ORCPT <rfc822;linux-kernel-outgoing>); Wed, 20 Jun 2007 06:35:50 -0400 Received: from mail.gmx.net ([213.165.64.20]:40751 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758129AbXFTKft (ORCPT <rfc822;[email protected]>); Wed, 20 Jun 2007 06:35:49 -0400
Received: (qmail invoked by alias); 20 Jun 2007 10:35:45 -0000
Received: from i577B9F78.versanet.de (EHLO localhost) [87.123.159.120]
by mail.gmx.net (mp052) with SMTP; 20 Jun 2007 12:35:45 +0200
X-Authenticated: #5039886
X-Provags-ID: V01U2FsdGVkX19FuG9DlANFUAB1y6743T/D78UN2sHlxVX5/236jp
MRleI9FWyt5fy+
From: =3D?utf-8?q?Bj=3DC3=3DB6rn=3D20Steinbrink?=3D <[email protected]=
e>
To: [email protected]
Cc: [email protected], [email protected], [email protected],=
[email protected], [email protected], [email protected], [email protected], [email protected], =3D?utf-8?q?Bj=3DC3=3DB6rn=3D20Steinbrink?=3D <[email protected]>
Subject: [PATCH 2/2] Finish separation of the performance counter alloc= ator from the NMI watchdog
Date: Wed, 20 Jun 2007 12:35:57 +0200
Message-Id: <11823357623688-git-send-email->
X-Mailer: git-send-email 1.5.2.2
In-Reply-To: <11823357591180-git-send-email->
References: <[email protected]>
<11823357571842-git-send-email-> <11823357591180-git-send-email->
MIME-Version: 1.0
Content-Type: text/plain; charset=3Dutf-8
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
Sender: [email protected]
Precedence: bulk
X-Mailing-List: [email protected]
From: Bj=C3=B6rn Steinbrink <[email protected]>
Remove the nmi part from all names in the performance counter allocator=
and move all declarations into their own header file.
--- arch/i386/kernel/apic.c | 1 + arch/i386/kernel/cpu/perfctr-watchdog.c | 27 +++++++------- arch/i386/kernel/cpu/perfctr.c | 58 +++++++++++++++--------= ------- arch/i386/oprofile/nmi_int.c | 4 +- arch/i386/oprofile/op_model_athlon.c | 10 +++--- arch/i386/oprofile/op_model_p4.c | 28 +++++++------- arch/i386/oprofile/op_model_ppro.c | 10 +++--- arch/x86_64/kernel/apic.c | 1 + arch/x86_64/kernel/time.c | 12 +++--- include/asm-i386/nmi.h | 7 ---- include/asm-i386/perfctr.h | 15 ++++++++ include/asm-x86_64/nmi.h | 7 ---- include/asm-x86_64/perfctr.h | 15 ++++++++ 13 files changed, 107 insertions(+), 88 deletions(-) create mode 100644 include/asm-i386/perfctr.h create mode 100644 include/asm-x86_64/perfctr.h
arch/i386/kernel/apic.c +1 -0
@@ -38,6 +38,7 @@#include <asm/hpet.h> #include <asm/i8253.h> #include <asm/nmi.h> +#include <asm/perfctr.h> =#include <mach_apic.h>
#include <mach_apicdef.h>
arch/i386/kernel= renamed from arch/i386/kernel/cpu/perfctr-watchdog.c +0 -0
/cpu/perfctr-watchdog.c
index 2ae39eb..d8fabd2 100644
arch/i386/kernel/cpu/perfctr-watchdog.c +1 -0
@@ -13,6 +13,7 @@#include <linux/nmi.h> #include <asm/apic.h> #include <asm/intel_arch_perfmon.h> +#include <asm/perfctr.h> =struct nmi_watchdog_ctlblk {
unsigned int cccr_msr;
@@ -165,11 +166,11 @@ static void single_msr_stop_watchdog(void)
=
static int single_msr_reserve(void)
{
- if (!reserve_perfctr_nmi(wd_ops->perfctr))
+ if (!reserve_perfctr(wd_ops->perfctr))
return 0;
=
- if (!reserve_evntsel_nmi(wd_ops->evntsel)) {
- release_perfctr_nmi(wd_ops->perfctr);
+ if (!reserve_evntsel(wd_ops->evntsel)) {
+ release_perfctr(wd_ops->perfctr);
return 0;
}
return 1;
@@ -177,8 +178,8 @@ static int single_msr_reserve(void)
=
static void single_msr_unreserve(void)
{
- release_evntsel_nmi(wd_ops->evntsel);
- release_perfctr_nmi(wd_ops->perfctr);
+ release_evntsel(wd_ops->evntsel);
+ release_perfctr(wd_ops->perfctr);
}
=
static void single_msr_rearm(struct nmi_watchdog_ctlblk *wd, unsigned =nmi_hz)
@@ -352,23 +353,23 @@ static void stop_p4_watchdog(void)
=
static int p4_reserve(void)
{
- if (!reserve_perfctr_nmi(MSR_P4_IQ_PERFCTR0))
+ if (!reserve_perfctr(MSR_P4_IQ_PERFCTR0))
return 0;
#ifdef CONFIG_SMP
- if (smp_num_siblings > 1 && !reserve_perfctr_nmi(MSR_P4_IQ_PERFCTR1))=
+ if (smp_num_siblings > 1 && !reserve_perfctr(MSR_P4_IQ_PERFCTR1))
goto fail1;
#endif
- if (!reserve_evntsel_nmi(MSR_P4_CRU_ESCR0))
+ if (!reserve_evntsel(MSR_P4_CRU_ESCR0))
goto fail2;
/* RED-PEN why is ESCR1 not reserved here? */ return 1;
fail2:
#ifdef CONFIG_SMP
if (smp_num_siblings > 1)
- release_perfctr_nmi(MSR_P4_IQ_PERFCTR1);
+ release_perfctr(MSR_P4_IQ_PERFCTR1);
fail1:
#endif
- release_perfctr_nmi(MSR_P4_IQ_PERFCTR0);
+ release_perfctr(MSR_P4_IQ_PERFCTR0);
return 0;
}
=
@@ -376,10 +377,10 @@ static void p4_unreserve(void)
{
#ifdef CONFIG_SMP
if (smp_num_siblings > 1)
- release_perfctr_nmi(MSR_P4_IQ_PERFCTR1);
+ release_perfctr(MSR_P4_IQ_PERFCTR1);
#endif
- release_evntsel_nmi(MSR_P4_CRU_ESCR0);
- release_perfctr_nmi(MSR_P4_IQ_PERFCTR0);
+ release_evntsel(MSR_P4_CRU_ESCR0);
+ release_perfctr(MSR_P4_IQ_PERFCTR0);
}
=
static void p4_rearm(struct nmi_watchdog_ctlblk *wd, unsigned nmi_hz)
arch/i386/kernel/cpu/perf= renamed from arch/i386/kernel/cpu/perfctr.c +0 -0
ctr.c
index fece4fc..cbf57ce 100644
arch/i386/kernel/cpu/perfctr.c +0 -0
@@ -35,14 +35,14 @@ static struct perfctr_base_regs arch_perfmon_base_r=
egs =3D {
*/
#define NMI_MAX_COUNTER_BITS 66
=
-/* perfctr_nmi_owner tracks the ownership of the perfctr registers:
- * evtsel_nmi_owner tracks the ownership of the event selection +/* perfctr_owner tracks the ownership of the perfctr registers:
+ * evtsel_owner tracks the ownership of the event selection
* - different performance counters/ event selection may be reserved f=
or
* different subsystems this reservation system just tries to coordi=
nate
* things a little
*/
-static DECLARE_BITMAP(perfctr_nmi_owner, NMI_MAX_COUNTER_BITS); -static DECLARE_BITMAP(evntsel_nmi_owner, NMI_MAX_COUNTER_BITS); +static DECLARE_BITMAP(perfctr_owner, NMI_MAX_COUNTER_BITS); +static DECLARE_BITMAP(evntsel_owner, NMI_MAX_COUNTER_BITS);
=
void __devinit probe_performance_counters(void)
{
@@ -77,102 +77,102 @@ void __devinit probe_performance_counters(void)
}
=
/* converts an msr to an appropriate reservation bit */
-static inline unsigned int nmi_perfctr_msr_to_bit(unsigned int msr) +static inline unsigned int perfctr_msr_to_bit(unsigned int msr)
{
return msr - perfctr_base_regs->perfctr;
}
=
/* converts an msr to an appropriate reservation bit */ /* returns the bit offset of the event selection register */
-static inline unsigned int nmi_evntsel_msr_to_bit(unsigned int msr) +static inline unsigned int evntsel_msr_to_bit(unsigned int msr)
{
return msr - perfctr_base_regs->evntsel;
}
=
/* checks for a bit availability (hack for oprofile) */
-int avail_to_resrv_perfctr_nmi_bit(unsigned int counter) +int avail_to_resrv_perfctr_bit(unsigned int counter)
{
if (!perfctr_base_regs)
return 0;
=
BUG_ON(counter > NMI_MAX_COUNTER_BITS);
=
- return (!test_bit(counter, perfctr_nmi_owner));
+ return (!test_bit(counter, perfctr_owner));
}
=
/* checks the an msr for availability */
-int avail_to_resrv_perfctr_nmi(unsigned int msr)
+int avail_to_resrv_perfctr(unsigned int msr)
{
unsigned int counter;
=
if (!perfctr_base_regs)
return 0;
=
- counter =3D nmi_perfctr_msr_to_bit(msr);
+ counter =3D perfctr_msr_to_bit(msr);
BUG_ON(counter > NMI_MAX_COUNTER_BITS);
=
- return (!test_bit(counter, perfctr_nmi_owner));
+ return (!test_bit(counter, perfctr_owner));
}
=
-int reserve_perfctr_nmi(unsigned int msr)
+int reserve_perfctr(unsigned int msr)
{
unsigned int counter;
=
if (!perfctr_base_regs)
return 0;
=
- counter =3D nmi_perfctr_msr_to_bit(msr);
+ counter =3D perfctr_msr_to_bit(msr);
BUG_ON(counter > NMI_MAX_COUNTER_BITS);
=
- if (!test_and_set_bit(counter, perfctr_nmi_owner))
+ if (!test_and_set_bit(counter, perfctr_owner))
return 1;
return 0;
}
=
-void release_perfctr_nmi(unsigned int msr)
+void release_perfctr(unsigned int msr)
{
unsigned int counter;
=
if (!perfctr_base_regs)
return;
=
- counter =3D nmi_perfctr_msr_to_bit(msr);
+ counter =3D perfctr_msr_to_bit(msr);
BUG_ON(counter > NMI_MAX_COUNTER_BITS);
=
- clear_bit(counter, perfctr_nmi_owner);
+ clear_bit(counter, perfctr_owner);
}
=
-int reserve_evntsel_nmi(unsigned int msr)
+int reserve_evntsel(unsigned int msr)
{
unsigned int counter;
=
if (!perfctr_base_regs)
return 0;
=
- counter =3D nmi_evntsel_msr_to_bit(msr);
+ counter =3D evntsel_msr_to_bit(msr);
BUG_ON(counter > NMI_MAX_COUNTER_BITS);
=
- if (!test_and_set_bit(counter, evntsel_nmi_owner))
+ if (!test_and_set_bit(counter, evntsel_owner))
return 1;
return 0;
}
=
-void release_evntsel_nmi(unsigned int msr)
+void release_evntsel(unsigned int msr)
{
unsigned int counter;
=
if (!perfctr_base_regs)
return;
=
- counter =3D nmi_evntsel_msr_to_bit(msr);
+ counter =3D evntsel_msr_to_bit(msr);
BUG_ON(counter > NMI_MAX_COUNTER_BITS);
=
- clear_bit(counter, evntsel_nmi_owner);
+ clear_bit(counter, evntsel_owner);
}
=
-EXPORT_SYMBOL(avail_to_resrv_perfctr_nmi);
-EXPORT_SYMBOL(avail_to_resrv_perfctr_nmi_bit);
-EXPORT_SYMBOL(reserve_perfctr_nmi);
-EXPORT_SYMBOL(release_perfctr_nmi);
-EXPORT_SYMBOL(reserve_evntsel_nmi);
-EXPORT_SYMBOL(release_evntsel_nmi);
+EXPORT_SYMBOL(avail_to_resrv_perfctr);
+EXPORT_SYMBOL(avail_to_resrv_perfctr_bit);
+EXPORT_SYMBOL(reserve_perfctr);
+EXPORT_SYMBOL(release_perfctr);
+EXPORT_SYMBOL(reserve_evntsel);
+EXPORT_SYMBOL(release_evntsel);
arch/i386/oprofile/nmi_int.= renamed from arch/i386/oprofile/nmi_int.c +0 -0
c
index 11b7a51..b00ae99 100644
arch/i386/oprofile/nmi_int.c +1 -1
@@ -15,7 +15,7 @@#include <linux/slab.h> #include <linux/moduleparam.h> #include <linux/kdebug.h> -#include <asm/nmi.h> +#include <asm/perfctr.h> #include <asm/msr.h> #include <asm/apic.h> =
@@ -324,7 +324,7 @@ static int nmi_create_files(struct super_block * sb= , struct dentry * root)
* NOTE: assumes 1:1 mapping here (that counters are organized
* sequentially in their struct assignment).
*/
- if (unlikely(!avail_to_resrv_perfctr_nmi_bit(i)))
+ if (unlikely(!avail_to_resrv_perfctr_bit(i)))
continue;
=
snprintf(buf, sizeof(buf), "%d", i);
arch/i386/oprofile/= renamed from arch/i386/oprofile/op_model_athlon.c +0 -0
op_model_athlon.c
index 3057a19..b1e9902 100644
arch/i386/oprofile/op_model_athlon.c +1 -1
@@ -13,7 +13,7 @@#include <linux/oprofile.h> #include <asm/ptrace.h> #include <asm/msr.h> -#include <asm/nmi.h> +#include <asm/perfctr.h> =#include "op_x86_model.h"
#include "op_counter.h"
@@ -45,14 +45,14 @@ static void athlon_fill_in_addresses(struct op_msrs=
* const msrs)
int i;
=
for (i=3D0; i < NUM_COUNTERS; i++) {
- if (reserve_perfctr_nmi(MSR_K7_PERFCTR0 + i))
+ if (reserve_perfctr(MSR_K7_PERFCTR0 + i))
msrs->counters[i].addr =3D MSR_K7_PERFCTR0 + i;
else
msrs->counters[i].addr =3D 0;
}
=
for (i=3D0; i < NUM_CONTROLS; i++) {
- if (reserve_evntsel_nmi(MSR_K7_EVNTSEL0 + i))
+ if (reserve_evntsel(MSR_K7_EVNTSEL0 + i))
msrs->controls[i].addr =3D MSR_K7_EVNTSEL0 + i;
else
msrs->controls[i].addr =3D 0;
@@ -160,11 +160,11 @@ static void athlon_shutdown(struct op_msrs const =
* const msrs)
=
for (i =3D 0 ; i < NUM_COUNTERS ; ++i) {
if (CTR_IS_RESERVED(msrs,i))
- release_perfctr_nmi(MSR_K7_PERFCTR0 + i);
+ release_perfctr(MSR_K7_PERFCTR0 + i);
}
for (i =3D 0 ; i < NUM_CONTROLS ; ++i) {
if (CTRL_IS_RESERVED(msrs,i))
- release_evntsel_nmi(MSR_K7_EVNTSEL0 + i);
+ release_evntsel(MSR_K7_EVNTSEL0 + i);
}
}
=
arch/i386/oprofile/op_m= renamed from arch/i386/oprofile/op_model_p4.c +0 -0
odel_p4.c
index 4792592..6ba5856 100644
arch/i386/oprofile/op_model_p4.c +1 -1
@@ -14,7 +14,7 @@#include <asm/ptrace.h> #include <asm/fixmap.h> #include <asm/apic.h> -#include <asm/nmi.h> +#include <asm/perfctr.h> =#include "op_x86_model.h"
#include "op_counter.h"
@@ -413,7 +413,7 @@ static void p4_fill_in_addresses(struct op_msrs * c= onst msrs)
for (i =3D 0; i < num_counters; ++i) {
addr =3D p4_counters[VIRT_CTR(stag, i)].counter_address; cccraddr =3D p4_counters[VIRT_CTR(stag, i)].cccr_address;
- if (reserve_perfctr_nmi(addr)){
+ if (reserve_perfctr(addr)){
msrs->counters[i].addr =3D addr; msrs->controls[i].addr =3D cccraddr;
}
@@ -422,7 +422,7 @@ static void p4_fill_in_addresses(struct op_msrs * c= onst msrs)
/* 43 ESCR registers in three or four discontiguous group */ for (addr =3D MSR_P4_BSU_ESCR0 + stag;
addr < MSR_P4_IQ_ESCR0; ++i, addr +=3D addr_increment()) {
- if (reserve_evntsel_nmi(addr))
+ if (reserve_evntsel(addr))
msrs->controls[i].addr =3D addr;
}
=
@@ -431,32 +431,32 @@ static void p4_fill_in_addresses(struct op_msrs *=
const msrs)
if (boot_cpu_data.x86_model >=3D 0x3) {
for (addr =3D MSR_P4_BSU_ESCR0 + stag;
addr <=3D MSR_P4_BSU_ESCR1; ++i, addr +=3D addr_increment()) {
- if (reserve_evntsel_nmi(addr))
+ if (reserve_evntsel(addr))
msrs->controls[i].addr =3D addr;
}
} else {
for (addr =3D MSR_P4_IQ_ESCR0 + stag;
addr <=3D MSR_P4_IQ_ESCR1; ++i, addr +=3D addr_increment()) {
- if (reserve_evntsel_nmi(addr))
+ if (reserve_evntsel(addr))
msrs->controls[i].addr =3D addr;
}
}
=
for (addr =3D MSR_P4_RAT_ESCR0 + stag;
addr <=3D MSR_P4_SSU_ESCR0; ++i, addr +=3D addr_increment()) {
- if (reserve_evntsel_nmi(addr))
+ if (reserve_evntsel(addr))
msrs->controls[i].addr =3D addr;
}
=
for (addr =3D MSR_P4_MS_ESCR0 + stag;
addr <=3D MSR_P4_TC_ESCR1; ++i, addr +=3D addr_increment()) { =
- if (reserve_evntsel_nmi(addr))
+ if (reserve_evntsel(addr))
msrs->controls[i].addr =3D addr;
}
=
for (addr =3D MSR_P4_IX_ESCR0 + stag;
addr <=3D MSR_P4_CRU_ESCR3; ++i, addr +=3D addr_increment()) { =
- if (reserve_evntsel_nmi(addr))
+ if (reserve_evntsel(addr))
msrs->controls[i].addr =3D addr;
}
=
@@ -464,21 +464,21 @@ static void p4_fill_in_addresses(struct op_msrs *=
const msrs)
=
if (num_counters =3D=3D NUM_COUNTERS_NON_HT) { =
/* standard non-HT CPUs handle both remaining ESCRs*/
- if (reserve_evntsel_nmi(MSR_P4_CRU_ESCR5))
+ if (reserve_evntsel(MSR_P4_CRU_ESCR5))
msrs->controls[i++].addr =3D MSR_P4_CRU_ESCR5;
- if (reserve_evntsel_nmi(MSR_P4_CRU_ESCR4))
+ if (reserve_evntsel(MSR_P4_CRU_ESCR4))
msrs->controls[i++].addr =3D MSR_P4_CRU_ESCR4;
=
} else if (stag =3D=3D 0) {
/* HT CPUs give the first remainder to the even thread, as
the 32nd control register */
- if (reserve_evntsel_nmi(MSR_P4_CRU_ESCR4))
+ if (reserve_evntsel(MSR_P4_CRU_ESCR4))
msrs->controls[i++].addr =3D MSR_P4_CRU_ESCR4;
=
} else {
/* and two copies of the second to the odd thread,
for the 22st and 23nd control registers */
- if (reserve_evntsel_nmi(MSR_P4_CRU_ESCR5)) {
+ if (reserve_evntsel(MSR_P4_CRU_ESCR5)) {
msrs->controls[i++].addr =3D MSR_P4_CRU_ESCR5; msrs->controls[i++].addr =3D MSR_P4_CRU_ESCR5;
}
@@ -684,7 +684,7 @@ static void p4_shutdown(struct op_msrs const * cons= t msrs)
=
for (i =3D 0 ; i < num_counters ; ++i) {
if (CTR_IS_RESERVED(msrs,i))
- release_perfctr_nmi(msrs->counters[i].addr);
+ release_perfctr(msrs->counters[i].addr);
}
/* some of the control registers are specially reserved in
* conjunction with the counter registers (hence the starting offset)=
.=
@@ -692,7 +692,7 @@ static void p4_shutdown(struct op_msrs const * cons= t msrs)
*/
for (i =3D num_counters ; i < num_controls ; ++i) {
if (CTRL_IS_RESERVED(msrs,i))
- release_evntsel_nmi(msrs->controls[i].addr);
+ release_evntsel(msrs->controls[i].addr);
}
}
=
arch/i386/oprofile/op= renamed from arch/i386/oprofile/op_model_ppro.c +0 -0
_model_ppro.c
index c554f52..5dfd93a 100644
arch/i386/oprofile/op_model_ppro.c +1 -1
@@ -14,7 +14,7 @@#include <asm/ptrace.h> #include <asm/msr.h> #include <asm/apic.h> -#include <asm/nmi.h> +#include <asm/perfctr.h> =#include "op_x86_model.h"
#include "op_counter.h"
@@ -47,14 +47,14 @@ static void ppro_fill_in_addresses(struct op_msrs *=
const msrs)
int i;
=
for (i=3D0; i < NUM_COUNTERS; i++) {
- if (reserve_perfctr_nmi(MSR_P6_PERFCTR0 + i))
+ if (reserve_perfctr(MSR_P6_PERFCTR0 + i))
msrs->counters[i].addr =3D MSR_P6_PERFCTR0 + i;
else
msrs->counters[i].addr =3D 0;
}
=
for (i=3D0; i < NUM_CONTROLS; i++) {
- if (reserve_evntsel_nmi(MSR_P6_EVNTSEL0 + i))
+ if (reserve_evntsel(MSR_P6_EVNTSEL0 + i))
msrs->controls[i].addr =3D MSR_P6_EVNTSEL0 + i;
else
msrs->controls[i].addr =3D 0;
@@ -171,11 +171,11 @@ static void ppro_shutdown(struct op_msrs const * = const msrs)
=
for (i =3D 0 ; i < NUM_COUNTERS ; ++i) {
if (CTR_IS_RESERVED(msrs,i))
- release_perfctr_nmi(MSR_P6_PERFCTR0 + i);
+ release_perfctr(MSR_P6_PERFCTR0 + i);
}
for (i =3D 0 ; i < NUM_CONTROLS ; ++i) {
if (CTRL_IS_RESERVED(msrs,i))
- release_evntsel_nmi(MSR_P6_EVNTSEL0 + i);
+ release_evntsel(MSR_P6_EVNTSEL0 + i);
}
}
=
arch/x86_64/kernel/apic.c +1 -0
@@ -33,6 +33,7 @@#include <asm/pgalloc.h> #include <asm/mach_apic.h> #include <asm/nmi.h> +#include <asm/perfctr.h> #include <asm/idle.h> #include <asm/proto.h> #include <asm/timex.h>
arch/x86_64/kernel/time.c +1 -1
@@ -43,7 +43,7 @@#include <asm/apic.h> #include <asm/hpet.h> #include <asm/mpspec.h> -#include <asm/nmi.h> +#include <asm/perfctr.h> = static char *timename =3D NULL;
=
@@ -261,7 +261,7 @@ static unsigned int __init tsc_calibrate_cpu_khz(vo= id)
unsigned long flags;
=
for (i =3D 0; i < 4; i++)
- if (avail_to_resrv_perfctr_nmi_bit(i))
+ if (avail_to_resrv_perfctr_bit(i))
break;
no_ctr_free =3D (i =3D=3D 4);
if (no_ctr_free) {
@@ -270,8 +270,8 @@ static unsigned int __init tsc_calibrate_cpu_khz(vo=
id)
wrmsrl(MSR_K7_EVNTSEL3, 0);
rdmsrl(MSR_K7_PERFCTR3, pmc3);
} else {
- reserve_perfctr_nmi(MSR_K7_PERFCTR0 + i);
- reserve_evntsel_nmi(MSR_K7_EVNTSEL0 + i);
+ reserve_perfctr(MSR_K7_PERFCTR0 + i);
+ reserve_evntsel(MSR_K7_EVNTSEL0 + i);
}
local_irq_save(flags);
/* start meauring cycles, incrementing from 0 */
@@ -289,8 +289,8 @@ static unsigned int __init tsc_calibrate_cpu_khz(vo=
id)
wrmsrl(MSR_K7_PERFCTR3, pmc3);
wrmsrl(MSR_K7_EVNTSEL3, evntsel3);
} else {
- release_perfctr_nmi(MSR_K7_PERFCTR0 + i);
- release_evntsel_nmi(MSR_K7_EVNTSEL0 + i);
+ release_perfctr(MSR_K7_PERFCTR0 + i);
+ release_evntsel(MSR_K7_EVNTSEL0 + i);
}=
return pmc_now * tsc_khz / (tsc_now - tsc_start);
include/asm-i386/nmi.h +0 -7
@@ -18,13 +18,6 @@int do_nmi_callback (struct pt_regs *regs,int cpu); =extern int nmi_watchdog_enabled; -extern void probe_performance_counters (void ); -extern int avail_to_resrv_perfctr_nmi_bit (unsigned int ); -extern int avail_to_resrv_perfctr_nmi (unsigned int ); -extern int reserve_perfctr_nmi (unsigned int ); -extern void release_perfctr_nmi (unsigned int ); -extern int reserve_evntsel_nmi (unsigned int ); -extern void release_evntsel_nmi (unsigned int ); =
extern void setup_apic_nmi_watchdog (void *);
extern void stop_apic_nmi_watchdog (void *);
include/asm-i386/perfctr.h new file +15 -0
@@ -0,0 +1,15 @@ +/* +* linux/include/asm-i386/perfctr.h +*/ +#ifndef ASM_PERFCTR_H +#define ASM_PERFCTR_H + +extern void probe_performance_counters (void ); +extern int avail_to_resrv_perfctr_bit (unsigned int ); +extern int avail_to_resrv_perfctr (unsigned int ); +extern int reserve_perfctr (unsigned int ); +extern void release_perfctr (unsigned int ); +extern int reserve_evntsel (unsigned int ); +extern void release_evntsel (unsigned int ); + +#endif /* ASM_PERFCTR_H */
include/asm-x86_64/nmi.h +0 -7
@@ -46,13 +46,6 @@ extern int unknown_nmi_panic;extern int nmi_watchdog_enabled; =extern int check_nmi_watchdog (void ); -extern void probe_performance_counters (void ); -extern int avail_to_resrv_perfctr_nmi_bit (unsigned int ); -extern int avail_to_resrv_perfctr_nmi (unsigned int ); -extern int reserve_perfctr_nmi (unsigned int ); -extern void release_perfctr_nmi (unsigned int ); -extern int reserve_evntsel_nmi (unsigned int ); -extern void release_evntsel_nmi (unsigned int ); =
extern void setup_apic_nmi_watchdog (void *);
extern void stop_apic_nmi_watchdog (void *);
include/asm-x86_64/perfctr.= renamed from include/asm-x86_64/perfctr.h +0 -0
h
new file mode 100644
index 0000000..9ff5c2d
include/asm-x86_64/perfctr.h new file +15 -0
@@ -0,0 +1,15 @@ +/* +* linux/include/asm-x86_64/perfctr.h +*/ +#ifndef ASM_PERFCTR_H +#define ASM_PERFCTR_H + +extern void probe_performance_counters (void ); +extern int avail_to_resrv_perfctr_bit (unsigned int ); +extern int avail_to_resrv_perfctr (unsigned int ); +extern int reserve_perfctr (unsigned int ); +extern void release_perfctr (unsigned int ); +extern int reserve_evntsel (unsigned int ); +extern void release_evntsel (unsigned int ); + +#endif /* ASM_PERFCTR_H */
-- =
1.5.2.1
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/=
PATCH 1/1 git-send-email: RFC2822 compliant Message-ID
RFC 2822 section 3.6.4 suggests that a "good method" for generating a Message-ID is to put the domain name of the host on the right-side of the "@" character. Use Perl's Sys::Hostname to do the heavy lifting. This module has been in the Perl core since version 5.
--- git-send-email.perl | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
git-send-email.perl +4 -3
@@ -21,6 +21,7 @@ use warnings; use Term::ReadLine; use Getopt::Long; use Data::Dumper; +use Sys::Hostname; use Git; package FakeTerm;
@@ -411,9 +412,9 @@ sub extract_valid_address { # a random number to the end, in case we are called quicker than # 1 second since the last time we were called. -# We'll setup a template for the message id, using the "from" address: -my $message_id_from = extract_valid_address($from); -my $message_id_template = "<%s-git-send-email-$message_id_from>"; +# We'll setup a template for the message id, using the hostname: +my $hostname = hostname(); +my $message_id_template = "<%s-git-send-email\@$hostname>"; sub make_message_id {
Signature · 1 line
1.5.2.2.238.g7cbf2f2
Re: [PATCH] git-send-email: RFC2822 compliant Message-ID
How about doing this instead?
* Move call to make_message_id() to where it matters, namely, before the $message_id is needed to be placed in the generated e-mail header; this has an important side effect of making it clear that $from is already available.
* Throw in Sys::Hostname::hostname() just for fun, although I suspect that the code would never trigger due to the modified call sequence that makes sure $from is always available.
---
git-send-email.perl +12 -4
@@ -412,13 +412,21 @@ sub extract_valid_address { # 1 second since the last time we were called. # We'll setup a template for the message id, using the "from" address: -my $message_id_from = extract_valid_address($from); -my $message_id_template = "<%s-git-send-email-$message_id_from>"; sub make_message_id { my $date = time; my $pseudo_rand = int (rand(4200)); + my $du_part; + for ($from, $committer, $author) { + $du_part = extract_valid_address($_); + last if ($du_part ne ''); + } + if ($du_part eq '') { + use Sys::Hostname qw(); + $du_part = 'user@' . Sys::Hostname::hostname(); + } + my $message_id_template = "<%s-git-send-email-$du_part>"; $message_id = sprintf $message_id_template, "$date$pseudo_rand"; #print "new message id = $message_id\n"; # Was useful for debugging }
@@ -467,6 +475,8 @@ sub send_message $ccline = "\nCc: $cc"; } $from = sanitize_address_rfc822($from); + make_message_id(); + my $header = "From: $from To: $to${ccline} Subject: $subject
@@ -533,7 +543,6 @@ X-Mailer: git-send-email $gitversion $reply_to = $initial_reply_to; $references = $initial_reply_to || ''; -make_message_id(); $subject = $initial_subject; foreach my $t (@files) {
@@ -627,7 +636,6 @@ foreach my $t (@files) { $references = "$message_id"; } } - make_message_id(); } if ($compose) {
Re: [PATCH] git-send-email: RFC2822 compliant Message-ID
Quoted 60 lines · Junio C Hamano
How about doing this instead?
* Move call to
make_message_id()to where it matters, namely, before the $message_id is needed to be placed in the generated e-mail header; this has an important side effect of making it clear that $from is already available.* Throw in
Sys::Hostname::hostname()just for fun, although I suspect that the code would never trigger due to the modified call sequence that makes sure $from is always available.---
git-send-email.perl +12
-3@@ -412,13 +412,21 @@ sub extract_valid_address { # 1 second since the last time we were called. # We'll setup a template for the message id, using the "from" address: -my $message_id_from = extract_valid_address($from); -my $message_id_template = "<%s-git-send-email-$message_id_from>"; sub make_message_id { my $date = time; my $pseudo_rand = int (rand(4200)); + my $du_part; + for ($from, $committer, $author) { + $du_part = extract_valid_address($_); + last if ($du_part ne ''); + } + if ($du_part eq '') { + use Sys::Hostname qw(); + $du_part = 'user@' . Sys::Hostname::hostname(); + } + my $message_id_template = "<%s-git-send-email-$du_part>"; $message_id = sprintf $message_id_template, "$date$pseudo_rand"; #print "new message id = $message_id\n"; # Was useful for debugging }@@ -467,6 +475,8 @@ sub send_message $ccline = "\nCc: $cc"; } $from = sanitize_address_rfc822($from); + make_message_id(); + my $header = "From: $from To: $to${ccline} Subject: $subject@@ -533,7 +543,6 @@ X-Mailer: git-send-email $gitversion $reply_to = $initial_reply_to; $references = $initial_reply_to || ''; -make_message_id(); $subject = $initial_subject; foreach my $t (@files) {
git-send-email.perl foreach my $t (@files) { · line 641
Quoted 7 lines
git-send-email.perl +0
-1@@ -627,7 +636,6 @@ foreach my $t (@files) { $references = "$message_id"; } } - make_message_id(); } if ($compose) {
I like it. It eliminates two globals and makes the context of make_message_id clearer.
Signature · 1 line
Michael
Re: [PATCH] git-send-email: RFC2822 compliant Message-ID
In reply to Michael HendricksQuoted 4 lines · Michael Hendricks
RFC 2822 section 3.6.4 suggests that a "good method" for generating a Message-ID is to put the domain name of the host on the right-side of the "@" character. Use Perl's
Sys::Hostnameto do the heavy lifting. This module has been in the Perl core since version 5.
Probably is a good idea for 50% of properly configured hosts. I think hosts can be configured so that hostname() already returns fqdn in which case your patch is fine but they can also be configured so that hostname() plus its domainname becomes fqdn, in which case it is probably not. In any case it is mere suggestion (not MUST nor even SHOULD), so we should judge its merits a bit carefully.
What happens if the machine you run send-email on does not have a valid hostname configured yet? People on home machines or laptops whose only contact outside are with their ISP mailservers should be able to send their patches without having to configure /etc/hostname, shouldn't they? Does Sys::Hostname die under some condition, such as "the host is not configured well enough"? If so I suspect the change to replace the existing one is not acceptable.
I think we should use something safe that gives reasonably unique identifier and the existing $message_id_from based method is one way to do so.
The message from vger mailmaster (DSM) suggests that somehow $message_id_from method returned an empty string. Maybe make your patch used as a fallback in such a case?
Finally could you resend this with your updated git-send-email? I suspect that this line in the mail header of your patch:
Message-ID: <[email protected]>
should have read like so:
Message-ID: <[email protected]>
Quoted 4 lines · David Miller
Looks like at least some mailers don't like the Message-Id's being spit out by the version of git-send-email this person is using.
I'm going to guess the problem is the lack of a "@" in the Message-Id:
Quoted 1 line
Message-Id: <11823357623688-git-send-email->
That's not really right. :)
Quoted 1 line
Just FYI from your friendly vger postmaster. :-)
thanks.
Signature · 1 line
Ryan