mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into perf/core
This commit is contained in:
commit
dfacc4d6c9
551 changed files with 11364 additions and 7755 deletions
|
|
@ -1937,7 +1937,7 @@ void *raw_field_ptr(struct event *event, const char *name, void *data)
|
|||
if (!field)
|
||||
return NULL;
|
||||
|
||||
if (field->flags & FIELD_IS_STRING) {
|
||||
if (field->flags & FIELD_IS_DYNAMIC) {
|
||||
int offset;
|
||||
|
||||
offset = *(int *)(data + field->offset);
|
||||
|
|
|
|||
|
|
@ -53,12 +53,6 @@ static unsigned long page_size;
|
|||
static ssize_t calc_data_size;
|
||||
static bool repipe;
|
||||
|
||||
/* If it fails, the next read will report it */
|
||||
static void skip(int size)
|
||||
{
|
||||
lseek(input_fd, size, SEEK_CUR);
|
||||
}
|
||||
|
||||
static int do_read(int fd, void *buf, int size)
|
||||
{
|
||||
int rsize = size;
|
||||
|
|
@ -98,6 +92,19 @@ static int read_or_die(void *data, int size)
|
|||
return r;
|
||||
}
|
||||
|
||||
/* If it fails, the next read will report it */
|
||||
static void skip(int size)
|
||||
{
|
||||
char buf[BUFSIZ];
|
||||
int r;
|
||||
|
||||
while (size) {
|
||||
r = size > BUFSIZ ? BUFSIZ : size;
|
||||
read_or_die(buf, r);
|
||||
size -= r;
|
||||
};
|
||||
}
|
||||
|
||||
static unsigned int read4(void)
|
||||
{
|
||||
unsigned int data;
|
||||
|
|
|
|||
|
|
@ -233,7 +233,12 @@ static inline unsigned long long __data2host8(unsigned long long data)
|
|||
|
||||
#define data2host2(ptr) __data2host2(*(unsigned short *)ptr)
|
||||
#define data2host4(ptr) __data2host4(*(unsigned int *)ptr)
|
||||
#define data2host8(ptr) __data2host8(*(unsigned long long *)ptr)
|
||||
#define data2host8(ptr) ({ \
|
||||
unsigned long long __val; \
|
||||
\
|
||||
memcpy(&__val, (ptr), sizeof(unsigned long long)); \
|
||||
__data2host8(__val); \
|
||||
})
|
||||
|
||||
extern int header_page_ts_offset;
|
||||
extern int header_page_ts_size;
|
||||
|
|
|
|||
Loading…
Reference in a new issue