mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Merge branch 'linus' into core/percpu
Conflicts: arch/x86/kernel/setup_percpu.c
This commit is contained in:
commit
3ddeb51d9c
944 changed files with 12533 additions and 5854 deletions
|
|
@ -393,16 +393,21 @@ oprofile_write_reserve(struct op_entry *entry, struct pt_regs * const regs,
|
|||
return;
|
||||
|
||||
fail:
|
||||
entry->event = NULL;
|
||||
cpu_buf->sample_lost_overflow++;
|
||||
}
|
||||
|
||||
int oprofile_add_data(struct op_entry *entry, unsigned long val)
|
||||
{
|
||||
if (!entry->event)
|
||||
return 0;
|
||||
return op_cpu_buffer_add_data(entry, val);
|
||||
}
|
||||
|
||||
int oprofile_write_commit(struct op_entry *entry)
|
||||
{
|
||||
if (!entry->event)
|
||||
return -EINVAL;
|
||||
return op_cpu_buffer_write_commit(entry);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -66,6 +66,13 @@ static inline void op_cpu_buffer_reset(int cpu)
|
|||
cpu_buf->last_task = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* op_cpu_buffer_add_data() and op_cpu_buffer_write_commit() may be
|
||||
* called only if op_cpu_buffer_write_reserve() did not return NULL or
|
||||
* entry->event != NULL, otherwise entry->size or entry->event will be
|
||||
* used uninitialized.
|
||||
*/
|
||||
|
||||
struct op_sample
|
||||
*op_cpu_buffer_write_reserve(struct op_entry *entry, unsigned long size);
|
||||
int op_cpu_buffer_write_commit(struct op_entry *entry);
|
||||
|
|
|
|||
Loading…
Reference in a new issue