[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4B57E905.1060900@linux.vnet.ibm.com>
Date: Thu, 21 Jan 2010 11:11:25 +0530
From: Mahesh Jagannath Salgaonkar <mahesh@...ux.vnet.ibm.com>
To: Linux Kernel <linux-kernel@...r.kernel.org>, ffweisbec@...il.com
CC: Heiko Carstens <heiko.carstens@...ibm.com>, schwidefsky@...ibm.com,
"K.Prasad" <prasad@...ux.vnet.ibm.com>
Subject: Re: [patch 3/3] S390-HWBKPT v3: Modify ptrace to use Hardware Breakpoint
interfaces.
Heiko Carstens wrote:
> On Thu, Jan 14, 2010 at 11:58:59AM +0530, Mahesh Salgaonkar wrote:
>> Modify the ptrace code to use the hardware breakpoint interfaces for
>> user-space
>
> I didn't look too deep into this one. So actually only one trivial comment:
>
>> diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
>> index 9a1d276..cb74f24 100644
>> --- a/include/linux/perf_event.h
>> +++ b/include/linux/perf_event.h
>> @@ -215,7 +215,11 @@ struct perf_event_attr {
>>
>> __u64 bp_addr;
>> __u32 bp_type;
>> +#ifdef __s390x__
>> + __u64 bp_len;
>> +#else
>> __u32 bp_len;
>> +#endif
>> };
>>
>> /*
>>
>
> Any chance to change common code to change that to an __u64 (unconditional)
> or at least an unsigned long?
> I'd hate to see an ifdef __s390x__ in common code.
Can we have the above common code to change the type of 'bp_len' to
__u64? In s390x arch watch point length can be upto 2^64.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists