Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277291
b: refs/heads/master
c: e3f4260
h: refs/heads/master
i:
  277289: ef6be92
  277287: 9b64626
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Nov 28, 2011
1 parent d779c61 commit ecc0e3b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 246d4ce8107ea16521384c8b2a8fcff354ef2b7c
refs/heads/master: e3f42609628a20da92ecbc2d81053cc82c90a071
5 changes: 3 additions & 2 deletions trunk/tools/perf/builtin-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "util/util.h"
#include "util/cache.h"
#include "util/evsel.h"
#include "util/symbol.h"
#include "util/thread.h"
#include "util/header.h"
Expand Down Expand Up @@ -1603,12 +1604,12 @@ static void process_raw_event(union perf_event *raw_event __used,

static int process_sample_event(union perf_event *event,
struct perf_sample *sample,
struct perf_evsel *evsel __used,
struct perf_evsel *evsel,
struct perf_session *session)
{
struct thread *thread;

if (!(session->sample_type & PERF_SAMPLE_RAW))
if (!(evsel->attr.sample_type & PERF_SAMPLE_RAW))
return 0;

thread = perf_session__findnew(session, sample->pid);
Expand Down
9 changes: 5 additions & 4 deletions trunk/tools/perf/builtin-timechart.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "util/color.h"
#include <linux/list.h>
#include "util/cache.h"
#include "util/evsel.h"
#include <linux/rbtree.h>
#include "util/symbol.h"
#include "util/callchain.h"
Expand Down Expand Up @@ -488,20 +489,20 @@ static void sched_switch(int cpu, u64 timestamp, struct trace_entry *te)

static int process_sample_event(union perf_event *event __used,
struct perf_sample *sample,
struct perf_evsel *evsel __used,
struct perf_session *session)
struct perf_evsel *evsel,
struct perf_session *session __used)
{
struct trace_entry *te;

if (session->sample_type & PERF_SAMPLE_TIME) {
if (evsel->attr.sample_type & PERF_SAMPLE_TIME) {
if (!first_time || first_time > sample->time)
first_time = sample->time;
if (last_time < sample->time)
last_time = sample->time;
}

te = (void *)sample->raw_data;
if (session->sample_type & PERF_SAMPLE_RAW && sample->raw_size > 0) {
if ((evsel->attr.sample_type & PERF_SAMPLE_RAW) && sample->raw_size > 0) {
char *event_str;
#ifdef SUPPORT_OLD_POWER_EVENTS
struct power_entry_old *peo;
Expand Down

0 comments on commit ecc0e3b

Please sign in to comment.