Skip to content

Add timebase instructions for POWER architecture#57

Closed
leitao wants to merge 1 commit into
facebook:masterfrom
leitao:master
Closed

Add timebase instructions for POWER architecture#57
leitao wants to merge 1 commit into
facebook:masterfrom
leitao:master

Conversation

@leitao

@leitao leitao commented Jun 10, 2015

Copy link
Copy Markdown
Contributor

Two mcrouter functions depend on time base registers, and this patch
enables it to get from POWER architecture.

For these functions I am using the built-in __builtin_ppc_get_timebase(),
which basically read the time base registers using a set of ASM
instructions.

With this patch, the mcrouter software builds fine on ppc64el architecture.

Two mcrouter functions depend on time base registers, and this patch
enables it to get from POWER architecture.

For these functions I am using the built-in __builtin_ppc_get_timebase(),
which basically read the time base registers using a set of ASM
instructions.

With this patch, the mcrouter software builds fine on ppc64el architecture.
@int int closed this in f84f857 Jun 23, 2015
facebook-github-bot pushed a commit that referenced this pull request Sep 26, 2022
Summary:
Currently this is using 8K on fiber stack if not outlined by compiler.

```
#56 0x000000000bb1a73b in facebook::memcache::mcrouter::McBucketRoute::route<facebook::memcache::McLeaseGetRequest>(facebook::memcache::McLeaseGetRequest const&) const () at buck-out/v2/gen/fbcode/b64d8fdc2f0705da/mcrouter/__mcrouter_core_no_sr__/headers/mcrouter/routes/McBucketRoute.h:92
#57 facebook::memcache::MemcacheRouteHandle<facebook::memcache::mcrouter::McBucketRoute>::route(facebook::memcache::McLeaseGetRequest const&) (this=<optimized out>, request=...) at buck-out/v2/gen/fbcode/b64d8fdc2f0705da/mcrouter/lib/network/gen/__carbon-Memcache-router-headers__/headers/mcrouter/lib/network/gen/MemcacheRouteHandleIf.h:168
#58 facebook::memcache::SelectionRoute<facebook::memcache::MemcacheRouterInfo, facebook::memcache::HashSelector<facebook::memcache::WeightedCh3HashFunc> >::route<facebook::memcache::McLeaseGetRequest>(facebook::memcache::McLeaseGetRequest const&) (this=<optimized out>, req=...) at buck-out/v2/gen/fbcode/b64d8fdc2f0705da/mcrouter/lib/__routing__/headers/mcrouter/lib/routes/SelectionRoute.h:88
#59 facebook::memcache::MemcacheRouteHandle<facebook::memcache::SelectionRoute<facebook::memcache::MemcacheRouterInfo, facebook::memcache::HashSelector<facebook::memcache::WeightedCh3HashFunc> > >::route(facebook::memcache::McLeaseGetRequest const&) (this=<optimized out>, request=..., ###stackUsed=8400)
```

Reviewed By: lenar-f

Differential Revision: D39760867

fbshipit-source-id: cc7ba68c1d92235389664ed62aeb6050335961e1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants