Skip to content

Commit

Permalink
Merge pull request #103 from michaelwoerister/big-endian-ci
Browse files Browse the repository at this point in the history
Fix big-endian build and add CI tests for it.
  • Loading branch information
wesleywiser authored Jan 2, 2020
2 parents f35928f + 645025b commit e6f55c7
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
language: rust
before_install:
- rustup target add powerpc64-unknown-linux-gnu
rust:
- stable
- beta
- nightly
fast_finish: true
env:
- CARGO_INCREMENTAL=0
install: skip
script:
- cargo check --verbose --target powerpc64-unknown-linux-gnu --lib --bins --tests || exit 1
- cargo build --verbose --all || exit 1
- cargo test --verbose --all
2 changes: 1 addition & 1 deletion analyzeme/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "analyzeme"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crox/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crox"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <wwiser@gmail.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion flamegraph/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flamegraph"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion measureme/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "measureme"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
description = "Support crate for rustc's self-profiling feature"
Expand Down
7 changes: 7 additions & 0 deletions measureme/src/event_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ impl EventId {
pub fn from_virtual(virtual_id: StringId) -> EventId {
EventId(virtual_id)
}

/// Create an EventId from a raw u32 value. Only used internally for
/// deserialization.
#[inline]
pub fn from_u32(raw_id: u32) -> EventId {
EventId(StringId::new(raw_id))
}
}

pub struct EventIdBuilder<'p, S: SerializationSink> {
Expand Down
4 changes: 2 additions & 2 deletions measureme/src/raw_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ impl RawEvent {
{
use byteorder::{ByteOrder, LittleEndian};
RawEvent {
event_kind: StringId::reserved(LittleEndian::read_u32(&bytes[0..])),
event_id: StringId::reserved(LittleEndian::read_u32(&bytes[4..])),
event_kind: StringId::new(LittleEndian::read_u32(&bytes[0..])),
event_id: EventId::from_u32(LittleEndian::read_u32(&bytes[4..])),
thread_id: LittleEndian::read_u32(&bytes[8..]),
start_time_lower: LittleEndian::read_u32(&bytes[12..]),
end_time_lower: LittleEndian::read_u32(&bytes[16..]),
Expand Down
2 changes: 1 addition & 1 deletion mmview/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mmview"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion stack_collapse/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stack_collapse"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion summarize/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "summarize"
version = "0.7.0"
version = "0.7.1"
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down

0 comments on commit e6f55c7

Please sign in to comment.