~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to tools/lib/traceevent/event-parse.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef _PARSE_EVENTS_H
21
21
#define _PARSE_EVENTS_H
22
22
 
 
23
#include <stdbool.h>
23
24
#include <stdarg.h>
24
25
#include <regex.h>
25
26
 
307
308
        EVENT_FL_ISBPRINT       = 0x04,
308
309
        EVENT_FL_ISFUNCENT      = 0x10,
309
310
        EVENT_FL_ISFUNCRET      = 0x20,
 
311
        EVENT_FL_NOHANDLE       = 0x40,
 
312
        EVENT_FL_PRINTRAW       = 0x80,
310
313
 
311
314
        EVENT_FL_FAILED         = 0x80000000
312
315
};
450
453
 
451
454
        /* cache */
452
455
        struct event_format *last_event;
 
456
 
 
457
        char *trace_clock;
453
458
};
454
459
 
455
460
static inline void pevent_set_flag(struct pevent *pevent, int flag)
527
532
};
528
533
 
529
534
int pevent_register_comm(struct pevent *pevent, const char *comm, int pid);
 
535
void pevent_register_trace_clock(struct pevent *pevent, char *trace_clock);
530
536
int pevent_register_function(struct pevent *pevent, char *name,
531
537
                             unsigned long long addr, char *mod);
532
 
int pevent_register_print_string(struct pevent *pevent, char *fmt,
 
538
int pevent_register_print_string(struct pevent *pevent, const char *fmt,
533
539
                                 unsigned long long addr);
534
540
int pevent_pid_is_registered(struct pevent *pevent, int pid);
535
541
 
536
542
void pevent_print_event(struct pevent *pevent, struct trace_seq *s,
537
 
                        struct pevent_record *record);
 
543
                        struct pevent_record *record, bool use_trace_clock);
538
544
 
539
545
int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size,
540
546
                             int long_size);
563
569
                           struct event_format *event, const char *name,
564
570
                           struct pevent_record *record, int err);
565
571
 
 
572
int pevent_print_func_field(struct trace_seq *s, const char *fmt,
 
573
                           struct event_format *event, const char *name,
 
574
                           struct pevent_record *record, int err);
 
575
 
566
576
int pevent_register_event_handler(struct pevent *pevent, int id,
567
577
                                  const char *sys_name, const char *event_name,
568
578
                                  pevent_event_handler_func func, void *context);